@backstage/cli-common 0.2.0-next.2 → 0.2.1-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # @backstage/cli-common
2
2
 
3
+ ## 0.2.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - e928e73: chore(deps): bump `undici` from 7.22.0 to 7.24.0
8
+ - Updated dependencies
9
+ - @backstage/errors@1.2.7
10
+
11
+ ## 0.2.0
12
+
13
+ ### Minor Changes
14
+
15
+ - 56bd494: Added `targetPaths` and `findOwnPaths` as replacements for `findPaths`, with a cleaner separation between target project paths and package-relative paths.
16
+
17
+ To migrate existing `findPaths` usage:
18
+
19
+ ```ts
20
+ // Before
21
+ import { findPaths } from '@backstage/cli-common';
22
+ const paths = findPaths(__dirname);
23
+
24
+ // After — for target project paths (cwd-based):
25
+ import { targetPaths } from '@backstage/cli-common';
26
+ // paths.targetDir → targetPaths.dir
27
+ // paths.targetRoot → targetPaths.rootDir
28
+ // paths.resolveTarget('src') → targetPaths.resolve('src')
29
+ // paths.resolveTargetRoot('yarn.lock') → targetPaths.resolveRoot('yarn.lock')
30
+
31
+ // After — for package-relative paths:
32
+ import { findOwnPaths } from '@backstage/cli-common';
33
+ const own = findOwnPaths(__dirname);
34
+ // paths.ownDir → own.dir
35
+ // paths.ownRoot → own.rootDir
36
+ // paths.resolveOwn('config/jest.js') → own.resolve('config/jest.js')
37
+ // paths.resolveOwnRoot('tsconfig.json') → own.resolveRoot('tsconfig.json')
38
+ ```
39
+
40
+ ### Patch Changes
41
+
42
+ - e44b6a9: The `findOwnRootDir` utility now searches for the monorepo root by traversing up the directory tree looking for a `package.json` with `workspaces`, instead of assuming a fixed `../..` relative path. If no workspaces root is found during this traversal, `findOwnRootDir` now throws to enforce stricter validation of the repository layout.
43
+ - 9361965: Fixed `runCheck` to ignore stdio of the spawned process, preventing unwanted output from leaking to the terminal.
44
+
3
45
  ## 0.2.0-next.2
4
46
 
5
47
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/cli-common",
3
- "version": "0.2.0-next.2",
3
+ "version": "0.2.1-next.0",
4
4
  "description": "Common functionality used by cli, backend, and create-app",
5
5
  "backstage": {
6
6
  "role": "node-library"
@@ -59,10 +59,10 @@
59
59
  "@backstage/errors": "1.2.7",
60
60
  "cross-spawn": "^7.0.3",
61
61
  "global-agent": "^3.0.0",
62
- "undici": "^7.2.3"
62
+ "undici": "^7.24.5"
63
63
  },
64
64
  "devDependencies": {
65
- "@backstage/cli": "0.36.0-next.2",
65
+ "@backstage/cli": "0.36.1-next.0",
66
66
  "@types/cross-spawn": "^6.0.2",
67
67
  "@types/node": "^22.13.14"
68
68
  }