@backstage/cli 0.25.2-next.0 → 0.25.2-next.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/cjs/{build-bfd4a3bd.cjs.js → build-89b38fdb.cjs.js} +8 -7
  3. package/dist/cjs/{buildBackend-46a3a0cb.cjs.js → buildBackend-7213a039.cjs.js} +7 -9
  4. package/dist/cjs/{buildWorkspace-da50d1fe.cjs.js → buildWorkspace-255373ac.cjs.js} +4 -4
  5. package/dist/cjs/{bump-92d0fa1b.cjs.js → bump-04fdcc88.cjs.js} +5 -5
  6. package/dist/cjs/{clean-207c87d4.cjs.js → clean-8520436b.cjs.js} +2 -2
  7. package/dist/cjs/{clean-f3cf23b0.cjs.js → clean-d772e9a1.cjs.js} +2 -2
  8. package/dist/cjs/{codeowners-af8fa550.cjs.js → codeowners-0dbabde9.cjs.js} +2 -2
  9. package/dist/cjs/{config-f31e89ab.cjs.js → config-ac6c78ba.cjs.js} +2 -2
  10. package/dist/cjs/{createDistWorkspace-e7d0553b.cjs.js → createDistWorkspace-ed27d171.cjs.js} +3 -3
  11. package/dist/cjs/{createPlugin-dcf9bf0f.cjs.js → createPlugin-fa95d3bb.cjs.js} +4 -4
  12. package/dist/cjs/{diff-e863f7e0.cjs.js → diff-a2cd50cb.cjs.js} +2 -2
  13. package/dist/cjs/{docs-04032737.cjs.js → docs-7ae5368d.cjs.js} +3 -3
  14. package/dist/cjs/{fix-b95f78f4.cjs.js → fix-1eddbe16.cjs.js} +2 -2
  15. package/dist/cjs/{index-34c9711f.cjs.js → index-2dcb5904.cjs.js} +9 -8
  16. package/dist/cjs/{index-b6524933.cjs.js → index-36dc220c.cjs.js} +3 -3
  17. package/dist/cjs/{index-d1a9df44.cjs.js → index-3d9c7674.cjs.js} +10 -9
  18. package/dist/cjs/{index-382b09bd.cjs.js → index-4b5b95e2.cjs.js} +2 -2
  19. package/dist/cjs/{index-954e39fd.cjs.js → index-fc2a013e.cjs.js} +49 -48
  20. package/dist/cjs/{info-91bf4b8c.cjs.js → info-650c5512.cjs.js} +3 -3
  21. package/dist/cjs/{install-3f6807aa.cjs.js → install-736d574a.cjs.js} +4 -4
  22. package/dist/cjs/{lint-b00958db.cjs.js → lint-4c111949.cjs.js} +2 -2
  23. package/dist/cjs/{lint-ada8372d.cjs.js → lint-c297aad9.cjs.js} +2 -2
  24. package/dist/cjs/{lint-5721d95a.cjs.js → lint-cf1e3fce.cjs.js} +3 -3
  25. package/dist/cjs/{list-deprecations-e5cf0b4b.cjs.js → list-deprecations-9cb358f5.cjs.js} +2 -2
  26. package/dist/cjs/{new-d1a0a906.cjs.js → new-a9e85de2.cjs.js} +61 -20
  27. package/dist/cjs/{pack-efd4293b.cjs.js → pack-4276c28b.cjs.js} +2 -2
  28. package/dist/cjs/{packageDetection-f4659cc8.cjs.js → packageDetection-f307da6e.cjs.js} +15 -10
  29. package/dist/cjs/{packageExports-14ed2839.cjs.js → packageExports-52b68a8b.cjs.js} +3 -3
  30. package/dist/cjs/{packageLintConfigs-060fcadc.cjs.js → packageLintConfigs-b8255c0f.cjs.js} +3 -3
  31. package/dist/cjs/{packageRole-edeebd1a.cjs.js → packageRole-88a12de3.cjs.js} +2 -2
  32. package/dist/cjs/{packages-2e269009.cjs.js → packages-2fed59fc.cjs.js} +3 -3
  33. package/dist/cjs/{print-c82ee274.cjs.js → print-4b7cfd25.cjs.js} +3 -3
  34. package/dist/cjs/{role-52049678.cjs.js → role-358d4b81.cjs.js} +2 -2
  35. package/dist/cjs/{run-560577f5.cjs.js → run-beee57cd.cjs.js} +2 -2
  36. package/dist/cjs/{schema-c8d8c7a7.cjs.js → schema-e88ef413.cjs.js} +3 -3
  37. package/dist/cjs/{test-40a87a31.cjs.js → test-b8d06e69.cjs.js} +3 -3
  38. package/dist/cjs/{test-4ef8d09d.cjs.js → test-d7b2cc61.cjs.js} +3 -3
  39. package/dist/cjs/{validate-9346b901.cjs.js → validate-1ea2af0a.cjs.js} +3 -3
  40. package/dist/index.cjs.js +1 -1
  41. package/package.json +16 -15
