@backstage/cli 0.33.0-next.1 → 0.33.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,52 @@
1
1
  # @backstage/cli
2
2
 
3
+ ## 0.33.0
4
+
5
+ ### Minor Changes
6
+
7
+ - eef0e83: Internal update to promote the modular CLI entrypoint to stable.
8
+
9
+ ### Patch Changes
10
+
11
+ - d07fe35: Added user feedback when opening config docs in browser. The command now clearly indicates what it's doing and provides fallback instructions if the browser fails to open.
12
+ - ce70439: The `BACKSTAGE_CLI_EXPERIMENTAL_BUILD_CACHE` flag has been removed. Existing users are encouraged to switch to `EXPERIMENTAL_RSPACK` instead.
13
+ - 1d8f00b: Switched to using the `ModuleFederationPlugin` from `@module-federation/enhanced/rspack` for Rspack, rather than the built-in one.
14
+ - 2b9633f: The experimental `FORCE_REACT_DEVELOPMENT` flag has been removed.
15
+ - d8c4a54: Only use the caching Jest module loader for frontend packages in order to avoid breaking real ESM module imports.
16
+ - d6d63c7: Updating the scaffolder action boilerplate to use new `zod` schema
17
+ - e36e855: Added `backstage.pluginId` field in `package.json` to all default plugin package templates for the `new` command.
18
+ - 1bab255: Internal refactor to combine alpha `build` and `start` modules.
19
+ - 713e957: fix: merge eslint reports when using json format
20
+ - 8a0164c: Fix an issue where some commands were not usable because of missing dist files
21
+ - Updated dependencies
22
+ - @backstage/eslint-plugin@0.1.11
23
+ - @backstage/catalog-model@1.7.4
24
+ - @backstage/cli-common@0.1.15
25
+ - @backstage/cli-node@0.2.13
26
+ - @backstage/config@1.3.2
27
+ - @backstage/config-loader@1.10.1
28
+ - @backstage/errors@1.2.7
29
+ - @backstage/integration@1.17.0
30
+ - @backstage/release-manifests@0.0.13
31
+ - @backstage/types@1.2.1
32
+
33
+ ## 0.33.0-next.2
34
+
35
+ ### Patch Changes
36
+
37
+ - 8a0164c: Fix an issue where some commands were not usable because of missing dist files
38
+ - Updated dependencies
39
+ - @backstage/eslint-plugin@0.1.11-next.0
40
+ - @backstage/catalog-model@1.7.4
41
+ - @backstage/cli-common@0.1.15
42
+ - @backstage/cli-node@0.2.13
43
+ - @backstage/config@1.3.2
44
+ - @backstage/config-loader@1.10.1
45
+ - @backstage/errors@1.2.7
46
+ - @backstage/integration@1.17.0
47
+ - @backstage/release-manifests@0.0.13
48
+ - @backstage/types@1.2.1
49
+
3
50
  ## 0.33.0-next.1
4
51
 
5
52
  ### Minor Changes
