@backstage/cli 0.28.0 → 0.28.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @backstage/cli
2
2
 
3
+ ## 0.28.2
4
+
5
+ ### Patch Changes
6
+
7
+ - a14e5fc: Bump the Webpack dependency range to `^5.94.0`, as our current configuration is not compatible with some older versions.
8
+ - Updated dependencies
9
+ - @backstage/catalog-model@1.7.0
10
+ - @backstage/cli-common@0.1.14
11
+ - @backstage/cli-node@0.2.9
12
+ - @backstage/config@1.2.0
13
+ - @backstage/config-loader@1.9.1
14
+ - @backstage/errors@1.2.4
15
+ - @backstage/eslint-plugin@0.1.10
16
+ - @backstage/integration@1.15.1
17
+ - @backstage/release-manifests@0.0.11
18
+ - @backstage/types@1.1.1
19
+
20
+ ## 0.28.1
21
+
22
+ ### Patch Changes
23
+
24
+ - c5276b6: Fixed an issue with the `--successCache` flag for `repo test` where the tree hash for the wrong package directory would sometimes be used to generate the cache key.
25
+
3
26
  ## 0.28.0
4
27
 
5
28
  ### Minor Changes
@@ -37,23 +37,30 @@ function writeCache(dir, cache) {
37
37
  fs__default.default.writeJsonSync(path.resolve(dir, CACHE_FILE_NAME), cache, { spaces: 2 });
38
38
  }
39
39
  async function readPackageTreeHashes(graph) {
40
- const pkgs = Array.from(graph.values());
40
+ const pkgs = Array.from(graph.values()).map((pkg) => ({
41
+ ...pkg,
42
+ path: path.relative(paths.paths.targetRoot, pkg.dir)
43
+ }));
41
44
  const output = await run.runPlain(
42
45
  "git",
43
46
  "ls-tree",
44
- "--object-only",
47
+ '--format="%(objectname)=%(path)"',
45
48
  "HEAD",
46
49
  "--",
47
- ...pkgs.map((pkg) => path.relative(paths.paths.targetRoot, pkg.dir))
50
+ ...pkgs.map((pkg) => pkg.path)
48
51
  );
49
- const treeShaList = output.trim().split(/\r?\n/);
50
- if (treeShaList.length !== pkgs.length) {
51
- throw new Error(
52
- `Error listing project git tree hashes, output length does not equal input length`
53
- );
54
- }
55
52
  const map = new Map(
56
- pkgs.map((pkg, i) => [pkg.packageJson.name, treeShaList[i]])
53
+ output.trim().split(/\r?\n/).map((line) => {
54
+ const [itemSha, ...itemPathParts] = line.split("=");
55
+ const itemPath = itemPathParts.join("=");
56
+ const pkg = pkgs.find((p) => p.path === itemPath);
57
+ if (!pkg) {
58
+ throw new Error(
59
+ `Unexpectedly missing tree sha entry for path ${itemPath}`
60
+ );
61
+ }
62
+ return [pkg.packageJson.name, itemSha];
63
+ })
57
64
  );
58
65
  return (pkgName) => {
59
66
  const sha = map.get(pkgName);
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.5.1";
3
+ var version = "0.5.2";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "1.0.1";
3
+ var version = "1.0.2";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.28.0";
3
+ var version = "0.28.2";
4
4
  var dependencies = {
5
5
  "@backstage/catalog-model": "workspace:^",
6
6
  "@backstage/cli-common": "workspace:^",
@@ -110,7 +110,7 @@ var dependencies = {
110
110
  "terser-webpack-plugin": "^5.1.3",
111
111
  "ts-morph": "^23.0.0",
112
112
  util: "^0.12.3",
113
- webpack: "^5.70.0",
113
+ webpack: "^5.94.0",
114
114
  "webpack-dev-server": "^5.0.0",
115
115
  "webpack-node-externals": "^3.0.0",
116
116
  yaml: "^2.0.0",
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.1.13";
3
+ var version = "0.1.14";
4
4
 
5
5
  exports.version = version;
6
6
  //# sourceMappingURL=package.json.cjs.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/cli",
3
- "version": "0.28.0",
3
+ "version": "0.28.2",
4
4
  "description": "CLI for developing Backstage plugins and apps",
5
5
  "backstage": {
6
6
  "role": "cli"
@@ -150,7 +150,7 @@
150
150
  "terser-webpack-plugin": "^5.1.3",
151
151
  "ts-morph": "^23.0.0",
152
152
  "util": "^0.12.3",
153
- "webpack": "^5.70.0",
153
+ "webpack": "^5.94.0",
154
154
  "webpack-dev-server": "^5.0.0",
155
155
  "webpack-node-externals": "^3.0.0",
156
156
  "yaml": "^2.0.0",
@@ -162,7 +162,7 @@
162
162
  "devDependencies": {
163
163
  "@backstage/backend-common": "^0.25.0",
164
164
  "@backstage/backend-plugin-api": "^1.0.1",
165
- "@backstage/backend-test-utils": "^1.0.1",
165
+ "@backstage/backend-test-utils": "^1.0.2",
166
166
  "@backstage/catalog-client": "^1.7.1",
167
167
  "@backstage/config": "^1.2.0",
168
168
  "@backstage/core-app-api": "^1.15.1",
@@ -174,7 +174,7 @@
174
174
  "@backstage/plugin-auth-backend-module-guest-provider": "^0.2.1",
175
175
  "@backstage/plugin-catalog-node": "^1.13.1",
176
176
  "@backstage/plugin-scaffolder-node": "^0.5.0",
177
- "@backstage/plugin-scaffolder-node-test-utils": "^0.1.13",
177
+ "@backstage/plugin-scaffolder-node-test-utils": "^0.1.14",
178
178
  "@backstage/test-utils": "^1.7.0",
179
179
  "@backstage/theme": "^0.6.0",
180
180
  "@rspack/core": "^1.0.10",