@backstage/cli 0.25.2-next.1 → 0.25.2-next.3

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 +39 -0
  2. package/dist/cjs/{build-8d83fb61.cjs.js → build-cb8867a9.cjs.js} +7 -7
  3. package/dist/cjs/{buildBackend-1628701a.cjs.js → buildBackend-e46a1d87.cjs.js} +7 -8
  4. package/dist/cjs/{buildWorkspace-2206484b.cjs.js → buildWorkspace-63d3b824.cjs.js} +4 -4
  5. package/dist/cjs/{bump-00b6998d.cjs.js → bump-4b48514c.cjs.js} +5 -5
  6. package/dist/cjs/{clean-644fb5dc.cjs.js → clean-86a237a2.cjs.js} +2 -2
  7. package/dist/cjs/{clean-71b9cfd2.cjs.js → clean-c0480d6f.cjs.js} +2 -2
  8. package/dist/cjs/{codeowners-fb983fe8.cjs.js → codeowners-04977d12.cjs.js} +2 -2
  9. package/dist/cjs/{config-72ecaeaf.cjs.js → config-04b2d75f.cjs.js} +2 -2
  10. package/dist/cjs/{createDistWorkspace-4e954580.cjs.js → createDistWorkspace-9d97ab80.cjs.js} +3 -3
  11. package/dist/cjs/{createPlugin-1d2a8e37.cjs.js → createPlugin-3f75c8bf.cjs.js} +4 -4
  12. package/dist/cjs/{diff-5c6b5238.cjs.js → diff-e5bafbe2.cjs.js} +2 -2
  13. package/dist/cjs/{docs-780ffbed.cjs.js → docs-04d7cc43.cjs.js} +3 -3
  14. package/dist/cjs/{fix-ab75a922.cjs.js → fix-11df7b5f.cjs.js} +49 -2
  15. package/dist/cjs/{index-f346417b.cjs.js → index-0756e762.cjs.js} +8 -8
  16. package/dist/cjs/{index-bbcaf1b7.cjs.js → index-23b440c6.cjs.js} +3 -3
  17. package/dist/cjs/{index-8022d29f.cjs.js → index-38118e8d.cjs.js} +49 -49
  18. package/dist/cjs/{index-c405be91.cjs.js → index-4ecf7434.cjs.js} +2 -2
  19. package/dist/cjs/{index-5c0ae7af.cjs.js → index-909893e7.cjs.js} +10 -10
  20. package/dist/cjs/{info-b9b5df81.cjs.js → info-3041f932.cjs.js} +3 -3
  21. package/dist/cjs/{install-55952482.cjs.js → install-c871aad8.cjs.js} +4 -4
  22. package/dist/cjs/{lint-cb4f3ec1.cjs.js → lint-17df9ed4.cjs.js} +2 -2
  23. package/dist/cjs/{lint-fcf44443.cjs.js → lint-df89a76a.cjs.js} +3 -3
  24. package/dist/cjs/{lint-fc2ad69e.cjs.js → lint-ed716c8c.cjs.js} +2 -2
  25. package/dist/cjs/{list-deprecations-365292fd.cjs.js → list-deprecations-d9f9b07c.cjs.js} +2 -2
  26. package/dist/cjs/{new-df5c65c9.cjs.js → new-7ffc04bb.cjs.js} +61 -20
  27. package/dist/cjs/{pack-887ecafd.cjs.js → pack-612c60ea.cjs.js} +2 -2
  28. package/dist/cjs/{packageDetection-7bcba17d.cjs.js → packageDetection-58ee44b5.cjs.js} +6 -7
  29. package/dist/cjs/{packageExports-94370669.cjs.js → packageExports-766297d5.cjs.js} +3 -3
  30. package/dist/cjs/{packageLintConfigs-53fe4b79.cjs.js → packageLintConfigs-38b18f0c.cjs.js} +3 -3
  31. package/dist/cjs/{packageRole-de3794a6.cjs.js → packageRole-c555aef7.cjs.js} +2 -2
  32. package/dist/cjs/{packages-7bb359ab.cjs.js → packages-2f3d0fb3.cjs.js} +3 -3
  33. package/dist/cjs/{print-09455707.cjs.js → print-ef752870.cjs.js} +3 -3
  34. package/dist/cjs/{role-b322855f.cjs.js → role-7c925b20.cjs.js} +2 -2
  35. package/dist/cjs/{run-754dbde7.cjs.js → run-883b2b68.cjs.js} +2 -2
  36. package/dist/cjs/{schema-3fa90a94.cjs.js → schema-996675e4.cjs.js} +3 -3
  37. package/dist/cjs/{test-f467ee6d.cjs.js → test-21c52ea3.cjs.js} +3 -3
  38. package/dist/cjs/{test-0bac3f24.cjs.js → test-6178a007.cjs.js} +3 -3
  39. package/dist/cjs/{validate-d30d8daf.cjs.js → validate-c84edefb.cjs.js} +3 -3
  40. package/dist/index.cjs.js +1 -1
  41. package/package.json +17 -17
