@backstage/cli 0.26.10 → 0.26.11-next.1

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 (45) hide show
  1. package/CHANGELOG.md +15 -23
  2. package/dist/cjs/{Lockfile-D4_-Zt1R.cjs.js → Lockfile-BndFvzHc.cjs.js} +2 -3
  3. package/dist/cjs/{build-DqNJQwfi.cjs.js → build-fqzNfqa5.cjs.js} +7 -7
  4. package/dist/cjs/{buildBackend-CkHhmGwT.cjs.js → buildBackend-CrQ_GwBs.cjs.js} +6 -6
  5. package/dist/cjs/{buildWorkspace-B1RWQ6ul.cjs.js → buildWorkspace-Bv-xt2y-.cjs.js} +4 -4
  6. package/dist/cjs/{bump-BRR_ZbPz.cjs.js → bump-DG3jcOMS.cjs.js} +17 -7
  7. package/dist/cjs/{clean-CybCwTFp.cjs.js → clean-83xjoKEJ.cjs.js} +2 -2
  8. package/dist/cjs/{clean-qeGg_VNa.cjs.js → clean-BGNU8ShE.cjs.js} +2 -2
  9. package/dist/cjs/{codeowners-q_-vuPB4.cjs.js → codeowners-B-nGMoIG.cjs.js} +2 -2
  10. package/dist/cjs/{config-BA9NjlNo.cjs.js → config-eLDUbNFK.cjs.js} +2 -2
  11. package/dist/cjs/{createDistWorkspace-w22TJUGQ.cjs.js → createDistWorkspace-vhWGDizr.cjs.js} +3 -3
  12. package/dist/cjs/{createPlugin-w7MRnJOY.cjs.js → createPlugin-B1qnN0IC.cjs.js} +6 -6
  13. package/dist/cjs/{diff-BnJFJCFB.cjs.js → diff-BU6vhJMf.cjs.js} +3 -4
  14. package/dist/cjs/{docs-DQK3ZBEi.cjs.js → docs-GJmQNVkJ.cjs.js} +3 -3
  15. package/dist/cjs/{fix-Dkwr9aZE.cjs.js → fix-BhwlcHp_.cjs.js} +2 -2
  16. package/dist/cjs/{index-DujFSXx0.cjs.js → index-CTTm1_x6.cjs.js} +6 -6
  17. package/dist/cjs/{index-B_4K0VX8.cjs.js → index-CYI5nGsH.cjs.js} +8 -8
  18. package/dist/cjs/{index-Dvmq0_2_.cjs.js → index-D8nglRxA.cjs.js} +2 -2
  19. package/dist/cjs/{index-Di-MwpF9.cjs.js → index-DX-m2Ed0.cjs.js} +48 -48
  20. package/dist/cjs/{index-B4l9SpsU.cjs.js → index-pTrNn6sL.cjs.js} +9 -10
  21. package/dist/cjs/{info-C0KjF2xZ.cjs.js → info-CSiHnHqF.cjs.js} +4 -4
  22. package/dist/cjs/{install-B3ALW-AM.cjs.js → install-C6PA5oT4.cjs.js} +4 -4
  23. package/dist/cjs/{lint-DNX7ESQN.cjs.js → lint-D0v-Gi6H.cjs.js} +2 -2
  24. package/dist/cjs/{lint-CxLN2GhV.cjs.js → lint-DqMGmvsS.cjs.js} +4 -4
  25. package/dist/cjs/{lint-BEWL3EAz.cjs.js → lint-yikicfA4.cjs.js} +2 -2
  26. package/dist/cjs/{list-deprecations-Bu6Aq1mk.cjs.js → list-deprecations-Coko6Rsb.cjs.js} +2 -2
  27. package/dist/cjs/{new-DuNERJHc.cjs.js → new-Da1kvXDQ.cjs.js} +13 -7
  28. package/dist/cjs/{pack-B06J9pbM.cjs.js → pack-D8b4JM6B.cjs.js} +2 -2
  29. package/dist/cjs/{packageDetection-DY8cx_zp.cjs.js → packageDetection-B6lJYBh9.cjs.js} +3 -3
  30. package/dist/cjs/{packageExports-J3R27iwo.cjs.js → packageExports-DDff9ia4.cjs.js} +3 -3
  31. package/dist/cjs/{packageLintConfigs-CQk51IBo.cjs.js → packageLintConfigs-Bfvzg--7.cjs.js} +3 -3
  32. package/dist/cjs/{packageRole-CM3b9V4k.cjs.js → packageRole-CXerjPpL.cjs.js} +2 -2
  33. package/dist/cjs/{packages-BmLKTXhU.cjs.js → packages-BgyW9VKx.cjs.js} +3 -3
  34. package/dist/cjs/{print-B-qgWBYo.cjs.js → print-C5tbwB1-.cjs.js} +3 -3
  35. package/dist/cjs/{role-vsNdpTM1.cjs.js → role-BjmWpqH5.cjs.js} +2 -2
  36. package/dist/cjs/{run-BnDCE_CR.cjs.js → run-ClbD5HPt.cjs.js} +2 -2
  37. package/dist/cjs/{schema-Nt4oH35S.cjs.js → schema-DbqftE60.cjs.js} +3 -3
  38. package/dist/cjs/{tasks-Dy-6nV0-.cjs.js → tasks-XfFuuYgf.cjs.js} +27 -1
  39. package/dist/cjs/{test-C3R8Wqn8.cjs.js → test-BEyXOT0e.cjs.js} +3 -3
  40. package/dist/cjs/{test-DToaecWe.cjs.js → test-BYKGLz-_.cjs.js} +3 -3
  41. package/dist/cjs/{validate-Cu6nnpSp.cjs.js → validate-D4vVgxsi.cjs.js} +3 -3
  42. package/dist/index.cjs.js +1 -1
  43. package/package.json +10 -10
  44. package/templates/default-backend-plugin/README.md.hbs +1 -1
  45. package/templates/default-backend-plugin/package.json.hbs +3 -5