@@ -0,0 +1,53 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var yaml = require('yaml');
6
+ var config$1 = require('@backstage/config');
7
+ var config = require('../lib/config.cjs.js');
8
+
9
+ var print = async (opts) => {
10
+ const { schema, appConfigs } = await config.loadCliConfig({
11
+ args: opts.config,
12
+ fromPackage: opts.package,
13
+ mockEnv: opts.lax,
14
+ fullVisibility: !opts.frontend
15
+ });
16
+ const visibility = getVisibilityOption(opts);
17
+ const data = serializeConfigData(appConfigs, schema, visibility);
18
+ if (opts.format === "json") {
19
+ process.stdout.write(`${JSON.stringify(data, null, 2)}
20
+ `);
21
+ } else {
22
+ process.stdout.write(`${yaml.stringify(data)}
23
+ `);
24
+ }
25
+ };
26
+ function getVisibilityOption(opts) {
27
+ if (opts.frontend && opts.withSecrets) {
28
+ throw new Error("Not allowed to combine frontend and secret config");
29
+ }
30
+ if (opts.frontend) {
31
+ return "frontend";
32
+ } else if (opts.withSecrets) {
33
+ return "secret";
34
+ }
35
+ return "backend";
36
+ }
37
+ function serializeConfigData(appConfigs, schema, visibility) {
38
+ if (visibility === "frontend") {
39
+ const frontendConfigs = schema.process(appConfigs, {
40
+ visibility: ["frontend"]
41
+ });
42
+ return config$1.ConfigReader.fromConfigs(frontendConfigs).get();
43
+ } else if (visibility === "secret") {
44
+ return config$1.ConfigReader.fromConfigs(appConfigs).get();
45
+ }
46
+ const sanitizedConfigs = schema.process(appConfigs, {
47
+ valueTransform: (value, context) => context.visibility === "secret" ? "<secret>" : value
48
+ });
49
+ return config$1.ConfigReader.fromConfigs(sanitizedConfigs).get();
50
+ }
51
+
52
+ exports.default = print;
53
+ //# sourceMappingURL=print.cjs.js.map
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var config = require('../lib/config.cjs.js');
6
+
7
+ var validate = async (opts) => {
8
+ await config.loadCliConfig({
9
+ args: opts.config,
10
+ fromPackage: opts.package,
11
+ mockEnv: opts.lax,
12
+ fullVisibility: !opts.frontend,
13
+ withDeprecatedKeys: opts.deprecated,
14
+ strict: opts.strict
15
+ });
16
+ };
17
+
18
+ exports.default = validate;
19
+ //# sourceMappingURL=validate.cjs.js.map
@@ -54,8 +54,7 @@ var index = factory.createCliPlugin({
54
54
  format: { type: "string" },
55
55
  config: { type: "string", array: true, default: [] }
56
56
  }).usage("$0", info.description).help().parse(args);
57
- const m = await require("./commands/print");
58
- await m.default(argv);
57
+ await lazy.lazy(() => import('./commands/print.cjs.js'), "default")(argv);
59
58
  }
60
59
  });
61
60
  reg.addCommand({
@@ -74,8 +73,7 @@ var index = factory.createCliPlugin({
74
73
  default: []
75
74
  }
76
75
  }).help().parse(args);
77
- const m = await require("./commands/validate");
78
- await m.default(argv);
76
+ await lazy.lazy(() => import('./commands/validate.cjs.js'), "default")(argv);
79
77
  }
80
78
  });
81
79
  reg.addCommand({
@@ -88,8 +86,7 @@ var index = factory.createCliPlugin({
88
86
  merge: { type: "boolean" },
89
87
  "no-merge": { type: "boolean" }
90
88
  }).help().parse(args);
91
- const m = await import('./commands/schema.cjs.js');
92
- await m.default(argv);
89
+ await lazy.lazy(() => import('./commands/schema.cjs.js'), "default")(argv);
93
90
  }
94
91
  });
95
92
  reg.addCommand({
@@ -102,8 +99,7 @@ var index = factory.createCliPlugin({
102
99
  merge: { type: "boolean" },
103
100
  "no-merge": { type: "boolean" }
104
101
  }).help().parse(args);
105
- const m = await import('./commands/schema.cjs.js');
106
- await m.default(argv);
102
+ await lazy.lazy(() => import('./commands/schema.cjs.js'), "default")(argv);
107
103
  }
108
104
  });
109
105
  }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.11.0-next.2";
3
+ var version = "0.11.0";
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.4.0-next.1";
3
+ var version = "1.4.0";
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.6.0-next.2";
3
+ var version = "1.6.0";
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.10.1-next.0";
3
+ var version = "1.10.1";
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.33.0-next.1";
3
+ var version = "0.33.0";
4
4
  var dependencies = {
5
5
  "@backstage/catalog-model": "workspace:^",
6
6
  "@backstage/cli-common": "workspace:^",
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "1.17.0";
3
+ var version = "1.17.1";
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.17.3-next.0";
3
+ var version = "0.17.3";
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.10.7";
3
+ var version = "1.10.8";
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.1.11-next.2";
3
+ var version = "1.1.11";
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.7.8";
3
+ var version = "1.7.9";
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.25.1-next.1";
3
+ var version = "0.25.1";
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.2.9-next.1";
3
+ var version = "0.2.9";
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.17.1-next.1";
3
+ var version = "1.17.1";
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.9.0-next.2";
3
+ var version = "0.9.0";
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.3.0-next.2";
3
+ var version = "0.3.0";
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.33.0-next.1",
3
+ "version": "0.33.0",
4
4
  "description": "CLI for developing Backstage plugins and apps",
5
5
  "backstage": {
6
6
  "role": "cli"
@@ -47,16 +47,16 @@
47
47
  ]
48
48
  },
