@backstage/cli 0.32.1-next.3 → 0.32.2-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 (34) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/config/jest.js +5 -4
  3. package/dist/commands/index.cjs.js +6 -9
  4. package/dist/modules/{start → build}/commands/package/start/startFrontend.cjs.js +11 -5
  5. package/dist/modules/build/index.cjs.js +26 -0
  6. package/dist/modules/build/lib/bundler/config.cjs.js +2 -39
  7. package/dist/modules/lint/commands/repo/lint.cjs.js +13 -1
  8. package/dist/packages/backend-defaults/package.json.cjs.js +1 -1
  9. package/dist/packages/backend-plugin-api/package.json.cjs.js +1 -1
  10. package/dist/packages/backend-test-utils/package.json.cjs.js +1 -1
  11. package/dist/packages/catalog-client/package.json.cjs.js +1 -1
  12. package/dist/packages/cli/package.json.cjs.js +1 -1
  13. package/dist/packages/core-app-api/package.json.cjs.js +1 -1
  14. package/dist/packages/core-components/package.json.cjs.js +1 -1
  15. package/dist/packages/core-plugin-api/package.json.cjs.js +1 -1
  16. package/dist/packages/dev-utils/package.json.cjs.js +1 -1
  17. package/dist/packages/test-utils/package.json.cjs.js +1 -1
  18. package/dist/packages/theme/package.json.cjs.js +1 -1
  19. package/dist/plugins/auth-backend/package.json.cjs.js +1 -1
  20. package/dist/plugins/auth-backend-module-guest-provider/package.json.cjs.js +1 -1
  21. package/dist/plugins/catalog-node/package.json.cjs.js +1 -1
  22. package/dist/plugins/scaffolder-node/package.json.cjs.js +1 -1
  23. package/dist/plugins/scaffolder-node-test-utils/package.json.cjs.js +1 -1
  24. package/package.json +19 -19
  25. package/dist/modules/start/index.cjs.js +0 -38
  26. /package/dist/modules/{start → build}/commands/package/start/command.cjs.js +0 -0
  27. /package/dist/modules/{start → build}/commands/package/start/index.cjs.js +0 -0
  28. /package/dist/modules/{start → build}/commands/package/start/resolveLinkedWorkspace.cjs.js +0 -0
  29. /package/dist/modules/{start → build}/commands/package/start/startBackend.cjs.js +0 -0
  30. /package/dist/modules/{start → build}/commands/package/start/startPackage.cjs.js +0 -0
  31. /package/dist/modules/{start → build}/commands/repo/start.cjs.js +0 -0
  32. /package/dist/modules/{start → build}/lib/ipc/IpcServer.cjs.js +0 -0
  33. /package/dist/modules/{start → build}/lib/ipc/ServerDataStore.cjs.js +0 -0
  34. /package/dist/modules/{start → build}/lib/runner/runBackend.cjs.js +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,53 @@
1
1
  # @backstage/cli
2
2
 
3
+ ## 0.32.2-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - ce70439: The `BACKSTAGE_CLI_EXPERIMENTAL_BUILD_CACHE` flag has been removed. Existing users are encouraged to switch to `EXPERIMENTAL_RSPACK` instead.
8
+ - 1d8f00b: Switched to using the `ModuleFederationPlugin` from `@module-federation/enhanced/rspack` for Rspack, rather than the built-in one.
9
+ - 2b9633f: The experimental `FORCE_REACT_DEVELOPMENT` flag has been removed.
10
+ - d8c4a54: Only use the caching Jest module loader for frontend packages in order to avoid breaking real ESM module imports.
11
+ - 1bab255: Internal refactor to combine alpha `build` and `start` modules.
12
+ - 713e957: fix: merge eslint reports when using json format
13
+ - Updated dependencies
14
+ - @backstage/catalog-model@1.7.4
15
+ - @backstage/cli-common@0.1.15
16
+ - @backstage/cli-node@0.2.13
17
+ - @backstage/config@1.3.2
18
+ - @backstage/config-loader@1.10.1
19
+ - @backstage/errors@1.2.7
20
+ - @backstage/eslint-plugin@0.1.10
21
+ - @backstage/integration@1.17.0
22
+ - @backstage/release-manifests@0.0.13
23
+ - @backstage/types@1.2.1
24
+
25
+ ## 0.32.1
26
+
27
+ ### Patch Changes
28
+
29
+ - 674def9: fix: enable `lazyCompilation` and `refreshOptions` for rspack
30
+ - d649df0: Internal code cleanup
31
+ - c2cae47: Add missing modules to the Backstage CLI alpha entrypoint.
32
+ - 3f45861: Add a warning for React 17 deprecation that triggers when frontend packages and plugins start.
33
+ - 9aaec54: Internal refactor of opaque type handling.
34
+ - 9285385: Added `info` object to the context of the alpha CLI.
35
+ - 6cc9507: Updated dependency `@octokit/request` to `^8.0.0`.
36
+ - 5cd3c54: Updated dependency `react-refresh` to `^0.17.0`.
37
+ - 72d019d: Removed various typos
38
+ - 19a4e7c: Internal refactor to move things closer to home
39
+ - Updated dependencies
40
+ - @backstage/integration@1.17.0
41
+ - @backstage/catalog-model@1.7.4
42
+ - @backstage/release-manifests@0.0.13
43
+ - @backstage/config-loader@1.10.1
44
+ - @backstage/cli-node@0.2.13
45
+ - @backstage/config@1.3.2
46
+ - @backstage/cli-common@0.1.15
47
+ - @backstage/errors@1.2.7
48
+ - @backstage/eslint-plugin@0.1.10
49
+ - @backstage/types@1.2.1
50
+
3
51
  ## 0.32.1-next.3