@@ -53,13 +53,13 @@ class NotFoundError extends CustomError {
53
53
 
54
54
  const paths = cliCommon.findPaths(__dirname);
55
55
 
56
- var version$c = "0.21.0-next.0";
56
+ var version$c = "0.21.0-next.2";
57
57
 
58
- var version$b = "0.6.10-next.0";
58
+ var version$b = "0.6.10-next.2";
59
59
 
60
- var version$a = "0.3.0-next.0";
60
+ var version$a = "0.3.0-next.2";
61
61
 
62
- var version$9 = "0.25.2-next.0";
62
+ var version$9 = "0.25.2-next.2";
63
63
  var dependencies = {
64
64
  "@backstage/catalog-model": "workspace:^",
65
65
  "@backstage/cli-common": "workspace:^",
@@ -93,7 +93,7 @@ var dependencies = {
93
93
  "@swc/core": "^1.3.46",
94
94
  "@swc/helpers": "^0.5.0",
95
95
  "@swc/jest": "^0.2.22",
96
- "@types/jest": "^29.0.0",
96
+ "@types/jest": "^29.5.11",
97
97
  "@types/webpack-env": "^1.15.2",
98
98
  "@typescript-eslint/eslint-plugin": "^6.12.0",
99
99
  "@typescript-eslint/parser": "^6.7.2",
@@ -109,7 +109,7 @@ var dependencies = {
109
109
  "css-loader": "^6.5.1",
110
110
  "ctrlc-windows": "^2.1.0",
111
111
  diff: "^5.0.0",
112
- esbuild: "^0.19.0",
112
+ esbuild: "^0.20.0",
113
113
  "esbuild-loader": "^2.18.0",
114
114
  eslint: "^8.6.0",
115
115
  "eslint-config-prettier": "^8.3.0",
@@ -131,7 +131,7 @@ var dependencies = {
131
131
  handlebars: "^4.7.3",
132
132
  "html-webpack-plugin": "^5.3.1",
133
133
  inquirer: "^8.2.0",
134
- jest: "^29.0.2",
134
+ jest: "^29.7.0",
135
135
  "jest-css-modules": "^2.1.0",
136
136
  "jest-environment-jsdom": "^29.0.2",
137
137
  "jest-runtime": "^29.0.2",
@@ -143,6 +143,7 @@ var dependencies = {
143
143
  "node-libs-browser": "^2.2.1",
144
144
  "npm-packlist": "^5.0.0",
145
145
  ora: "^5.3.0",
146
+ "p-queue": "^6.6.2",
146
147
  postcss: "^8.1.0",
147
148
  process: "^0.11.10",
148
149
  "react-dev-utils": "^12.0.0-next.60",
@@ -207,19 +208,19 @@ var devDependencies = {
207
208
 
208
209
  var version$8 = "1.1.1";
209
210
 
210
- var version$7 = "1.11.3";
211
+ var version$7 = "1.12.0-next.1";
211
212
 
212
- var version$6 = "0.13.10";
213
+ var version$6 = "0.14.0-next.1";
213
214
 
214
- var version$5 = "1.8.2";
215
+ var version$5 = "1.9.0-next.1";
215
216
 
216
- var version$4 = "1.0.27-next.0";
217
+ var version$4 = "1.0.27-next.2";
217
218
 
218
- var version$3 = "1.5.0-next.0";
219
+ var version$3 = "1.5.0-next.2";
219
220
 
220
- var version$2 = "0.3.0-next.0";
221
+ var version$2 = "0.3.0-next.2";
221
222
 
222
- var version$1 = "0.5.0";
223
+ var version$1 = "0.5.1-next.0";
223
224
 
224
225
  const packageVersions = {
225
226
  "@backstage/backend-common": version$c,
@@ -283,7 +284,7 @@ const configOption = [
283
284
  Array()
284
285
  ];
285
286
  function registerOnboardCommand(program) {
286
- program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-b6524933.cjs.js'); }).then((m) => m.command)));
287
+ program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-36dc220c.cjs.js'); }).then((m) => m.command)));
287
288
  }
288
289
  function registerRepoCommand(program) {
289
290
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
@@ -295,7 +296,7 @@ function registerRepoCommand(program) {
295
296
  ).option(
296
297
  "--since <ref>",
297
298
  "Only build packages and their dev dependents that changed since the specified ref"
298
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-bfd4a3bd.cjs.js'); }).then((m) => m.command)));
299
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-89b38fdb.cjs.js'); }).then((m) => m.command)));
299
300
  command.command("lint").description("Lint all packages in the project").option(
300
301
  "--format <format>",
301
302
  "Lint report output format",
@@ -303,14 +304,14 @@ function registerRepoCommand(program) {
303
304
  ).option(
304
305
  "--since <ref>",
305
306
  "Only lint packages that changed since the specified ref"
306
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-b00958db.cjs.js'); }).then((m) => m.command)));
307
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-4c111949.cjs.js'); }).then((m) => m.command)));
307
308
  command.command("fix").description("Automatically fix packages in the project").option(
308
309
  "--check",
309
310
  "Fail if any packages would have been changed by the command"
310
- ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-b95f78f4.cjs.js'); }).then((m) => m.command)));
311
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-f3cf23b0.cjs.js'); }).then((m) => m.command)));
311
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-1eddbe16.cjs.js'); }).then((m) => m.command)));
312
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-d772e9a1.cjs.js'); }).then((m) => m.command)));
312
313
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
313
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-e5cf0b4b.cjs.js'); }).then((m) => m.command))
314
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-9cb358f5.cjs.js'); }).then((m) => m.command))
314
315
  );
315
316
  command.command("test").allowUnknownOption(true).option(
316
317
  "--since <ref>",
@@ -318,14 +319,14 @@ function registerRepoCommand(program) {
318
319
  ).option(
319
320
  "--jest-help",
320
321
  "Show help for Jest CLI options, which are passed through"
321
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-4ef8d09d.cjs.js'); }).then((m) => m.command)));
322
+ ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-d7b2cc61.cjs.js'); }).then((m) => m.command)));
322
323
  }
323
324
  function registerScriptCommand(program) {
324
325
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
325
326
  command.command("start").description("Start a package for local development").option(...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(
326
327
  "--inspect-brk [host]",
327
328
  "Enable debugger in Node.js environments, breaking before code starts"
328
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-d1a9df44.cjs.js'); }).then((m) => m.command)));
329
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-3d9c7674.cjs.js'); }).then((m) => m.command)));
329
330
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
330
331
  "--minify",
331
332
  "Minify the generated code. Does not apply to app or backend packages."
@@ -340,30 +341,30 @@ function registerScriptCommand(program) {
340
341
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
341
342
  (opt, opts) => opts ? [...opts, opt] : [opt],
342
343
  Array()
343
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-34c9711f.cjs.js'); }).then((m) => m.command)));
344
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-2dcb5904.cjs.js'); }).then((m) => m.command)));
344
345
  command.command("lint [directories...]").option(
345
346
  "--format <format>",
346
347
  "Lint report output format",
347
348
  "eslint-formatter-friendly"
348
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-ada8372d.cjs.js'); }).then((m) => m.default)));
349
- command.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-40a87a31.cjs.js'); }).then((m) => m.default)));
350
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-207c87d4.cjs.js'); }).then((m) => m.default)));
351
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-efd4293b.cjs.js'); }).then((m) => m.pre)));
352
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-efd4293b.cjs.js'); }).then((m) => m.post)));
349
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-c297aad9.cjs.js'); }).then((m) => m.default)));
350
+ command.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-b8d06e69.cjs.js'); }).then((m) => m.default)));
351
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-8520436b.cjs.js'); }).then((m) => m.default)));
352
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-4276c28b.cjs.js'); }).then((m) => m.pre)));
353
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-4276c28b.cjs.js'); }).then((m) => m.post)));
353
354
  }
354
355
  function registerMigrateCommand(program) {
355
356
  const command = program.command("migrate [command]").description("Migration utilities");
356
- command.command("package-roles").description(`Add package role field to packages that don't have it`).action(lazy(() => Promise.resolve().then(function () { return require('./packageRole-edeebd1a.cjs.js'); }).then((m) => m.default)));
357
+ command.command("package-roles").description(`Add package role field to packages that don't have it`).action(lazy(() => Promise.resolve().then(function () { return require('./packageRole-88a12de3.cjs.js'); }).then((m) => m.default)));
357
358
  command.command("package-scripts").description("Set package scripts according to each package role").action(
358
359
  lazy(() => Promise.resolve().then(function () { return require('./packageScripts-bb7b6de2.cjs.js'); }).then((m) => m.command))
359
360
  );
360
361
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
361
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-14ed2839.cjs.js'); }).then((m) => m.command))
362
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-52b68a8b.cjs.js'); }).then((m) => m.command))
362
363
  );
363
364
  command.command("package-lint-configs").description(
364
365
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
365
366
  ).action(
366
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-060fcadc.cjs.js'); }).then((m) => m.command))
367
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-b8255c0f.cjs.js'); }).then((m) => m.command))
367
368
  );
368
369
  command.command("react-router-deps").description(
369
370
  "Migrates the react-router dependencies for all packages to be peer dependencies"
@@ -388,7 +389,7 @@ function registerCommands(program) {
388
389
  ).option(
389
390
  "--baseVersion <version>",
390
391
  "The version to use for any new packages (default: 0.1.0)"
391
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-d1a0a906.cjs.js'); }).then((m) => m.default)));
392
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-a9e85de2.cjs.js'); }).then((m) => m.default)));
392
393
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
393
394
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
394
395
  ).option(
@@ -402,30 +403,30 @@ function registerCommands(program) {
402
403
  ).option("--scope <scope>", "The scope to use for new packages").option(
403
404
  "--npm-registry <URL>",
404
405
  "The package registry to use for new packages"
405
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-d1a0a906.cjs.js'); }).then((m) => m.default)));
406
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-a9e85de2.cjs.js'); }).then((m) => m.default)));
406
407
  program.command("create-plugin", { hidden: true }).option(
407
408
  "--backend",
408
409
  "Create plugin with the backend dependencies as default"
409
410
  ).description("Creates a new plugin in the current repository [DEPRECATED]").option("--scope <scope>", "npm scope").option("--npm-registry <URL>", "npm registry URL").option("--no-private", "Public npm package").action(
410
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-dcf9bf0f.cjs.js'); }).then((m) => m.default))
411
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-fa95d3bb.cjs.js'); }).then((m) => m.default))
411
412
  );
412
413
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
413
414
  "Diff an existing plugin with the creation template [DEPRECATED]"
414
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-e863f7e0.cjs.js'); }).then((m) => m.default)));
415
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-a2cd50cb.cjs.js'); }).then((m) => m.default)));
415
416
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
416
417
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
417
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-40a87a31.cjs.js'); }).then((m) => m.default)));
418
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-b8d06e69.cjs.js'); }).then((m) => m.default)));
418
419
  program.command("config:docs").option(
419
420
  "--package <name>",
420
421
  "Only include the schema that applies to the given package"
421
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-04032737.cjs.js'); }).then((m) => m.default)));
422
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-7ae5368d.cjs.js'); }).then((m) => m.default)));
422
423
  program.command("config:print").option(
423
424
  "--package <name>",
424
425
  "Only load config schema that applies to the given package"
425
426
  ).option("--lax", "Do not require environment variables to be set").option("--frontend", "Print only the frontend configuration").option("--with-secrets", "Include secrets in the printed configuration").option(
426
427
  "--format <format>",
427
428
  "Format to print the configuration in, either json or yaml [yaml]"
428
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-c82ee274.cjs.js'); }).then((m) => m.default)));
429
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-4b7cfd25.cjs.js'); }).then((m) => m.default)));
429
430
  program.command("config:check").option(
430
431
  "--package <name>",
431
432
  "Only load config schema that applies to the given package"
@@ -434,14 +435,14 @@ function registerCommands(program) {
434
435
  "Enable strict config validation, forbidding errors and unknown keys"
435
436
  ).option(...configOption).description(
436
437
  "Validate that the given configuration loads and matches schema"
437
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-9346b901.cjs.js'); }).then((m) => m.default)));
438
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-1ea2af0a.cjs.js'); }).then((m) => m.default)));
438
439
  program.command("config:schema").option(
439
440
  "--package <name>",
440
441
  "Only output config schema that applies to the given package"
441
442
  ).option(
442
443
  "--format <format>",
443
444
  "Format to print the schema in, either json or yaml [yaml]"
444
- ).option("--merge", "Print the config schemas merged", true).option("--no-merge", "Print the config schemas not merged").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-c8d8c7a7.cjs.js'); }).then((m) => m.default)));
445
+ ).option("--merge", "Print the config schemas merged", true).option("--no-merge", "Print the config schemas not merged").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-e88ef413.cjs.js'); }).then((m) => m.default)));
445
446
  registerRepoCommand(program);
446
447
  registerScriptCommand(program);
447
448
  registerMigrateCommand(program);
@@ -453,19 +454,19 @@ function registerCommands(program) {
453
454
  "--release <version|next|main>",
454
455
  "Bump to a specific Backstage release line or version",
455
456
  "main"
456
- ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-92d0fa1b.cjs.js'); }).then((m) => m.default)));
457
- program.command("versions:check").option("--fix", "Fix any auto-fixable versioning problems").description("Check Backstage package versioning").action(lazy(() => Promise.resolve().then(function () { return require('./lint-5721d95a.cjs.js'); }).then((m) => m.default)));
458
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-207c87d4.cjs.js'); }).then((m) => m.default)));
457
+ ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-04fdcc88.cjs.js'); }).then((m) => m.default)));
458
+ program.command("versions:check").option("--fix", "Fix any auto-fixable versioning problems").description("Check Backstage package versioning").action(lazy(() => Promise.resolve().then(function () { return require('./lint-cf1e3fce.cjs.js'); }).then((m) => m.default)));
459
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-8520436b.cjs.js'); }).then((m) => m.default)));
459
460
  program.command("build-workspace <workspace-dir> [packages...]").option(
460
461
  "--alwaysYarnPack",
461
462
  "Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
462
- ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-da50d1fe.cjs.js'); }).then((m) => m.default)));
463
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-382b09bd.cjs.js'); }).then((m) => m.default)));
464
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-91bf4b8c.cjs.js'); }).then((m) => m.default)));
463
+ ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-255373ac.cjs.js'); }).then((m) => m.default)));
464
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-4b5b95e2.cjs.js'); }).then((m) => m.default)));
465
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-650c5512.cjs.js'); }).then((m) => m.default)));
465
466
  program.command("install [plugin-id]", { hidden: true }).option(
466
467
  "--from <packageJsonFilePath>",
467
468
  "Install from a local package.json containing the installation recipe"
468
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-3f6807aa.cjs.js'); }).then((m) => m.default)));
469
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-736d574a.cjs.js'); }).then((m) => m.default)));
469
470
  }
470
471
  function lazy(getActionFunc) {
471
472
  return async (...args) => {
@@ -509,4 +510,4 @@ exports.devDependencies = devDependencies;
509
510
  exports.paths = paths;
510
511
  exports.version = version;
511
512
  exports.version$1 = version$9;
512
- //# sourceMappingURL=index-954e39fd.cjs.js.map
513
+ //# sourceMappingURL=index-fc2a013e.cjs.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-954e39fd.cjs.js');
3
+ var index = require('./index-fc2a013e.cjs.js');
4
4
  var os = require('os');
5
- var run = require('./run-560577f5.cjs.js');
5
+ var run = require('./run-beee57cd.cjs.js');
6
6
  var Lockfile = require('./Lockfile-eced6070.cjs.js');
7
7
  require('minimatch');
8
8
  require('@manypkg/get-packages');
@@ -58,4 +58,4 @@ var info = async () => {
58
58
  };
59
59
 
60
60
  exports["default"] = info;
61
- //# sourceMappingURL=info-91bf4b8c.cjs.js.map
61
+ //# sourceMappingURL=info-650c5512.cjs.js.map
@@ -4,12 +4,12 @@ var fs = require('fs-extra');
4
4
  require('semver');
5
5
  require('@yarnpkg/parsers');
6
6
  require('@yarnpkg/lockfile');
7
- var packages = require('./packages-2e269009.cjs.js');
8
- var index = require('./index-954e39fd.cjs.js');
7
+ var packages = require('./packages-2fed59fc.cjs.js');
8
+ var index = require('./index-fc2a013e.cjs.js');
9
9
  var chalk = require('chalk');
10
10
  var sortBy = require('lodash/sortBy');
11
11
  var groupBy = require('lodash/groupBy');
12
- var run = require('./run-560577f5.cjs.js');
12
+ var run = require('./run-beee57cd.cjs.js');
13
13
  require('minimatch');
14
14
  require('@manypkg/get-packages');
15
15
  require('./yarn-6cd89e16.cjs.js');
@@ -268,4 +268,4 @@ var install = async (pluginId, cmd) => {
268
268
  };
269
269
 
270
270
  exports["default"] = install;
271
- //# sourceMappingURL=install-3f6807aa.cjs.js.map
271
+ //# sourceMappingURL=install-736d574a.cjs.js.map
@@ -3,7 +3,7 @@
3
3
  var chalk = require('chalk');
4
4
  var path = require('path');
5
5
  var cliNode = require('@backstage/cli-node');
6
- var index = require('./index-954e39fd.cjs.js');
6
+ var index = require('./index-fc2a013e.cjs.js');
7
7
  var parallel = require('./parallel-2d9d247e.cjs.js');
8
8
  require('commander');
9
9
  require('fs-extra');
@@ -88,4 +88,4 @@ async function command(opts) {
88
88
  }
89
89
 
90
90
  exports.command = command;
91
- //# sourceMappingURL=lint-b00958db.cjs.js.map
91
+ //# sourceMappingURL=lint-4c111949.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-954e39fd.cjs.js');
3
+ var index = require('./index-fc2a013e.cjs.js');
4
4
  var eslint = require('eslint');
5
5
  require('commander');
6
6
  require('chalk');
@@ -33,4 +33,4 @@ var lint = async (directories, opts) => {
33
33
  };
34
34
 
35
35
  exports["default"] = lint;
36
- //# sourceMappingURL=lint-ada8372d.cjs.js.map
36
+ //# sourceMappingURL=lint-c297aad9.cjs.js.map
@@ -5,8 +5,8 @@ require('minimatch');
5
5
  require('@manypkg/get-packages');
6
6
  require('chalk');
7
7
  require('./yarn-6cd89e16.cjs.js');
8
- require('./run-560577f5.cjs.js');
9
- var index = require('./index-954e39fd.cjs.js');
8
+ require('./run-beee57cd.cjs.js');
9
+ var index = require('./index-fc2a013e.cjs.js');
10
10
  var partition = require('lodash/partition');
11
11
  var cliNode = require('@backstage/cli-node');
12
12
  require('fs-extra');
@@ -112,4 +112,4 @@ function logArray(arr, header, each) {
112
112
  exports["default"] = lint;
113
113
  exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
114
114
  exports.includedFilter = includedFilter;
115
- //# sourceMappingURL=lint-5721d95a.cjs.js.map
115
+ //# sourceMappingURL=lint-cf1e3fce.cjs.js.map
@@ -4,7 +4,7 @@ var chalk = require('chalk');
4
4
  var eslint = require('eslint');
5
5
  var path = require('path');
6
6
  var cliNode = require('@backstage/cli-node');
7
- var index = require('./index-954e39fd.cjs.js');
7
+ var index = require('./index-fc2a013e.cjs.js');
8
8
  require('commander');
9
9
  require('fs-extra');
10
10
  require('semver');
@@ -76,4 +76,4 @@ async function command(opts) {
76
76
  }
77
77
 
78
78
  exports.command = command;
79
- //# sourceMappingURL=list-deprecations-e5cf0b4b.cjs.js.map
79
+ //# sourceMappingURL=list-deprecations-9cb358f5.cjs.js.map
@@ -7,14 +7,14 @@ var chalk = require('chalk');
7
7
  var inquirer = require('inquirer');
8
8
  var camelCase = require('lodash/camelCase');
9
9
  var upperFirst = require('lodash/upperFirst');
10
- var index = require('./index-954e39fd.cjs.js');
11
- var codeowners = require('./codeowners-af8fa550.cjs.js');
10
+ var index = require('./index-fc2a013e.cjs.js');
11
+ var codeowners = require('./codeowners-0dbabde9.cjs.js');
12
12
  var tasks = require('./tasks-84de240c.cjs.js');
13
13
  var Lockfile = require('./Lockfile-eced6070.cjs.js');
14
14
  require('minimatch');
15
15
  require('@manypkg/get-packages');
16
16
  require('./yarn-6cd89e16.cjs.js');
17
- require('./run-560577f5.cjs.js');
17
+ require('./run-beee57cd.cjs.js');
18
18
  var partition = require('lodash/partition');
19
19
  var cliNode = require('@backstage/cli-node');
20
20
  var errors = require('@backstage/errors');
@@ -137,6 +137,18 @@ async function executePluginPackageTemplate(ctx, options) {
137
137
  ctx.markAsModified();
138
138
  }
139
139
 
140
+ const resolvePackageName = (options) => {
141
+ const { baseName, scope, plugin } = options;
142
+ if (scope) {
143
+ if (plugin) {
144
+ const pluginName = scope.startsWith("backstage") ? "plugin" : "backstage-plugin";
145
+ return scope.includes("/") ? `@${scope}${pluginName}-${baseName}` : `@${scope}/${pluginName}-${baseName}`;
146
+ }
147
+ return scope.includes("/") ? `@${scope}${baseName}` : `@${scope}/${baseName}`;
148
+ }
149
+ return plugin ? `backstage-plugin-${baseName}` : baseName;
150
+ };
151
+
140
152
  const frontendPlugin = createFactory({
141
153
  name: "plugin",
142
154
  description: "A new frontend plugin",
@@ -146,7 +158,11 @@ const frontendPlugin = createFactory({
146
158
  optionsPrompts: [pluginIdPrompt(), ownerPrompt()],
147
159
  async create(options, ctx) {
148
160
  const { id } = options;
149
- const name = ctx.scope ? `@${ctx.scope}/plugin-${id}` : `backstage-plugin-${id}`;
161
+ const name = resolvePackageName({
162
+ baseName: id,
163
+ scope: ctx.scope,
164
+ plugin: true
165
+ });
150
166
  const extensionName = `${upperFirst__default["default"](camelCase__default["default"](id))}Page`;
151
167
  tasks.Task.log();
152
168
  tasks.Task.log(`Creating frontend plugin ${chalk__default["default"].cyan(name)}`);
@@ -227,7 +243,11 @@ const backendPlugin = createFactory({
227
243
  async create(options, ctx) {
228
244
  const { id } = options;
229
245
  const pluginId = `${id}-backend`;
230
- const name = ctx.scope ? `@${ctx.scope}/plugin-${pluginId}` : `backstage-plugin-${pluginId}`;
246
+ const name = resolvePackageName({
247
+ baseName: pluginId,
248
+ scope: ctx.scope,
249
+ plugin: true
250
+ });
231
251
  tasks.Task.log();
232
252
  tasks.Task.log(`Creating backend plugin ${chalk__default["default"].cyan(name)}`);
233
253
  const targetDir = ctx.isMonoRepo ? index.paths.resolveTargetRoot("plugins", pluginId) : index.paths.resolveTargetRoot(`backstage-plugin-${pluginId}`);
@@ -276,7 +296,11 @@ const backendModule = createFactory({
276
296
  async create(options, ctx) {
277
297
  const { id: pluginId, moduleId } = options;
278
298
  const dirName = `${pluginId}-backend-module-${moduleId}`;
279
- const name = ctx.scope ? `@${ctx.scope}/plugin-${dirName}` : `backstage-plugin-${dirName}`;
299
+ const name = resolvePackageName({
300
+ baseName: dirName,
301
+ scope: ctx.scope,
302
+ plugin: true
303
+ });
280
304
  tasks.Task.log();
281
305
  tasks.Task.log(`Creating backend module ${chalk__default["default"].cyan(name)}`);
282
306
  const targetDir = ctx.isMonoRepo ? index.paths.resolveTargetRoot("plugins", dirName) : index.paths.resolveTargetRoot(`backstage-plugin-${dirName}`);
@@ -328,7 +352,11 @@ const nodeLibraryPackage = createFactory({
328
352
  optionsPrompts: [pluginIdPrompt(), ownerPrompt()],
329
353
  async create(options, ctx) {
330
354
  const { id } = options;
331
- const name = ctx.scope ? `@${ctx.scope}/${id}` : `${id}`;
355
+ const name = resolvePackageName({
356
+ baseName: id,
357
+ scope: ctx.scope,
358
+ plugin: false
359
+ });
332
360
  tasks.Task.log();
333
361
  tasks.Task.log(`Creating node-library package ${chalk__default["default"].cyan(name)}`);
334
362
  const targetDir = ctx.isMonoRepo ? index.paths.resolveTargetRoot("packages", id) : index.paths.resolveTargetRoot(`${id}`);
@@ -363,7 +391,11 @@ const webLibraryPackage = createFactory({
363
391
  optionsPrompts: [pluginIdPrompt(), ownerPrompt()],
364
392
  async create(options, ctx) {
365
393
  const { id } = options;
366
- const name = ctx.scope ? `@${ctx.scope}/${id}` : `${id}`;
394
+ const name = resolvePackageName({
395
+ baseName: id,
396
+ scope: ctx.scope,
397
+ plugin: false
398
+ });
367
399
  tasks.Task.log();
368
400
  tasks.Task.log(`Creating web-library package ${chalk__default["default"].cyan(name)}`);
369
401
  const targetDir = ctx.isMonoRepo ? index.paths.resolveTargetRoot("packages", id) : index.paths.resolveTargetRoot(`${id}`);
@@ -399,7 +431,11 @@ const pluginCommon = createFactory({
399
431
  async create(options, ctx) {
400
432
  const { id } = options;
401
433
  const suffix = `${id}-common`;
402
- const name = ctx.scope ? `@${ctx.scope}/plugin-${suffix}` : `backstage-plugin-${suffix}`;
434
+ const name = resolvePackageName({
435
+ baseName: suffix,
436
+ scope: ctx.scope,
437
+ plugin: true
438
+ });
403
439
  tasks.Task.log();
404
440
  tasks.Task.log(`Creating backend plugin ${chalk__default["default"].cyan(name)}`);
405
441
  const targetDir = ctx.isMonoRepo ? index.paths.resolveTargetRoot("plugins", suffix) : index.paths.resolveTargetRoot(`backstage-plugin-${suffix}`);
@@ -435,7 +471,11 @@ const pluginNode = createFactory({
435
471
  async create(options, ctx) {
436
472
  const { id } = options;
437
473
  const suffix = `${id}-node`;
438
- const name = ctx.scope ? `@${ctx.scope}/plugin-${suffix}` : `backstage-plugin-${suffix}`;
474
+ const name = resolvePackageName({
475
+ baseName: suffix,
476
+ scope: ctx.scope,
477
+ plugin: true
478
+ });
439
479
  tasks.Task.log();
440
480
  tasks.Task.log(`Creating Node.js plugin library ${chalk__default["default"].cyan(name)}`);
441
481
  const targetDir = ctx.isMonoRepo ? index.paths.resolveTargetRoot("plugins", suffix) : index.paths.resolveTargetRoot(`backstage-plugin-${suffix}`);
@@ -471,7 +511,11 @@ const pluginWeb = createFactory({
471
511
  async create(options, ctx) {
472
512
  const { id } = options;
473
513
  const suffix = `${id}-react`;
474
- const name = ctx.scope ? `@${ctx.scope}/plugin-${suffix}` : `backstage-plugin-${suffix}`;
514
+ const name = resolvePackageName({
515
+ baseName: suffix,
516
+ scope: ctx.scope,
517
+ plugin: true
518
+ });
475
519
  tasks.Task.log();
476
520
  tasks.Task.log(`Creating web plugin library ${chalk__default["default"].cyan(name)}`);
477
521
  const targetDir = ctx.isMonoRepo ? index.paths.resolveTargetRoot("plugins", suffix) : index.paths.resolveTargetRoot(`backstage-plugin-${suffix}`);
@@ -522,14 +566,11 @@ const scaffolderModule = createFactory({
522
566
  async create(options, ctx) {
523
567
  const { id } = options;
524
568
  const slug = `scaffolder-backend-module-${id}`;
525
- let name = `backstage-plugin-${slug}`;
526
- if (ctx.scope) {
527
- if (ctx.scope === "backstage") {
528
- name = `@backstage/plugin-${slug}`;
529
- } else {
530
- name = `@${ctx.scope}/backstage-plugin-${slug}`;
531
- }
532
- }
569
+ const name = resolvePackageName({
570
+ baseName: slug,
571
+ scope: ctx.scope,
572
+ plugin: true
573
+ });
533
574
  tasks.Task.log();
534
575
  tasks.Task.log(`Creating module ${chalk__default["default"].cyan(name)}`);
535
576
  const targetDir = ctx.isMonoRepo ? index.paths.resolveTargetRoot("plugins", slug) : index.paths.resolveTargetRoot(`backstage-plugin-${slug}`);
@@ -736,4 +777,4 @@ var _new = async (opts) => {
736
777
  };
737
778
 
738
779
  exports["default"] = _new;
739
- //# sourceMappingURL=new-d1a0a906.cjs.js.map
780
+ //# sourceMappingURL=new-a9e85de2.cjs.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var productionPack = require('./productionPack-8b9ac9b7.cjs.js');
4
- var index = require('./index-954e39fd.cjs.js');
4
+ var index = require('./index-fc2a013e.cjs.js');
5
5
  require('fs-extra');
6
6
  require('npm-packlist');
7
7
  require('path');
@@ -21,4 +21,4 @@ const post = async () => {
21
21
 
22
22
  exports.post = post;
23
23
  exports.pre = pre;
24
- //# sourceMappingURL=pack-efd4293b.cjs.js.map
24
+ //# sourceMappingURL=pack-4276c28b.cjs.js.map
@@ -8,19 +8,20 @@ var HtmlWebpackPlugin = require('html-webpack-plugin');
8
8
  var cliCommon = require('@backstage/cli-common');
9
9
  var ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
10
10
  var runScriptWebpackPlugin = require('run-script-webpack-plugin');
11
- var index = require('./index-954e39fd.cjs.js');
11
+ var index = require('./index-fc2a013e.cjs.js');
12
12
  var fs = require('fs-extra');
13
13
  var getPackages = require('@manypkg/get-packages');
14
14
  var nodeExternals = require('webpack-node-externals');
15
15
  var pickBy = require('lodash/pickBy');
16
16
  var entryPoints = require('./entryPoints-0cc55995.cjs.js');
17
- var run = require('./run-560577f5.cjs.js');
17
+ var run = require('./run-beee57cd.cjs.js');
18
18
  var MiniCssExtractPlugin = require('mini-css-extract-plugin');
19
19
  var svgrTemplate = require('./svgrTemplate-3549ea1c.cjs.js');
20
20
  var ReactRefreshPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
21
21
  var yn = require('yn');
22
22
  var config = require('@backstage/config');
23
23
  var chokidar = require('chokidar');
24
+ var PQueue = require('p-queue');
24
25
 
25
26
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
26
27
 
@@ -36,6 +37,7 @@ var MiniCssExtractPlugin__default = /*#__PURE__*/_interopDefaultLegacy(MiniCssEx
36
37
  var ReactRefreshPlugin__default = /*#__PURE__*/_interopDefaultLegacy(ReactRefreshPlugin);
37
38
  var yn__default = /*#__PURE__*/_interopDefaultLegacy(yn);
38
39
  var chokidar__default = /*#__PURE__*/_interopDefaultLegacy(chokidar);
40
+ var PQueue__default = /*#__PURE__*/_interopDefaultLegacy(PQueue);
39
41
 
40
42
  class LinkedPackageResolvePlugin {
41
43
  constructor(targetModules, packages) {
@@ -693,19 +695,22 @@ async function detectPackages(targetPath, { include, exclude }) {
693
695
  return [];
694
696
  });
695
697
  }
698
+ const writeQueue = new PQueue__default["default"]({ concurrency: 1 });
696
699
  async function writeDetectedPackagesModule(pkgs) {
697
700
  const requirePackageScript = pkgs == null ? void 0 : pkgs.map(
698
701
  (pkg) => `{ name: ${JSON.stringify(pkg.name)}, export: ${JSON.stringify(
699
702
  pkg.export
700
703
  )}, default: require('${pkg.import}').default }`
701
704
  ).join(",");
702
- await fs__default["default"].writeFile(
703
- path.join(
704
- index.paths.targetRoot,
705
- "node_modules",
706
- `${DETECTED_MODULES_MODULE_NAME}.js`
707
- ),
708
- `window['__@backstage/discovered__'] = { modules: [${requirePackageScript}] };`
705
+ await writeQueue.add(
706
+ () => fs__default["default"].writeFile(
707
+ path.join(
708
+ index.paths.targetRoot,
709
+ "node_modules",
710
+ `${DETECTED_MODULES_MODULE_NAME}.js`
711
+ ),
712
+ `window['__@backstage/discovered__'] = { modules: [${requirePackageScript}] };`
713
+ )
709
714
  );
710
715
  }
711
716
  async function createDetectedModulesEntryPoint(options) {
@@ -736,4 +741,4 @@ exports.hasReactDomClient = hasReactDomClient;
736
741
  exports.resolveBaseUrl = resolveBaseUrl;
737
742
  exports.resolveBundlingPaths = resolveBundlingPaths;
738
743
  exports.resolveOptionalBundlingPaths = resolveOptionalBundlingPaths;
739
- //# sourceMappingURL=packageDetection-f4659cc8.cjs.js.map
744
+ //# sourceMappingURL=packageDetection-f307da6e.cjs.js.map