@@ -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.1";
56
+ var version$c = "0.21.0-next.3";
57
57
 
58
- var version$b = "0.6.10-next.1";
58
+ var version$b = "0.6.10-next.3";
59
59
 
60
- var version$a = "0.3.0-next.1";
60
+ var version$a = "0.3.0-next.3";
61
61
 
62
- var version$9 = "0.25.2-next.1";
62
+ var version$9 = "0.25.2-next.3";
63
63
  var dependencies = {
64
64
  "@backstage/catalog-model": "workspace:^",
65
65
  "@backstage/cli-common": "workspace:^",
@@ -109,12 +109,12 @@ 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",
116
116
  "eslint-formatter-friendly": "^7.0.0",
117
- "eslint-plugin-deprecation": "^1.3.2",
117
+ "eslint-plugin-deprecation": "^2.0.0",
118
118
  "eslint-plugin-import": "^2.25.4",
119
119
  "eslint-plugin-jest": "^27.0.0",
120
120
  "eslint-plugin-jsx-a11y": "^6.5.1",
@@ -123,9 +123,9 @@ var dependencies = {
123
123
  "eslint-plugin-unused-imports": "^3.0.0",
124
124
  "eslint-webpack-plugin": "^3.1.1",
125
125
  express: "^4.17.1",
126
- "fork-ts-checker-webpack-plugin": "^7.0.0-alpha.8",
126
+ "fork-ts-checker-webpack-plugin": "^9.0.0",
127
127
  "fs-extra": "10.1.0",
128
- "git-url-parse": "^13.0.0",
128
+ "git-url-parse": "^14.0.0",
129
129
  glob: "^7.1.7",
130
130
  "global-agent": "^3.0.0",
131
131
  handlebars: "^4.7.3",
@@ -208,19 +208,19 @@ var devDependencies = {
208
208
 
209
209
  var version$8 = "1.1.1";
210
210
 
211
- var version$7 = "1.11.4-next.0";
211
+ var version$7 = "1.12.0-next.1";
212
212
 
213
- var version$6 = "0.14.0-next.0";
213
+ var version$6 = "0.14.0-next.2";
214
214
 
215
- var version$5 = "1.8.3-next.0";
215
+ var version$5 = "1.9.0-next.1";
216
216
 
217
- var version$4 = "1.0.27-next.1";
217
+ var version$4 = "1.0.27-next.3";
218
218
 
219
- var version$3 = "1.5.0-next.1";
219
+ var version$3 = "1.5.0-next.3";
220
220
 
221
- var version$2 = "0.3.0-next.1";
221
+ var version$2 = "0.3.0-next.3";
222
222
 
223
- var version$1 = "0.5.0";
223
+ var version$1 = "0.5.1-next.1";
224
224
 
225
225
  const packageVersions = {
226
226
  "@backstage/backend-common": version$c,
@@ -284,7 +284,7 @@ const configOption = [
284
284
  Array()
285
285
  ];
286
286
  function registerOnboardCommand(program) {
287
- program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-bbcaf1b7.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-23b440c6.cjs.js'); }).then((m) => m.command)));
288
288
  }
289
289
  function registerRepoCommand(program) {
290
290
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
@@ -296,7 +296,7 @@ function registerRepoCommand(program) {
296
296
  ).option(
297
297
  "--since <ref>",
298
298
  "Only build packages and their dev dependents that changed since the specified ref"
299
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-8d83fb61.cjs.js'); }).then((m) => m.command)));
299
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-cb8867a9.cjs.js'); }).then((m) => m.command)));
300
300
  command.command("lint").description("Lint all packages in the project").option(
301
301
  "--format <format>",
302
302
  "Lint report output format",
@@ -304,14 +304,14 @@ function registerRepoCommand(program) {
304
304
  ).option(
305
305
  "--since <ref>",
306
306
  "Only lint packages that changed since the specified ref"
307
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-fc2ad69e.cjs.js'); }).then((m) => m.command)));
307
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-ed716c8c.cjs.js'); }).then((m) => m.command)));
308
308
  command.command("fix").description("Automatically fix packages in the project").option(
309
309
  "--check",
310
310
  "Fail if any packages would have been changed by the command"
311
- ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-ab75a922.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-71b9cfd2.cjs.js'); }).then((m) => m.command)));
311
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-11df7b5f.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-c0480d6f.cjs.js'); }).then((m) => m.command)));
313
313
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
314
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-365292fd.cjs.js'); }).then((m) => m.command))
314
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-d9f9b07c.cjs.js'); }).then((m) => m.command))
315
315
  );
316
316
  command.command("test").allowUnknownOption(true).option(
317
317
  "--since <ref>",
@@ -319,14 +319,14 @@ function registerRepoCommand(program) {
319
319
  ).option(
320
320
  "--jest-help",
321
321
  "Show help for Jest CLI options, which are passed through"
322
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-0bac3f24.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-6178a007.cjs.js'); }).then((m) => m.command)));
323
323
  }
324
324
  function registerScriptCommand(program) {
325
325
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
326
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(
327
327
  "--inspect-brk [host]",
328
328
  "Enable debugger in Node.js environments, breaking before code starts"
329
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-5c0ae7af.cjs.js'); }).then((m) => m.command)));
329
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-909893e7.cjs.js'); }).then((m) => m.command)));
330
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(
331
331
  "--minify",
332
332
  "Minify the generated code. Does not apply to app or backend packages."
@@ -341,30 +341,30 @@ function registerScriptCommand(program) {
341
341
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
342
342
  (opt, opts) => opts ? [...opts, opt] : [opt],
343
343
  Array()
344
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-f346417b.cjs.js'); }).then((m) => m.command)));
344
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-0756e762.cjs.js'); }).then((m) => m.command)));
345
345
  command.command("lint [directories...]").option(
346
346
  "--format <format>",
347
347
  "Lint report output format",
348
348
  "eslint-formatter-friendly"
349
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-cb4f3ec1.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-f467ee6d.cjs.js'); }).then((m) => m.default)));
351
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-644fb5dc.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-887ecafd.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-887ecafd.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-17df9ed4.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-21c52ea3.cjs.js'); }).then((m) => m.default)));
351
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-86a237a2.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-612c60ea.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-612c60ea.cjs.js'); }).then((m) => m.post)));
354
354
  }
355
355
  function registerMigrateCommand(program) {
356
356
  const command = program.command("migrate [command]").description("Migration utilities");
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-de3794a6.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-c555aef7.cjs.js'); }).then((m) => m.default)));
358
358
  command.command("package-scripts").description("Set package scripts according to each package role").action(
359
359
  lazy(() => Promise.resolve().then(function () { return require('./packageScripts-bb7b6de2.cjs.js'); }).then((m) => m.command))
360
360
  );
361
361
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
362
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-94370669.cjs.js'); }).then((m) => m.command))
362
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-766297d5.cjs.js'); }).then((m) => m.command))
363
363
  );
364
364
  command.command("package-lint-configs").description(
365
365
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
366
366
  ).action(
367
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-53fe4b79.cjs.js'); }).then((m) => m.command))
367
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-38b18f0c.cjs.js'); }).then((m) => m.command))
368
368
  );
369
369
  command.command("react-router-deps").description(
370
370
  "Migrates the react-router dependencies for all packages to be peer dependencies"
@@ -389,7 +389,7 @@ function registerCommands(program) {
389
389
  ).option(
390
390
  "--baseVersion <version>",
391
391
  "The version to use for any new packages (default: 0.1.0)"
392
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-df5c65c9.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-7ffc04bb.cjs.js'); }).then((m) => m.default)));
393
393
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
394
394
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
395
395
  ).option(
@@ -403,30 +403,30 @@ function registerCommands(program) {
403
403
  ).option("--scope <scope>", "The scope to use for new packages").option(
404
404
  "--npm-registry <URL>",
405
405
  "The package registry to use for new packages"
406
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-df5c65c9.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-7ffc04bb.cjs.js'); }).then((m) => m.default)));
407
407
  program.command("create-plugin", { hidden: true }).option(
408
408
  "--backend",
409
409
  "Create plugin with the backend dependencies as default"
410
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(
411
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-1d2a8e37.cjs.js'); }).then((m) => m.default))
411
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-3f75c8bf.cjs.js'); }).then((m) => m.default))
412
412
  );
413
413
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
414
414
  "Diff an existing plugin with the creation template [DEPRECATED]"
415
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-5c6b5238.cjs.js'); }).then((m) => m.default)));
415
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-e5bafbe2.cjs.js'); }).then((m) => m.default)));
416
416
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
417
417
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
418
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-f467ee6d.cjs.js'); }).then((m) => m.default)));
418
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-21c52ea3.cjs.js'); }).then((m) => m.default)));
419
419
  program.command("config:docs").option(
420
420
  "--package <name>",
421
421
  "Only include the schema that applies to the given package"
422
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-780ffbed.cjs.js'); }).then((m) => m.default)));
422
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-04d7cc43.cjs.js'); }).then((m) => m.default)));
423
423
  program.command("config:print").option(
424
424
  "--package <name>",
425
425
  "Only load config schema that applies to the given package"
426
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(
427
427
  "--format <format>",
428
428
  "Format to print the configuration in, either json or yaml [yaml]"
429
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-09455707.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-ef752870.cjs.js'); }).then((m) => m.default)));
430
430
  program.command("config:check").option(
431
431
  "--package <name>",
432
432
  "Only load config schema that applies to the given package"
@@ -435,14 +435,14 @@ function registerCommands(program) {
435
435
  "Enable strict config validation, forbidding errors and unknown keys"
436
436
  ).option(...configOption).description(
437
437
  "Validate that the given configuration loads and matches schema"
438
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-d30d8daf.cjs.js'); }).then((m) => m.default)));
438
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-c84edefb.cjs.js'); }).then((m) => m.default)));
439
439
  program.command("config:schema").option(
440
440
  "--package <name>",
441
441
  "Only output config schema that applies to the given package"
442
442
  ).option(
443
443
  "--format <format>",
444
444
  "Format to print the schema in, either json or yaml [yaml]"
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-3fa90a94.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-996675e4.cjs.js'); }).then((m) => m.default)));
446
446
  registerRepoCommand(program);
447
447
  registerScriptCommand(program);
448
448
  registerMigrateCommand(program);
@@ -454,19 +454,19 @@ function registerCommands(program) {
454
454
  "--release <version|next|main>",
455
455
  "Bump to a specific Backstage release line or version",
456
456
  "main"
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-00b6998d.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-fcf44443.cjs.js'); }).then((m) => m.default)));
459
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-644fb5dc.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-4b48514c.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-df89a76a.cjs.js'); }).then((m) => m.default)));
459
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-86a237a2.cjs.js'); }).then((m) => m.default)));
460
460
  program.command("build-workspace <workspace-dir> [packages...]").option(
461
461
  "--alwaysYarnPack",
462
462
  "Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
463
- ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-2206484b.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-c405be91.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-b9b5df81.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-63d3b824.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-4ecf7434.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-3041f932.cjs.js'); }).then((m) => m.default)));
466
466
  program.command("install [plugin-id]", { hidden: true }).option(
467
467
  "--from <packageJsonFilePath>",
468
468
  "Install from a local package.json containing the installation recipe"
469
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-55952482.cjs.js'); }).then((m) => m.default)));
469
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-c871aad8.cjs.js'); }).then((m) => m.default)));
470
470
  }
471
471
  function lazy(getActionFunc) {
472
472
  return async (...args) => {
@@ -510,4 +510,4 @@ exports.devDependencies = devDependencies;
510
510
  exports.paths = paths;
511
511
  exports.version = version;
512
512
  exports.version$1 = version$9;
513
- //# sourceMappingURL=index-8022d29f.cjs.js.map
513
+ //# sourceMappingURL=index-38118e8d.cjs.js.map
@@ -4,7 +4,7 @@ var fs = require('fs-extra');
4
4
  var chalk = require('chalk');
5
5
  var yaml = require('yaml');
6
6
  var inquirer = require('inquirer');
7
- var index$1 = require('./index-8022d29f.cjs.js');
7
+ var index$1 = require('./index-38118e8d.cjs.js');
8
8
  var crypto = require('crypto');
9
9
  var openBrowser = require('react-dev-utils/openBrowser');
10
10
  var request = require('@octokit/request');
@@ -230,4 +230,4 @@ async function verifyGithubOrg(org) {
230
230
  }
231
231
 
232
232
  exports["default"] = index;
233
- //# sourceMappingURL=index-c405be91.cjs.js.map
233
+ //# sourceMappingURL=index-4ecf7434.cjs.js.map
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var role = require('./role-b322855f.cjs.js');
3
+ var role = require('./role-7c925b20.cjs.js');
4
4
  var fs = require('fs-extra');
5
- var index = require('./index-8022d29f.cjs.js');
5
+ var index = require('./index-38118e8d.cjs.js');
6
6
  var webpack = require('webpack');
7
- var packageDetection = require('./packageDetection-7bcba17d.cjs.js');
7
+ var packageDetection = require('./packageDetection-58ee44b5.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-754dbde7.cjs.js');
21
+ require('./run-883b2b68.cjs.js');
22
22
  require('mini-css-extract-plugin');
23
23
  require('@pmmmwh/react-refresh-webpack-plugin');
24
24
  var chalk = require('chalk');
@@ -40,8 +40,8 @@ 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-fcf44443.cjs.js');
44
- var config = require('./config-72ecaeaf.cjs.js');
43
+ var lint = require('./lint-df89a76a.cjs.js');
44
+ var config = require('./config-04b2d75f.cjs.js');
45
45
  var Lockfile = require('./Lockfile-eced6070.cjs.js');
46
46
  require('commander');
47
47
  require('./entryPoints-0cc55995.cjs.js');
@@ -163,9 +163,9 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
163
163
  }
164
164
  });
165
165
  latestFrontendAppConfigs = cliConfig.frontendAppConfigs;
166
- const appBaseUrl = cliConfig.frontendConfig.getString("app.baseUrl");
167
- const backendBaseUrl = cliConfig.frontendConfig.getString("backend.baseUrl");
168
- if (appBaseUrl === backendBaseUrl) {
166
+ const appBaseUrl = cliConfig.frontendConfig.getOptionalString("app.baseUrl");
167
+ const backendBaseUrl = cliConfig.frontendConfig.getOptionalString("backend.baseUrl");
168
+ if (appBaseUrl && appBaseUrl === backendBaseUrl) {
169
169
  console.log(
170
170
  chalk__default["default"].yellow(
171
171
  `\u26A0\uFE0F Conflict between app baseUrl and backend baseUrl:
@@ -667,4 +667,4 @@ async function command(opts) {
667
667
  }
668
668
 
669
669
  exports.command = command;
670
- //# sourceMappingURL=index-5c0ae7af.cjs.js.map
670
+ //# sourceMappingURL=index-909893e7.cjs.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-8022d29f.cjs.js');
3
+ var index = require('./index-38118e8d.cjs.js');
4
4
  var os = require('os');
5
- var run = require('./run-754dbde7.cjs.js');
5
+ var run = require('./run-883b2b68.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-b9b5df81.cjs.js.map
61
+ //# sourceMappingURL=info-3041f932.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-7bb359ab.cjs.js');
8
- var index = require('./index-8022d29f.cjs.js');
7
+ var packages = require('./packages-2f3d0fb3.cjs.js');
8
+ var index = require('./index-38118e8d.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-754dbde7.cjs.js');
12
+ var run = require('./run-883b2b68.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-55952482.cjs.js.map
271
+ //# sourceMappingURL=install-c871aad8.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-8022d29f.cjs.js');
3
+ var index = require('./index-38118e8d.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-cb4f3ec1.cjs.js.map
36
+ //# sourceMappingURL=lint-17df9ed4.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-754dbde7.cjs.js');
9
- var index = require('./index-8022d29f.cjs.js');
8
+ require('./run-883b2b68.cjs.js');
9
+ var index = require('./index-38118e8d.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-fcf44443.cjs.js.map
115
+ //# sourceMappingURL=lint-df89a76a.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-8022d29f.cjs.js');
6
+ var index = require('./index-38118e8d.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-fc2ad69e.cjs.js.map
91
+ //# sourceMappingURL=lint-ed716c8c.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-8022d29f.cjs.js');
7
+ var index = require('./index-38118e8d.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-365292fd.cjs.js.map
79
+ //# sourceMappingURL=list-deprecations-d9f9b07c.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-8022d29f.cjs.js');
11
- var codeowners = require('./codeowners-fb983fe8.cjs.js');
10
+ var index = require('./index-38118e8d.cjs.js');
11
+ var codeowners = require('./codeowners-04977d12.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-754dbde7.cjs.js');
17
+ require('./run-883b2b68.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-df5c65c9.cjs.js.map
780
+ //# sourceMappingURL=new-7ffc04bb.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-8022d29f.cjs.js');
4
+ var index = require('./index-38118e8d.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-887ecafd.cjs.js.map
24
+ //# sourceMappingURL=pack-612c60ea.cjs.js.map