@@ -47,13 +47,13 @@ class NotFoundError extends CustomError {
47
47
 
48
48
  const paths = cliCommon.findPaths(__dirname);
49
49
 
50
- var version$f = "0.23.2";
50
+ var version$f = "0.23.3-next.1";
51
51
 
52
- var version$e = "0.6.21";
52
+ var version$e = "0.6.22-next.1";
53
53
 
54
- var version$d = "0.4.3";
54
+ var version$d = "0.4.4-next.1";
55
55
 
56
- var version$c = "0.26.10";
56
+ var version$c = "0.26.11-next.1";
57
57
  var dependencies = {
58
58
  "@backstage/catalog-model": "workspace:^",
59
59
  "@backstage/cli-common": "workspace:^",
@@ -103,7 +103,7 @@ var dependencies = {
103
103
  "css-loader": "^6.5.1",
104
104
  "ctrlc-windows": "^2.1.0",
105
105
  diff: "^5.0.0",
106
- esbuild: "^0.20.0",
106
+ esbuild: "^0.21.0",
107
107
  "esbuild-loader": "^4.0.0",
108
108
  eslint: "^8.6.0",
109
109
  "eslint-config-prettier": "^9.0.0",
@@ -205,25 +205,25 @@ var devDependencies = {
205
205
 
206
206
  var version$b = "1.2.0";
207
207
 
208
- var version$a = "1.13.0";
208
+ var version$a = "1.13.1-next.1";
209
209
 
210
- var version$9 = "0.14.8";
210
+ var version$9 = "0.14.9-next.0";
211
211
 
212
212
  var version$8 = "1.9.3";
213
213
 
214
- var version$7 = "1.0.34";
214
+ var version$7 = "1.0.35-next.1";
215
215
 
216
- var version$6 = "1.5.7";
216
+ var version$6 = "1.5.8-next.1";
217
217
 
218
- var version$5 = "0.4.7";
218
+ var version$5 = "0.4.8-next.1";
219
219
 
220
- var version$4 = "0.22.8";
220
+ var version$4 = "0.22.9-next.1";
221
221
 
222
- var version$3 = "0.1.7";
222
+ var version$3 = "0.1.8-next.1";
223
223
 
224
224
  var version$2 = "0.5.6";
225
225
 
226
- var version$1 = "0.3.3";
226
+ var version$1 = "0.3.4-next.1";
227
227
 
228
228
  const packageVersions = {
229
229
  "@backstage/backend-common": version$f,
@@ -289,7 +289,7 @@ const configOption = [
289
289
  Array()
290
290
  ];
291
291
  function registerOnboardCommand(program) {
292
- program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-DujFSXx0.cjs.js'); }).then((m) => m.command)));
292
+ program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-CTTm1_x6.cjs.js'); }).then((m) => m.command)));
293
293
  }
294
294
  function registerRepoCommand(program) {
295
295
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
@@ -301,7 +301,7 @@ function registerRepoCommand(program) {
301
301
  ).option(
302
302
  "--since <ref>",
303
303
  "Only build packages and their dev dependents that changed since the specified ref"
304
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-DqNJQwfi.cjs.js'); }).then((m) => m.command)));
304
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-fqzNfqa5.cjs.js'); }).then((m) => m.command)));
305
305
  command.command("lint").description("Lint all packages in the project").option(
306
306
  "--format <format>",
307
307
  "Lint report output format",
@@ -309,17 +309,17 @@ function registerRepoCommand(program) {
309
309
  ).option(
310
310
  "--since <ref>",
311
311
  "Only lint packages that changed since the specified ref"
312
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-DNX7ESQN.cjs.js'); }).then((m) => m.command)));
312
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-D0v-Gi6H.cjs.js'); }).then((m) => m.command)));
313
313
  command.command("fix").description("Automatically fix packages in the project").option(
314
314
  "--publish",
315
315
  "Enable additional fixes that only apply when publishing packages"
316
316
  ).option(
317
317
  "--check",
318
318
  "Fail if any packages would have been changed by the command"
319
- ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-Dkwr9aZE.cjs.js'); }).then((m) => m.command)));
320
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-CybCwTFp.cjs.js'); }).then((m) => m.command)));
319
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-BhwlcHp_.cjs.js'); }).then((m) => m.command)));
320
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-83xjoKEJ.cjs.js'); }).then((m) => m.command)));
321
321
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
322
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-Bu6Aq1mk.cjs.js'); }).then((m) => m.command))
322
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-Coko6Rsb.cjs.js'); }).then((m) => m.command))
323
323
  );
324
324
  command.command("test").allowUnknownOption(true).option(
325
325
  "--since <ref>",
@@ -327,14 +327,14 @@ function registerRepoCommand(program) {
327
327
  ).option(
328
328
  "--jest-help",
329
329
  "Show help for Jest CLI options, which are passed through"
330
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-C3R8Wqn8.cjs.js'); }).then((m) => m.command)));
330
+ ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-BEyXOT0e.cjs.js'); }).then((m) => m.command)));
331
331
  }
332
332
  function registerScriptCommand(program) {
333
333
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
334
334
  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(
335
335
  "--inspect-brk [host]",
336
336
  "Enable debugger in Node.js environments, breaking before code starts"
337
- ).option("--require <path>", "Add a --require argument to the node process").action(lazy(() => Promise.resolve().then(function () { return require('./index-B4l9SpsU.cjs.js'); }).then((m) => m.command)));
337
+ ).option("--require <path>", "Add a --require argument to the node process").action(lazy(() => Promise.resolve().then(function () { return require('./index-pTrNn6sL.cjs.js'); }).then((m) => m.command)));
338
338
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
339
339
  "--minify",
340
340
  "Minify the generated code. Does not apply to app package (app is minified by default)."
@@ -349,30 +349,30 @@ function registerScriptCommand(program) {
349
349
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
350
350
  (opt, opts) => opts ? [...opts, opt] : [opt],
351
351
  Array()
352
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-B_4K0VX8.cjs.js'); }).then((m) => m.command)));
352
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-CYI5nGsH.cjs.js'); }).then((m) => m.command)));
353
353
  command.command("lint [directories...]").option(
354
354
  "--format <format>",
355
355
  "Lint report output format",
356
356
  "eslint-formatter-friendly"
357
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-BEWL3EAz.cjs.js'); }).then((m) => m.default)));
358
- 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-DToaecWe.cjs.js'); }).then((m) => m.default)));
359
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-qeGg_VNa.cjs.js'); }).then((m) => m.default)));
360
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-B06J9pbM.cjs.js'); }).then((m) => m.pre)));
361
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-B06J9pbM.cjs.js'); }).then((m) => m.post)));
357
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-yikicfA4.cjs.js'); }).then((m) => m.default)));
358
+ 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-BYKGLz-_.cjs.js'); }).then((m) => m.default)));
359
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-BGNU8ShE.cjs.js'); }).then((m) => m.default)));
360
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-D8b4JM6B.cjs.js'); }).then((m) => m.pre)));
361
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-D8b4JM6B.cjs.js'); }).then((m) => m.post)));
362
362
  }
363
363
  function registerMigrateCommand(program) {
364
364
  const command = program.command("migrate [command]").description("Migration utilities");
365
- 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-CM3b9V4k.cjs.js'); }).then((m) => m.default)));
365
+ 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-CXerjPpL.cjs.js'); }).then((m) => m.default)));
366
366
  command.command("package-scripts").description("Set package scripts according to each package role").action(
367
367
  lazy(() => Promise.resolve().then(function () { return require('./packageScripts-DX6dilK6.cjs.js'); }).then((m) => m.command))
368
368
  );
369
369
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
370
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-J3R27iwo.cjs.js'); }).then((m) => m.command))
370
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-DDff9ia4.cjs.js'); }).then((m) => m.command))
371
371
  );
372
372
  command.command("package-lint-configs").description(
373
373
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
374
374
  ).action(
375
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-CQk51IBo.cjs.js'); }).then((m) => m.command))
375
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-Bfvzg--7.cjs.js'); }).then((m) => m.command))
376
376
  );
377
377
  command.command("react-router-deps").description(
378
378
  "Migrates the react-router dependencies for all packages to be peer dependencies"
@@ -397,7 +397,7 @@ function registerCommands(program) {
397
397
  ).option(
398
398
  "--baseVersion <version>",
399
399
  "The version to use for any new packages (default: 0.1.0)"
400
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-DuNERJHc.cjs.js'); }).then((m) => m.default)));
400
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-Da1kvXDQ.cjs.js'); }).then((m) => m.default)));
401
401
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
402
402
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
403
403
  ).option(
@@ -411,30 +411,30 @@ function registerCommands(program) {
411
411
  ).option("--scope <scope>", "The scope to use for new packages").option(
412
412
  "--npm-registry <URL>",
413
413
  "The package registry to use for new packages"
414
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-DuNERJHc.cjs.js'); }).then((m) => m.default)));
414
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-Da1kvXDQ.cjs.js'); }).then((m) => m.default)));
415
415
  program.command("create-plugin", { hidden: true }).option(
416
416
  "--backend",
417
417
  "Create plugin with the backend dependencies as default"
418
418
  ).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(
419
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-w7MRnJOY.cjs.js'); }).then((m) => m.default))
419
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-B1qnN0IC.cjs.js'); }).then((m) => m.default))
420
420
  );
421
421
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
422
422
  "Diff an existing plugin with the creation template [DEPRECATED]"
423
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-BnJFJCFB.cjs.js'); }).then((m) => m.default)));
423
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-BU6vhJMf.cjs.js'); }).then((m) => m.default)));
424
424
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
425
425
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
426
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-DToaecWe.cjs.js'); }).then((m) => m.default)));
426
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-BYKGLz-_.cjs.js'); }).then((m) => m.default)));
427
427
  program.command("config:docs").option(
428
428
  "--package <name>",
429
429
  "Only include the schema that applies to the given package"
430
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-DQK3ZBEi.cjs.js'); }).then((m) => m.default)));
430
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-GJmQNVkJ.cjs.js'); }).then((m) => m.default)));
431
431
  program.command("config:print").option(
432
432
  "--package <name>",
433
433
  "Only load config schema that applies to the given package"
434
434
  ).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(
435
435
  "--format <format>",
436
436
  "Format to print the configuration in, either json or yaml [yaml]"
437
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-B-qgWBYo.cjs.js'); }).then((m) => m.default)));
437
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-C5tbwB1-.cjs.js'); }).then((m) => m.default)));
438
438
  program.command("config:check").option(
439
439
  "--package <name>",
440
440
  "Only load config schema that applies to the given package"
@@ -443,14 +443,14 @@ function registerCommands(program) {
443
443
  "Enable strict config validation, forbidding errors and unknown keys"
444
444
  ).option(...configOption).description(
445
445
  "Validate that the given configuration loads and matches schema"
446
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-Cu6nnpSp.cjs.js'); }).then((m) => m.default)));
446
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-D4vVgxsi.cjs.js'); }).then((m) => m.default)));
447
447
  program.command("config:schema").option(
448
448
  "--package <name>",
449
449
  "Only output config schema that applies to the given package"
450
450
  ).option(
451
451
  "--format <format>",
452
452
  "Format to print the schema in, either json or yaml [yaml]"
453
- ).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-Nt4oH35S.cjs.js'); }).then((m) => m.default)));
453
+ ).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-DbqftE60.cjs.js'); }).then((m) => m.default)));
454
454
  registerRepoCommand(program);
455
455
  registerScriptCommand(program);
456
456
  registerMigrateCommand(program);
@@ -462,8 +462,8 @@ function registerCommands(program) {
462
462
  "--release <version|next|main>",
463
463
  "Bump to a specific Backstage release line or version",
464
464
  "main"
465
- ).option("--skip-install", "Skips yarn install step").option("--skip-migrate", "Skips migration of any moved packages").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-BRR_ZbPz.cjs.js'); }).then(function (n) { return n.bump; }).then((m) => m.default)));
466
- 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-CxLN2GhV.cjs.js'); }).then((m) => m.default)));
465
+ ).option("--skip-install", "Skips yarn install step").option("--skip-migrate", "Skips migration of any moved packages").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-DG3jcOMS.cjs.js'); }).then(function (n) { return n.bump; }).then((m) => m.default)));
466
+ 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-DqMGmvsS.cjs.js'); }).then((m) => m.default)));
467
467
  program.command("versions:migrate").option(
468
468
  "--pattern <glob>",
469
469
  "Override glob for matching packages to upgrade"
@@ -472,18 +472,18 @@ function registerCommands(program) {
472
472
  "Skip code changes and only update package.json files"
473
473
  ).description(
474
474
  "Migrate any plugins that have been moved to the @backstage-community namespace automatically"
475
- ).action(lazy(() => Promise.resolve().then(function () { return require('./bump-BRR_ZbPz.cjs.js'); }).then(function (n) { return n.migrate; }).then((m) => m.default)));
476
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-qeGg_VNa.cjs.js'); }).then((m) => m.default)));
475
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./bump-DG3jcOMS.cjs.js'); }).then(function (n) { return n.migrate; }).then((m) => m.default)));
476
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-BGNU8ShE.cjs.js'); }).then((m) => m.default)));
477
477
  program.command("build-workspace <workspace-dir> [packages...]").option(
478
478
  "--alwaysYarnPack",
479
479
  "Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
480
- ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-B1RWQ6ul.cjs.js'); }).then((m) => m.default)));
481
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-Dvmq0_2_.cjs.js'); }).then((m) => m.default)));
482
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-C0KjF2xZ.cjs.js'); }).then((m) => m.default)));
480
+ ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-Bv-xt2y-.cjs.js'); }).then((m) => m.default)));
481
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-D8nglRxA.cjs.js'); }).then((m) => m.default)));
482
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-CSiHnHqF.cjs.js'); }).then((m) => m.default)));
483
483
  program.command("install [plugin-id]", { hidden: true }).option(
484
484
  "--from <packageJsonFilePath>",
485
485
  "Install from a local package.json containing the installation recipe"
486
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-B3ALW-AM.cjs.js'); }).then((m) => m.default)));
486
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-C6PA5oT4.cjs.js'); }).then((m) => m.default)));
487
487
  }
488
488
  function lazy(getActionFunc) {
489
489
  return async (...args) => {
@@ -527,4 +527,4 @@ exports.devDependencies = devDependencies;
527
527
  exports.paths = paths;
528
528
  exports.version = version;
529
529
  exports.version$1 = version$c;
530
- //# sourceMappingURL=index-Di-MwpF9.cjs.js.map
530
+ //# sourceMappingURL=index-DX-m2Ed0.cjs.js.map
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var role = require('./role-vsNdpTM1.cjs.js');
3
+ var role = require('./role-BjmWpqH5.cjs.js');
4
4
  var fs = require('fs-extra');
5
- var index = require('./index-Di-MwpF9.cjs.js');
5
+ var index = require('./index-DX-m2Ed0.cjs.js');
6
6
  var webpack = require('webpack');
7
- var packageDetection = require('./packageDetection-DY8cx_zp.cjs.js');
7
+ var packageDetection = require('./packageDetection-B6lJYBh9.cjs.js');
8
8
  require('yn');
9
9
  var path = require('path');
10
10
  require('react-dev-utils/FileSizeReporter');
@@ -18,7 +18,7 @@ require('run-script-webpack-plugin');
18
18
  require('@manypkg/get-packages');
19
19
  require('webpack-node-externals');
20
20
  require('lodash/pickBy');
21
- require('./run-BnDCE_CR.cjs.js');
21
+ require('./run-ClbD5HPt.cjs.js');
22
22
  require('mini-css-extract-plugin');
23
23
  require('@pmmmwh/react-refresh-webpack-plugin');
24
24
  var chalk = require('chalk');
@@ -40,9 +40,9 @@ var errors = require('@backstage/errors');
40
40
  var debounce = require('lodash/debounce');
41
41
  var url = require('url');
42
42
  var spawn = require('cross-spawn');
43
- var lint = require('./lint-CxLN2GhV.cjs.js');
44
- var config = require('./config-BA9NjlNo.cjs.js');
45
- var Lockfile = require('./Lockfile-D4_-Zt1R.cjs.js');
43
+ var lint = require('./lint-DqMGmvsS.cjs.js');
44
+ var config = require('./config-eLDUbNFK.cjs.js');
45
+ var Lockfile = require('./Lockfile-BndFvzHc.cjs.js');
46
46
  require('commander');
47
47
  require('./entryPoints-CoHH4lBA.cjs.js');
48
48
  require('./svgrTemplate-BTjBQ3by.cjs.js');
@@ -71,8 +71,7 @@ async function serveBackend(options) {
71
71
  const compiler = webpack__default.default(config, (err) => {
72
72
  if (err) {
73
73
  console.error(err);
74
- } else
75
- console.log("Build succeeded");
74
+ } else console.log("Build succeeded");
76
75
  });
77
76
  const waitForExit = async () => {
78
77
  for (const signal of ["SIGINT", "SIGTERM"]) {
@@ -633,4 +632,4 @@ async function command(opts) {
633
632
  }
634
633
 
635
634
  exports.command = command;
636
- //# sourceMappingURL=index-B4l9SpsU.cjs.js.map
635
+ //# sourceMappingURL=index-pTrNn6sL.cjs.js.map
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Di-MwpF9.cjs.js');
3
+ var index = require('./index-DX-m2Ed0.cjs.js');
4
4
  var os = require('os');
5
- var run = require('./run-BnDCE_CR.cjs.js');
6
- var Lockfile = require('./Lockfile-D4_-Zt1R.cjs.js');
5
+ var run = require('./run-ClbD5HPt.cjs.js');
6
+ var Lockfile = require('./Lockfile-BndFvzHc.cjs.js');
7
7
  require('minimatch');
8
8
  require('@manypkg/get-packages');
9
9
  require('chalk');
@@ -57,4 +57,4 @@ var info = async () => {
57
57
  };
58
58
 
59
59
  exports.default = info;
60
- //# sourceMappingURL=info-C0KjF2xZ.cjs.js.map
60
+ //# sourceMappingURL=info-CSiHnHqF.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-BmLKTXhU.cjs.js');
8
- var index = require('./index-Di-MwpF9.cjs.js');
7
+ var packages = require('./packages-BgyW9VKx.cjs.js');
8
+ var index = require('./index-DX-m2Ed0.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-BnDCE_CR.cjs.js');
12
+ var run = require('./run-ClbD5HPt.cjs.js');
13
13
  require('minimatch');
14
14
  require('@manypkg/get-packages');
15
15
  require('./yarn-Ukl9MOS0.cjs.js');
@@ -265,4 +265,4 @@ var install = async (pluginId, cmd) => {
265
265
  };
266
266
 
267
267
  exports.default = install;
268
- //# sourceMappingURL=install-B3ALW-AM.cjs.js.map
268
+ //# sourceMappingURL=install-C6PA5oT4.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-Di-MwpF9.cjs.js');
6
+ var index = require('./index-DX-m2Ed0.cjs.js');
7
7
  var parallel = require('./parallel-BszNaKyc.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-DNX7ESQN.cjs.js.map
91
+ //# sourceMappingURL=lint-D0v-Gi6H.cjs.js.map
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var Lockfile = require('./Lockfile-D4_-Zt1R.cjs.js');
3
+ var Lockfile = require('./Lockfile-BndFvzHc.cjs.js');
4
4
  require('minimatch');
5
5
  require('@manypkg/get-packages');
6
6
  require('chalk');
7
7
  require('./yarn-Ukl9MOS0.cjs.js');
8
- require('./run-BnDCE_CR.cjs.js');
9
- var index = require('./index-Di-MwpF9.cjs.js');
8
+ require('./run-ClbD5HPt.cjs.js');
9
+ var index = require('./index-DX-m2Ed0.cjs.js');
10
10
  var partition = require('lodash/partition');
11
11
  var cliNode = require('@backstage/cli-node');
12
12
  require('fs-extra');
@@ -109,4 +109,4 @@ function logArray(arr, header, each) {
109
109
  exports.default = lint;
110
110
  exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
111
111
  exports.includedFilter = includedFilter;
112
- //# sourceMappingURL=lint-CxLN2GhV.cjs.js.map
112
+ //# sourceMappingURL=lint-DqMGmvsS.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Di-MwpF9.cjs.js');
3
+ var index = require('./index-DX-m2Ed0.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-BEWL3EAz.cjs.js.map
36
+ //# sourceMappingURL=lint-yikicfA4.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-Di-MwpF9.cjs.js');
7
+ var index = require('./index-DX-m2Ed0.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-Bu6Aq1mk.cjs.js.map
79
+ //# sourceMappingURL=list-deprecations-Coko6Rsb.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-Di-MwpF9.cjs.js');
11
- var codeowners = require('./codeowners-q_-vuPB4.cjs.js');
12
- var tasks = require('./tasks-Dy-6nV0-.cjs.js');
13
- var Lockfile = require('./Lockfile-D4_-Zt1R.cjs.js');
10
+ var index = require('./index-DX-m2Ed0.cjs.js');
11
+ var codeowners = require('./codeowners-B-nGMoIG.cjs.js');
12
+ var tasks = require('./tasks-XfFuuYgf.cjs.js');
13
+ var Lockfile = require('./Lockfile-BndFvzHc.cjs.js');
14
14
  require('minimatch');
15
15
  require('@manypkg/get-packages');
16
16
  require('./yarn-Ukl9MOS0.cjs.js');
17
- require('./run-BnDCE_CR.cjs.js');
17
+ require('./run-ClbD5HPt.cjs.js');
18
18
  var partition = require('lodash/partition');
19
19
  var cliNode = require('@backstage/cli-node');
20
20
  var errors = require('@backstage/errors');
@@ -273,6 +273,9 @@ const backendPlugin = createFactory({
273
273
  }
274
274
  );
275
275
  });
276
+ await tasks.addToBackend(name, {
277
+ type: "plugin"
278
+ });
276
279
  }
277
280
  if (options.owner) {
278
281
  await codeowners.addCodeownersEntry(`/plugins/${id}`, options.owner);
@@ -331,6 +334,9 @@ const backendModule = createFactory({
331
334
  );
332
335
  });
333
336
  }
337
+ await tasks.addToBackend(name, {
338
+ type: "module"
339
+ });
334
340
  if (options.owner) {
335
341
  await codeowners.addCodeownersEntry(`/plugins/${dirName}`, options.owner);
336
342
  }
@@ -436,7 +442,7 @@ const pluginCommon = createFactory({
436
442
  plugin: true
437
443
  });
438
444
  tasks.Task.log();
439
- tasks.Task.log(`Creating backend plugin ${chalk__default.default.cyan(name)}`);
445
+ tasks.Task.log(`Creating common plugin package ${chalk__default.default.cyan(name)}`);
440
446
  const targetDir = ctx.isMonoRepo ? index.paths.resolveTargetRoot("plugins", suffix) : index.paths.resolveTargetRoot(`backstage-plugin-${suffix}`);
441
447
  await executePluginPackageTemplate(ctx, {
442
448
  targetDir,
@@ -769,4 +775,4 @@ var _new = async (opts) => {
769
775
  };
770
776
 
771
777
  exports.default = _new;
772
- //# sourceMappingURL=new-DuNERJHc.cjs.js.map
778
+ //# sourceMappingURL=new-Da1kvXDQ.cjs.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var productionPack = require('./productionPack-BWU8WkGs.cjs.js');
4
- var index = require('./index-Di-MwpF9.cjs.js');
4
+ var index = require('./index-DX-m2Ed0.cjs.js');
5
5
  var fs = require('fs-extra');
6
6
  var publishing = require('./publishing-DQtsKTbc.cjs.js');
7
7
  require('npm-packlist');
@@ -30,4 +30,4 @@ const post = async () => {
30
30
 
31
31
  exports.post = post;
32
32
  exports.pre = pre;
33
- //# sourceMappingURL=pack-B06J9pbM.cjs.js.map
33
+ //# sourceMappingURL=pack-D8b4JM6B.cjs.js.map
@@ -8,13 +8,13 @@ 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-Di-MwpF9.cjs.js');
11
+ var index = require('./index-DX-m2Ed0.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-CoHH4lBA.cjs.js');
17
- var run = require('./run-BnDCE_CR.cjs.js');
17
+ var run = require('./run-ClbD5HPt.cjs.js');
18
18
  var MiniCssExtractPlugin = require('mini-css-extract-plugin');
19
19
  var svgrTemplate = require('./svgrTemplate-BTjBQ3by.cjs.js');
20
20
  var ReactRefreshPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
@@ -744,4 +744,4 @@ exports.hasReactDomClient = hasReactDomClient;
744
744
  exports.resolveBaseUrl = resolveBaseUrl;
745
745
  exports.resolveBundlingPaths = resolveBundlingPaths;
746
746
  exports.resolveOptionalBundlingPaths = resolveOptionalBundlingPaths;
747
- //# sourceMappingURL=packageDetection-DY8cx_zp.cjs.js.map
747
+ //# sourceMappingURL=packageDetection-B6lJYBh9.cjs.js.map
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var fix = require('./fix-Dkwr9aZE.cjs.js');
3
+ var fix = require('./fix-BhwlcHp_.cjs.js');
4
4
  require('@backstage/cli-node');
5
5
  require('fs-extra');
6
6
  require('path');
7
- require('./index-Di-MwpF9.cjs.js');
7
+ require('./index-DX-m2Ed0.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('semver');
@@ -24,4 +24,4 @@ async function command() {
24
24
  }
25
25
 
26
26
  exports.command = command;
27
- //# sourceMappingURL=packageExports-J3R27iwo.cjs.js.map
27
+ //# sourceMappingURL=packageExports-DDff9ia4.cjs.js.map
@@ -3,9 +3,9 @@
3
3
  var fs = require('fs-extra');
4
4
  var path = require('path');
5
5
  var cliNode = require('@backstage/cli-node');
6
- var run = require('./run-BnDCE_CR.cjs.js');
6
+ var run = require('./run-ClbD5HPt.cjs.js');
7
7
  require('child_process');
8
- require('./index-Di-MwpF9.cjs.js');
8
+ require('./index-DX-m2Ed0.cjs.js');
9
9
  require('commander');
10
10
  require('chalk');
11
11
  require('semver');
@@ -78,4 +78,4 @@ async function command() {
78
78
  }
79
79
 
80
80
  exports.command = command;
81
- //# sourceMappingURL=packageLintConfigs-CQk51IBo.cjs.js.map
81
+ //# sourceMappingURL=packageLintConfigs-Bfvzg--7.cjs.js.map
@@ -4,7 +4,7 @@ var fs = require('fs-extra');
4
4
  var path = require('path');
5
5
  var getPackages = require('@manypkg/get-packages');
6
6
  var cliNode = require('@backstage/cli-node');
7
- var index = require('./index-Di-MwpF9.cjs.js');
7
+ var index = require('./index-DX-m2Ed0.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('semver');
@@ -55,4 +55,4 @@ var packageRole = async () => {
55
55
  };
56
56
 
57
57
  exports.default = packageRole;
58
- //# sourceMappingURL=packageRole-CM3b9V4k.cjs.js.map
58
+ //# sourceMappingURL=packageRole-CXerjPpL.cjs.js.map
@@ -2,9 +2,9 @@
2
2
 
3
3
  var minimatch = require('minimatch');
4
4
  var getPackages = require('@manypkg/get-packages');
5
- var index = require('./index-Di-MwpF9.cjs.js');
5
+ var index = require('./index-DX-m2Ed0.cjs.js');
6
6
  var yarn = require('./yarn-Ukl9MOS0.cjs.js');
7
- var run = require('./run-BnDCE_CR.cjs.js');
7
+ var run = require('./run-ClbD5HPt.cjs.js');
8
8
 
9
9
  const DEP_TYPES = [
10
10
  "dependencies",
@@ -72,4 +72,4 @@ async function mapDependencies(targetDir, pattern) {
72
72
 
73
73
  exports.fetchPackageInfo = fetchPackageInfo;
74
74
  exports.mapDependencies = mapDependencies;
75
- //# sourceMappingURL=packages-BmLKTXhU.cjs.js.map
75
+ //# sourceMappingURL=packages-BgyW9VKx.cjs.js.map
@@ -2,9 +2,9 @@
2
2
 
3
3
  var yaml = require('yaml');
4
4
  var config$1 = require('@backstage/config');
5
- var config = require('./config-BA9NjlNo.cjs.js');
5
+ var config = require('./config-eLDUbNFK.cjs.js');
6
6
  require('@backstage/config-loader');
7
- require('./index-Di-MwpF9.cjs.js');
7
+ require('./index-DX-m2Ed0.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('fs-extra');
@@ -58,4 +58,4 @@ function serializeConfigData(appConfigs, schema, visibility) {
58
58
  }
59
59
 
60
60
  exports.default = print;
61
- //# sourceMappingURL=print-B-qgWBYo.cjs.js.map
61
+ //# sourceMappingURL=print-C5tbwB1-.cjs.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var fs = require('fs-extra');
4
- var index = require('./index-Di-MwpF9.cjs.js');
4
+ var index = require('./index-DX-m2Ed0.cjs.js');
5
5
  var cliNode = require('@backstage/cli-node');
6
6
 
7
7
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -21,4 +21,4 @@ async function findRoleFromCommand(opts) {
21
21
  }
22
22
 
23
23
  exports.findRoleFromCommand = findRoleFromCommand;
24
- //# sourceMappingURL=role-vsNdpTM1.cjs.js.map
24
+ //# sourceMappingURL=role-BjmWpqH5.cjs.js.map