49
49
  "dependencies": {
50
- "@backstage/catalog-model": "1.7.4",
51
- "@backstage/cli-common": "0.1.15",
52
- "@backstage/cli-node": "0.2.13",
53
- "@backstage/config": "1.3.2",
54
- "@backstage/config-loader": "1.10.1",
55
- "@backstage/errors": "1.2.7",
56
- "@backstage/eslint-plugin": "0.1.10",
57
- "@backstage/integration": "1.17.0",
58
- "@backstage/release-manifests": "0.0.13",
59
- "@backstage/types": "1.2.1",
50
+ "@backstage/catalog-model": "^1.7.4",
51
+ "@backstage/cli-common": "^0.1.15",
52
+ "@backstage/cli-node": "^0.2.13",
53
+ "@backstage/config": "^1.3.2",
54
+ "@backstage/config-loader": "^1.10.1",
55
+ "@backstage/errors": "^1.2.7",
56
+ "@backstage/eslint-plugin": "^0.1.11",
57
+ "@backstage/integration": "^1.17.0",
58
+ "@backstage/release-manifests": "^0.0.13",
59
+ "@backstage/types": "^1.2.1",
60
60
  "@manypkg/get-packages": "^1.1.3",
61
61
  "@module-federation/enhanced": "^0.9.0",
62
62
  "@octokit/graphql": "^5.0.0",
@@ -163,22 +163,22 @@
163
163
  "zod-validation-error": "^3.4.0"
164
164
  },
165
165
  "devDependencies": {
166
- "@backstage/backend-plugin-api": "1.4.0-next.1",
167
- "@backstage/backend-test-utils": "1.6.0-next.2",
168
- "@backstage/catalog-client": "1.10.1-next.0",
169
- "@backstage/config": "1.3.2",
170
- "@backstage/core-app-api": "1.17.0",
171
- "@backstage/core-components": "0.17.3-next.0",
172
- "@backstage/core-plugin-api": "1.10.7",
173
- "@backstage/dev-utils": "1.1.11-next.2",
174
- "@backstage/errors": "1.2.7",
175
- "@backstage/plugin-auth-backend": "0.25.1-next.1",
176
- "@backstage/plugin-auth-backend-module-guest-provider": "0.2.9-next.1",
177
- "@backstage/plugin-catalog-node": "1.17.1-next.1",
178
- "@backstage/plugin-scaffolder-node": "0.9.0-next.2",
179
- "@backstage/plugin-scaffolder-node-test-utils": "0.3.0-next.2",
180
- "@backstage/test-utils": "1.7.8",
181
- "@backstage/theme": "0.6.6",
166
+ "@backstage/backend-plugin-api": "^1.4.0",
167
+ "@backstage/backend-test-utils": "^1.6.0",
168
+ "@backstage/catalog-client": "^1.10.1",
169
+ "@backstage/config": "^1.3.2",
170
+ "@backstage/core-app-api": "^1.17.1",
171
+ "@backstage/core-components": "^0.17.3",
172
+ "@backstage/core-plugin-api": "^1.10.8",
173
+ "@backstage/dev-utils": "^1.1.11",
174
+ "@backstage/errors": "^1.2.7",
175
+ "@backstage/plugin-auth-backend": "^0.25.1",
176
+ "@backstage/plugin-auth-backend-module-guest-provider": "^0.2.9",
177
+ "@backstage/plugin-catalog-node": "^1.17.1",
178
+ "@backstage/plugin-scaffolder-node": "^0.9.0",
179
+ "@backstage/plugin-scaffolder-node-test-utils": "^0.3.0",
180
+ "@backstage/test-utils": "^1.7.9",
181
+ "@backstage/theme": "^0.6.6",
182
182
  "@rspack/core": "^1.3.9",
183
183
  "@rspack/dev-server": "^1.1.1",
184
184
  "@rspack/plugin-react-refresh": "^1.4.2",