4
52
 
5
53
  ### Patch Changes
package/config/jest.js CHANGED
@@ -212,6 +212,11 @@ function getRoleConfig(role, pkgJson) {
212
212
  if (FRONTEND_ROLES.includes(role)) {
213
213
  return {
214
214
  testEnvironment: require.resolve('jest-environment-jsdom'),
215
+ // The caching module loader is only used to speed up frontend tests,
216
+ // as it breaks real dynamic imports of ESM modules.
217
+ runtime: envOptions.oldTests
218
+ ? undefined
219
+ : require.resolve('./jestCachingModuleLoader'),
215
220
  transform,
216
221
  };
217
222
  }
@@ -257,10 +262,6 @@ async function getProjectConfig(targetPath, extraConfig, extraOptions) {
257
262
  // A bit more opinionated
258
263
  testMatch: [`**/*.test.{${SRC_EXTS.join(',')}}`],
259
264
 
260
- runtime: envOptions.oldTests
261
- ? undefined
262
- : require.resolve('./jestCachingModuleLoader'),
263
-
264
265
  transformIgnorePatterns: [`/node_modules/(?:${transformIgnorePattern})/`],
265
266
  ...getRoleConfig(pkgJson.backstage?.role, pkgJson),
266
267
  };
@@ -2,31 +2,28 @@
2
2
 
3
3
  var index = require('../modules/config/index.cjs.js');
4
4
  var index$2 = require('../modules/build/index.cjs.js');
5
- var index$6 = require('../modules/start/index.cjs.js');
6
5
  var index$3 = require('../modules/info/index.cjs.js');
7
6
  var index$1 = require('../modules/migrate/index.cjs.js');
8
- var index$7 = require('../modules/test/index.cjs.js');
9
- var index$8 = require('../modules/lint/index.cjs.js');
10
- var index$9 = require('../modules/maintenance/index.cjs.js');
7
+ var index$6 = require('../modules/test/index.cjs.js');
8
+ var index$7 = require('../modules/lint/index.cjs.js');
9
+ var index$8 = require('../modules/maintenance/index.cjs.js');
11
10
  var removed = require('../lib/removed.cjs.js');
12
11
  var index$4 = require('../modules/new/index.cjs.js');
13
12
  var index$5 = require('../modules/create-github-app/index.cjs.js');
14
13
 
15
14
  function registerRepoCommand(program) {
16
15
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
17
- index$6.registerRepoCommands(command);
18
16
  index$2.registerRepoCommands(command);
17
+ index$6.registerRepoCommands(command);
19
18
  index$7.registerRepoCommands(command);
20
19
  index$8.registerRepoCommands(command);
21
- index$9.registerRepoCommands(command);
22
20
  }
23
21
  function registerScriptCommand(program) {
24
22
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
25
- index$6.registerPackageCommands(command);
26
23
  index$2.registerPackageCommands(command);
27
- index$7.registerPackageCommands(command);
28
- index$9.registerPackageCommands(command);
24
+ index$6.registerPackageCommands(command);
29
25
  index$8.registerPackageCommands(command);
26
+ index$7.registerPackageCommands(command);
30
27
  }
31
28
  function registerCommands(program) {
32
29
  index.registerCommands(program);
@@ -6,7 +6,6 @@ require('yn');
6
6
  require('webpack');
7
7
  require('react-dev-utils/FileSizeReporter');
8
8
  require('react-dev-utils/formatWebpackMessages');
9
- require('chalk');
10
9
  require('eslint-webpack-plugin');
11
10
  require('fork-ts-checker-webpack-plugin');
12
11
  require('html-webpack-plugin');
@@ -14,20 +13,27 @@ require('@module-federation/enhanced/webpack');
14
13
  require('react-dev-utils/ModuleScopePlugin');
15
14
  require('@pmmmwh/react-refresh-webpack-plugin');
16
15
  var paths = require('../../../../../lib/paths.cjs.js');
17
- require('../../../../build/lib/bundler/optimization.cjs.js');
16
+ require('../../../lib/bundler/optimization.cjs.js');
18
17
  require('lodash/pickBy');
19
18
  require('../../../../../lib/run.cjs.js');
20
19
  require('mini-css-extract-plugin');
21
20
  require('../../../../../lib/version.cjs.js');
21
+ var hasReactDomClient = require('../../../lib/bundler/hasReactDomClient.cjs.js');
22
22
  require('@manypkg/get-packages');
23
- require('../../../../build/lib/bundler/packageDetection.cjs.js');
24
- var moduleFederation = require('../../../../build/lib/bundler/moduleFederation.cjs.js');
25
- var server = require('../../../../build/lib/bundler/server.cjs.js');
23
+ require('chalk');
24
+ require('../../../lib/bundler/packageDetection.cjs.js');
25
+ var moduleFederation = require('../../../lib/bundler/moduleFederation.cjs.js');
26
+ var server = require('../../../lib/bundler/server.cjs.js');
26
27
 
27
28
  async function startFrontend(options) {
28
29
  const packageJson = await fs.readJson(
29
30
  path.resolve(options.targetDir ?? paths.paths.targetDir, "package.json")
30
31
  );
32
+ if (!hasReactDomClient.hasReactDomClient()) {
33
+ console.warn(
34
+ "React 17 is now deprecated! Please follow the Backstage migration guide to update to React 18: https://backstage.io/docs/tutorials/react18-migration/"
35
+ );
36
+ }
31
37
  const waitForExit = await server.serveBundle({
32
38
  entry: options.entry,
33
39
  targetDir: options.targetDir,
@@ -2,6 +2,7 @@
2
2
 
3
3
  var commander = require('commander');
4
4
  var lazy = require('../../lib/lazy.cjs.js');
5
+ var index = require('../config/index.cjs.js');
5
6
 
6
7
  function registerRepoCommands(command) {
7
8
  command.command("build").description(
@@ -16,6 +17,24 @@ function registerRepoCommands(command) {
16
17
  "--minify",
17
18
  "Minify the generated code. Does not apply to app package (app is minified by default)."
18
19
  ).action(lazy.lazy(() => import('./commands/repo/build.cjs.js'), "command"));
20
+ command.command("start").description("Starts packages in the repo for local development").argument(
21
+ "[packageNameOrPath...]",
22
+ "Run the specified package instead of the defaults."
23
+ ).option(
24
+ "--plugin <pluginId>",
25
+ "Start the dev entry-point for any matching plugin package in the repo",
26
+ (opt, opts) => opts ? [...opts, opt] : [opt],
27
+ Array()
28
+ ).option(...index.configOption).option(
29
+ "--inspect [host]",
30
+ "Enable debugger in Node.js environments. Applies to backend package only"
31
+ ).option(
32
+ "--inspect-brk [host]",
33
+ "Enable debugger in Node.js environments, breaking before code starts. Applies to backend package only"
34
+ ).option(
35
+ "--require <path...>",
36
+ "Add a --require argument to the node process. Applies to backend package only"
37
+ ).option("--link <path>", "Link an external workspace for module resolution").action(lazy.lazy(() => import('./commands/repo/start.cjs.js'), "command"));
19
38
  }
20
39
  function registerPackageCommands(command) {
21
40
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
@@ -33,6 +52,13 @@ function registerPackageCommands(command) {
33
52
  (opt, opts) => opts ? [...opts, opt] : [opt],
34
53
  Array()
35
54
  ).action(lazy.lazy(() => import('./commands/package/build/index.cjs.js'), "command"));
55
+ command.command("start").description("Start a package for local development").option(...index.configOption).option("--role <name>", "Run the command with an explicit package role").option("--check", "Enable type checking and linting if available").option("--inspect [host]", "Enable debugger in Node.js environments").option(
56
+ "--inspect-brk [host]",
57
+ "Enable debugger in Node.js environments, breaking before code starts"
58
+ ).option(
59
+ "--require <path...>",
60
+ "Add a --require argument to the node process"
61
+ ).option("--link <path>", "Link an external workspace for module resolution").action(lazy.lazy(() => import('./commands/package/start/index.cjs.js'), "command"));
36
62
  }
37
63
  function registerCommands(program) {
38
64
  program.command("build-workspace <workspace-dir> [packages...]").addOption(
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var path = require('path');
4
- var chalk = require('chalk');
5
4
  var webpack$1 = require('webpack');
6
5
  var ESLintPlugin = require('eslint-webpack-plugin');
7
6
  var ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
@@ -23,7 +22,6 @@ var ConfigInjectingHtmlWebpackPlugin = require('./ConfigInjectingHtmlWebpackPlug
23
22
 
24
23
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
25
24
 
26
- var chalk__default = /*#__PURE__*/_interopDefaultCompat(chalk);
27
25
  var webpack__default = /*#__PURE__*/_interopDefaultCompat(webpack$1);
28
26
  var ESLintPlugin__default = /*#__PURE__*/_interopDefaultCompat(ESLintPlugin);
29
27
  var ForkTsCheckerWebpackPlugin__default = /*#__PURE__*/_interopDefaultCompat(ForkTsCheckerWebpackPlugin);
@@ -34,7 +32,6 @@ var fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
34
32
  var pickBy__default = /*#__PURE__*/_interopDefaultCompat(pickBy);
35
33
  var yn__default = /*#__PURE__*/_interopDefaultCompat(yn);
36
34
 
37
- const BUILD_CACHE_ENV_VAR = "BACKSTAGE_CLI_EXPERIMENTAL_BUILD_CACHE";
38
35
  function resolveBaseUrl(config, moduleFederation) {
39
36
  const baseUrl = config.getOptionalString("app.baseUrl");
40
37
  const defaultBaseUrl = moduleFederation?.mode === "remote" ? `http://localhost:${process.env.PORT ?? "3000"}` : "http://localhost:3000";
@@ -168,7 +165,7 @@ async function createConfig(paths, options) {
168
165
  }
169
166
  if (options.moduleFederation) {
170
167
  const isRemote = options.moduleFederation?.mode === "remote";
171
- const AdaptedModuleFederationPlugin = rspack ? rspack.container.ModuleFederationPlugin : webpack.ModuleFederationPlugin;
168
+ const AdaptedModuleFederationPlugin = rspack ? require("@module-federation/enhanced/rspack").ModuleFederationPlugin : webpack.ModuleFederationPlugin;
172
169
  const exposes = options.moduleFederation?.exposes ? Object.fromEntries(
173
170
  Object.entries(options.moduleFederation?.exposes).map(([k, v]) => [
174
171
  k,
@@ -266,32 +263,6 @@ async function createConfig(paths, options) {
266
263
  ];
267
264
  const mode = isDev ? "development" : "production";
268
265
  const optimization$1 = optimization.optimization(options);
269
- if (mode === "production" && process.env.EXPERIMENTAL_MODULE_FEDERATION && process.env.FORCE_REACT_DEVELOPMENT) {
270
- console.log(
271
- chalk__default.default.yellow(
272
- `\u26A0\uFE0F WARNING: Forcing react and react-dom into development mode. This build should not be used in production.`
273
- )
274
- );
275
- const reactPackageDirs = [
276
- `${path.dirname(require.resolve("react/package.json"))}/`,
277
- `${path.dirname(require.resolve("react-dom/package.json"))}/`
278
- ];
279
- optimization$1.nodeEnv = false;
280
- plugins.push(
281
- new bundler.DefinePlugin({
282
- "process.env.NODE_ENV": rspack ? (
283
- // FIXME: see also https://github.com/web-infra-dev/rspack/issues/5606
284
- JSON.stringify(mode)
285
- ) : webpack__default.default.DefinePlugin.runtimeValue(({ module }) => {
286
- if (reactPackageDirs.some((val) => module.resource.startsWith(val))) {
287
- return '"development"';
288
- }
289
- return `"${mode}"`;
290
- })
291
- })
292
- );
293
- }
294
- const withCache = yn__default.default(process.env[BUILD_CACHE_ENV_VAR], { default: false });
295
266
  return {
296
267
  mode,
297
268
  profile: false,
@@ -365,15 +336,7 @@ async function createConfig(paths, options) {
365
336
  css: false
366
337
  }
367
338
  },
368
- plugins,
369
- ...withCache && {
370
- cache: {
371
- type: "filesystem",
372
- buildDependencies: {
373
- config: [__filename]
374
- }
375
- }
376
- }
339
+ plugins
377
340
  };
378
341
  }
379
342
 
@@ -160,6 +160,7 @@ async function command(opts, cmd) {
160
160
  }
161
161
  });
162
162
  const outputSuccessCache = [];
163
+ const jsonResults = [];
163
164
  let errorOutput = "";
164
165
  let failed = false;
165
166
  for (const {
@@ -173,8 +174,12 @@ async function command(opts, cmd) {
173
174
  failed = true;
174
175
  if (resultText) {
175
176
  if (opts.outputFile) {
176
- errorOutput += `${resultText}
177
+ if (opts.format === "json") {
178
+ jsonResults.push(resultText);
179
+ } else {
180
+ errorOutput += `${resultText}
177
181
  `;
182
+ }
178
183
  } else {
179
184
  console.log();
180
185
  console.log(resultText.trimStart());
@@ -184,6 +189,13 @@ async function command(opts, cmd) {
184
189
  outputSuccessCache.push(sha);
185
190
  }
186
191
  }
192
+ if (opts.format === "json") {
193
+ let mergedJsonResults = [];
194
+ for (const jsonResult of jsonResults) {
195
+ mergedJsonResults = mergedJsonResults.concat(JSON.parse(jsonResult));
196
+ }
197
+ errorOutput = JSON.stringify(mergedJsonResults, null, 2);
198
+ }
187
199
  if (opts.outputFile && errorOutput) {
188
200
  await fs__default.default.writeFile(paths.paths.resolveTargetRoot(opts.outputFile), errorOutput);
189
201
  }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var version = "0.10.0-next.3";
3
+ var version = "0.10.1-next.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 = "1.3.1-next.2";
3
+ var version = "1.4.0-next.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 = "1.5.0-next.3";
3
+ var version = "1.6.0-next.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 = "1.10.0-next.0";
3
+ var version = "1.10.1-next.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.32.1-next.3";
3
+ var version = "0.32.2-next.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-next.1";
3
+ var version = "1.17.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.17.2-next.1";
3
+ var version = "0.17.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.10.7-next.0";
3
+ var version = "1.10.7";
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.10-next.3";
3
+ var version = "1.1.11-next.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 = "1.7.8-next.2";
3
+ var version = "1.7.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 = "0.6.6-next.0";
3
+ var version = "0.6.6";
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.0-next.2";
3
+ var version = "0.25.1-next.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.8-next.2";
3
+ var version = "0.2.9-next.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 = "1.17.0-next.2";
3
+ var version = "1.17.1-next.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.8.2-next.3";
3
+ var version = "0.8.3-next.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.2-next.3";
3
+ var version = "0.2.3-next.1";
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.32.1-next.3",
3
+ "version": "0.32.2-next.0",
4
4
  "description": "CLI for developing Backstage plugins and apps",
5
5
  "backstage": {
6
6
  "role": "cli"
@@ -48,15 +48,15 @@
48
48
  ]
49
49
  },
50
50
  "dependencies": {
51
- "@backstage/catalog-model": "1.7.3",
51
+ "@backstage/catalog-model": "1.7.4",
52
52
  "@backstage/cli-common": "0.1.15",
53
53
  "@backstage/cli-node": "0.2.13",
54
54
  "@backstage/config": "1.3.2",
55
- "@backstage/config-loader": "1.10.1-next.0",
55
+ "@backstage/config-loader": "1.10.1",
56
56
  "@backstage/errors": "1.2.7",
57
57
  "@backstage/eslint-plugin": "0.1.10",
58
- "@backstage/integration": "1.17.0-next.3",
59
- "@backstage/release-manifests": "0.0.13-next.0",
58
+ "@backstage/integration": "1.17.0",
59
+ "@backstage/release-manifests": "0.0.13",
60
60
  "@backstage/types": "1.2.1",
61
61
  "@manypkg/get-packages": "^1.1.3",
62
62
  "@module-federation/enhanced": "^0.9.0",
@@ -164,22 +164,22 @@
164
164
  "zod-validation-error": "^3.4.0"
165
165
  },
166
166
  "devDependencies": {
167
- "@backstage/backend-plugin-api": "1.3.1-next.2",
168
- "@backstage/backend-test-utils": "1.5.0-next.3",
169
- "@backstage/catalog-client": "1.10.0-next.0",
167
+ "@backstage/backend-plugin-api": "1.4.0-next.1",
168
+ "@backstage/backend-test-utils": "1.6.0-next.1",
169
+ "@backstage/catalog-client": "1.10.1-next.0",
170
170
  "@backstage/config": "1.3.2",
171
- "@backstage/core-app-api": "1.17.0-next.1",
172
- "@backstage/core-components": "0.17.2-next.1",
173
- "@backstage/core-plugin-api": "1.10.7-next.0",
174
- "@backstage/dev-utils": "1.1.10-next.3",
171
+ "@backstage/core-app-api": "1.17.0",
172
+ "@backstage/core-components": "0.17.2",
173
+ "@backstage/core-plugin-api": "1.10.7",
174
+ "@backstage/dev-utils": "1.1.11-next.1",
175
175
  "@backstage/errors": "1.2.7",
176
- "@backstage/plugin-auth-backend": "0.25.0-next.2",
177
- "@backstage/plugin-auth-backend-module-guest-provider": "0.2.8-next.2",
178
- "@backstage/plugin-catalog-node": "1.17.0-next.2",
179
- "@backstage/plugin-scaffolder-node": "0.8.2-next.3",
180
- "@backstage/plugin-scaffolder-node-test-utils": "0.2.2-next.3",
181
- "@backstage/test-utils": "1.7.8-next.2",
182
- "@backstage/theme": "0.6.6-next.0",
176
+ "@backstage/plugin-auth-backend": "0.25.1-next.1",
177
+ "@backstage/plugin-auth-backend-module-guest-provider": "0.2.9-next.1",
178
+ "@backstage/plugin-catalog-node": "1.17.1-next.1",
179
+ "@backstage/plugin-scaffolder-node": "0.8.3-next.1",
180
+ "@backstage/plugin-scaffolder-node-test-utils": "0.2.3-next.1",
181
+ "@backstage/test-utils": "1.7.8",
182
+ "@backstage/theme": "0.6.6",
183
183
  "@rspack/core": "^1.3.9",
184
184
  "@rspack/dev-server": "^1.1.1",
185
185
  "@rspack/plugin-react-refresh": "^1.4.2",
@@ -1,38 +0,0 @@
1
- 'use strict';
2
-
3
- var lazy = require('../../lib/lazy.cjs.js');
4
- var index = require('../config/index.cjs.js');
5
-
6
- function registerRepoCommands(command) {
7
- command.command("start").description("Starts packages in the repo for local development").argument(
8
- "[packageNameOrPath...]",
9
- "Run the specified package instead of the defaults."
10
- ).option(
11
- "--plugin <pluginId>",
12
- "Start the dev entry-point for any matching plugin package in the repo",
13
- (opt, opts) => opts ? [...opts, opt] : [opt],
14
- Array()
15
- ).option(...index.configOption).option(
16
- "--inspect [host]",
17
- "Enable debugger in Node.js environments. Applies to backend package only"
18
- ).option(
19
- "--inspect-brk [host]",
20
- "Enable debugger in Node.js environments, breaking before code starts. Applies to backend package only"
21
- ).option(
22
- "--require <path...>",
23
- "Add a --require argument to the node process. Applies to backend package only"
24
- ).option("--link <path>", "Link an external workspace for module resolution").action(lazy.lazy(() => import('./commands/repo/start.cjs.js'), "command"));
25
- }
26
- function registerPackageCommands(command) {
27
- command.command("start").description("Start a package for local development").option(...index.configOption).option("--role <name>", "Run the command with an explicit package role").option("--check", "Enable type checking and linting if available").option("--inspect [host]", "Enable debugger in Node.js environments").option(
28
- "--inspect-brk [host]",
29
- "Enable debugger in Node.js environments, breaking before code starts"
30
- ).option(
31
- "--require <path...>",
32
- "Add a --require argument to the node process"
33
- ).option("--link <path>", "Link an external workspace for module resolution").action(lazy.lazy(() => import('./commands/package/start/index.cjs.js'), "command"));
34
- }
35
-
36
- exports.registerPackageCommands = registerPackageCommands;
37
- exports.registerRepoCommands = registerRepoCommands;
38
- //# sourceMappingURL=index.cjs.js.map