@backstage/cli 0.27.1 → 0.28.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/cjs/{build-D9YZ-dyI.cjs.js → build-gNEKjjhr.cjs.js} +9 -8
  3. package/dist/cjs/{buildBackend-CmtimF8a.cjs.js → buildBackend-DXvz7jvh.cjs.js} +6 -6
  4. package/dist/cjs/{buildWorkspace-C4wCq5WM.cjs.js → buildWorkspace-DLfI3EjD.cjs.js} +6 -5
  5. package/dist/cjs/{bump-BQ6YRL6D.cjs.js → bump-d9dS56p9.cjs.js} +73 -9
  6. package/dist/cjs/{clean-BllZTky1.cjs.js → clean-Dpgqc3P2.cjs.js} +2 -2
  7. package/dist/cjs/{clean-CVl--Ec9.cjs.js → clean-bdpRw-oZ.cjs.js} +2 -2
  8. package/dist/cjs/{config-BMsjTUVf.cjs.js → config-nCB2LQK-.cjs.js} +2 -2
  9. package/dist/cjs/{createDistWorkspace-DxOWPD6z.cjs.js → createDistWorkspace-DKzy-L-f.cjs.js} +7 -5
  10. package/dist/cjs/{docs-DPzCP6Jp.cjs.js → docs-CDE82fWG.cjs.js} +3 -3
  11. package/dist/cjs/{fix-BM8I_DZ2.cjs.js → fix-BTjof5XT.cjs.js} +2 -2
  12. package/dist/cjs/{index-CXG8-26G.cjs.js → index-7LxfekFu.cjs.js} +14 -11
  13. package/dist/cjs/{index-BgEQ8aeF.cjs.js → index-DVDDx3pk.cjs.js} +2 -2
  14. package/dist/cjs/{index-Cw0lUK20.cjs.js → index-DsP5wbju.cjs.js} +10 -9
  15. package/dist/cjs/{index-DmUbBCFk.cjs.js → index-v57xnvgT.cjs.js} +61 -79
  16. package/dist/cjs/{info-FKrzx-9W.cjs.js → info-CB7ln5K_.cjs.js} +5 -6
  17. package/dist/cjs/{lint-6vrbdjyg.cjs.js → lint-6_0f9f26.cjs.js} +2 -2
  18. package/dist/cjs/{lint-Cm_9pg85.cjs.js → lint-DYO_SeK3.cjs.js} +2 -2
  19. package/dist/cjs/{list-deprecations-C6R3rEyS.cjs.js → list-deprecations-DFgQENam.cjs.js} +2 -2
  20. package/dist/cjs/{moduleFederation-8XXecxLD.cjs.js → moduleFederation-Dq0n1quT.cjs.js} +3 -3
  21. package/dist/cjs/{new-DJUBFwiF.cjs.js → new-C0D_k25O.cjs.js} +336 -97
  22. package/dist/cjs/{pack-BqFGqZb5.cjs.js → pack-D8AK7Uem.cjs.js} +4 -3
  23. package/dist/cjs/{packageExports-DvjdOWjC.cjs.js → packageExports-bg4mFuFZ.cjs.js} +3 -3
  24. package/dist/cjs/{packageLintConfigs-DGkvTpBd.cjs.js → packageLintConfigs-BBvQehRd.cjs.js} +3 -3
  25. package/dist/cjs/{packageRole-CHz7zkIQ.cjs.js → packageRole-CkpKfhJA.cjs.js} +2 -2
  26. package/dist/cjs/{print-CQU7JzAh.cjs.js → print-BX8-7Nzg.cjs.js} +3 -3
  27. package/dist/cjs/{productionPack-BWU8WkGs.cjs.js → productionPack-Dfl28j3c.cjs.js} +105 -4
  28. package/dist/cjs/{role-8b0z7P0n.cjs.js → role-e0emQj8q.cjs.js} +2 -2
  29. package/dist/cjs/{run-CSt1n0F1.cjs.js → run-HW3lfDbM.cjs.js} +2 -2
  30. package/dist/cjs/{schema-B4250t0W.cjs.js → schema-Cabm6I6c.cjs.js} +3 -3
  31. package/dist/cjs/{test-DVUsmgyZ.cjs.js → test-5bQM0VRL.cjs.js} +3 -3
  32. package/dist/cjs/{test-Diil1uTk.cjs.js → test-YJMOGqXG.cjs.js} +3 -3
  33. package/dist/cjs/{validate-DDIGkK2r.cjs.js → validate-DKBlShmI.cjs.js} +3 -3
  34. package/dist/cjs/{Lockfile-B4mqBkH6.cjs.js → yarn-6FNAgNBK.cjs.js} +31 -1
  35. package/dist/index.cjs.js +1 -1
  36. package/package.json +9 -8
  37. package/dist/cjs/codeowners-FKKtpciN.cjs.js +0 -91
  38. package/dist/cjs/createPlugin-Dj7O_us6.cjs.js +0 -280
  39. package/dist/cjs/diff-Drt115Zb.cjs.js +0 -436
  40. package/dist/cjs/index-DRp-18FB.cjs.js +0 -1027
  41. package/dist/cjs/install-BMA3RshT.cjs.js +0 -268
  42. package/dist/cjs/lint-Dkx_fBkS.cjs.js +0 -10
  43. package/dist/cjs/packages-Cuogjl7j.cjs.js +0 -75
  44. package/dist/cjs/tasks-DtAiMv5G.cjs.js +0 -188
  45. package/dist/cjs/yarn-Ukl9MOS0.cjs.js +0 -34
@@ -47,13 +47,11 @@ class NotFoundError extends CustomError {
47
47
 
48
48
  const paths = cliCommon.findPaths(__dirname);
49
49
 
50
- var version$f = "0.25.0";
50
+ var version$e = "1.0.1-next.0";
51
51
 
52
- var version$e = "1.0.0";
52
+ var version$d = "1.0.1-next.0";
53
53
 
54
- var version$d = "1.0.0";
55
-
56
- var version$c = "0.27.1";
54
+ var version$c = "0.28.0-next.0";
57
55
  var dependencies = {
58
56
  "@backstage/catalog-model": "workspace:^",
59
57
  "@backstage/cli-common": "workspace:^",
@@ -160,6 +158,7 @@ var dependencies = {
160
158
  "swc-loader": "^0.2.3",
161
159
  tar: "^6.1.12",
162
160
  "terser-webpack-plugin": "^5.1.3",
161
+ "ts-morph": "^23.0.0",
163
162
  util: "^0.12.3",
164
163
  webpack: "^5.70.0",
165
164
  "webpack-dev-server": "^5.0.0",
@@ -170,7 +169,7 @@ var dependencies = {
170
169
  zod: "^3.22.4"
171
170
  };
172
171
  var devDependencies = {
173
- "@backstage/backend-common": "workspace:^",
172
+ "@backstage/backend-common": "^0.25.0",
174
173
  "@backstage/backend-plugin-api": "workspace:^",
175
174
  "@backstage/backend-test-utils": "workspace:^",
176
175
  "@backstage/config": "workspace:^",
@@ -207,28 +206,27 @@ var devDependencies = {
207
206
 
208
207
  var version$b = "1.2.0";
209
208
 
210
- var version$a = "1.15.0";
209
+ var version$a = "1.15.1-next.0";
211
210
 
212
- var version$9 = "0.15.0";
211
+ var version$9 = "0.15.1-next.0";
213
212
 
214
- var version$8 = "1.9.4";
213
+ var version$8 = "1.10.0-next.0";
215
214
 
216
- var version$7 = "1.1.0";
215
+ var version$7 = "1.1.1-next.0";
217
216
 
218
- var version$6 = "1.6.0";
217
+ var version$6 = "1.6.1-next.0";
219
218
 
220
- var version$5 = "0.4.11";
219
+ var version$5 = "0.5.0-next.0";
221
220
 
222
- var version$4 = "0.23.0";
221
+ var version$4 = "0.23.1-next.0";
223
222
 
224
- var version$3 = "0.2.0";
223
+ var version$3 = "0.2.1-next.0";
225
224
 
226
225
  var version$2 = "0.5.7";
227
226
 
228
- var version$1 = "0.5.0";
227
+ var version$1 = "0.5.1-next.0";
229
228
 
230
229
  const packageVersions = {
231
- "@backstage/backend-common": version$f,
232
230
  "@backstage/backend-defaults": version$1,
233
231
  "@backstage/backend-plugin-api": version$e,
234
232
  "@backstage/backend-test-utils": version$d,
@@ -290,9 +288,6 @@ const configOption = [
290
288
  (opt, opts) => opts ? [...opts, opt] : [opt],
291
289
  Array()
292
290
  ];
293
- function registerOnboardCommand(program) {
294
- program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-DRp-18FB.cjs.js'); }).then((m) => m.command)));
295
- }
296
291
  function registerRepoCommand(program) {
297
292
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
298
293
  command.command("build").description(
@@ -306,7 +301,7 @@ function registerRepoCommand(program) {
306
301
  ).option(
307
302
  "--minify",
308
303
  "Minify the generated code. Does not apply to app package (app is minified by default)."
309
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-D9YZ-dyI.cjs.js'); }).then((m) => m.command)));
304
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-gNEKjjhr.cjs.js'); }).then((m) => m.command)));
310
305
  command.command("lint").description("Lint all packages in the project").option(
311
306
  "--format <format>",
312
307
  "Lint report output format",
@@ -314,17 +309,17 @@ function registerRepoCommand(program) {
314
309
  ).option(
315
310
  "--since <ref>",
316
311
  "Only lint packages that changed since the specified ref"
317
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-Cm_9pg85.cjs.js'); }).then((m) => m.command)));
312
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-DYO_SeK3.cjs.js'); }).then((m) => m.command)));
318
313
  command.command("fix").description("Automatically fix packages in the project").option(
319
314
  "--publish",
320
315
  "Enable additional fixes that only apply when publishing packages"
321
316
  ).option(
322
317
  "--check",
323
318
  "Fail if any packages would have been changed by the command"
324
- ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-BM8I_DZ2.cjs.js'); }).then((m) => m.command)));
325
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-CVl--Ec9.cjs.js'); }).then((m) => m.command)));
319
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-BTjof5XT.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-bdpRw-oZ.cjs.js'); }).then((m) => m.command)));
326
321
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
327
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-C6R3rEyS.cjs.js'); }).then((m) => m.command))
322
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-DFgQENam.cjs.js'); }).then((m) => m.command))
328
323
  );
329
324
  command.command("test").allowUnknownOption(true).option(
330
325
  "--since <ref>",
@@ -332,14 +327,14 @@ function registerRepoCommand(program) {
332
327
  ).option(
333
328
  "--jest-help",
334
329
  "Show help for Jest CLI options, which are passed through"
335
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-DVUsmgyZ.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-5bQM0VRL.cjs.js'); }).then((m) => m.command)));
336
331
  }
337
332
  function registerScriptCommand(program) {
338
333
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
339
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(
340
335
  "--inspect-brk [host]",
341
336
  "Enable debugger in Node.js environments, breaking before code starts"
342
- ).option("--require <path>", "Add a --require argument to the node process").action(lazy(() => Promise.resolve().then(function () { return require('./index-CXG8-26G.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-7LxfekFu.cjs.js'); }).then((m) => m.command)));
343
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(
344
339
  "--minify",
345
340
  "Minify the generated code. Does not apply to app package (app is minified by default)."
@@ -354,30 +349,30 @@ function registerScriptCommand(program) {
354
349
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
355
350
  (opt, opts) => opts ? [...opts, opt] : [opt],
356
351
  Array()
357
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-Cw0lUK20.cjs.js'); }).then((m) => m.command)));
352
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-DsP5wbju.cjs.js'); }).then((m) => m.command)));
358
353
  command.command("lint [directories...]").option(
359
354
  "--format <format>",
360
355
  "Lint report output format",
361
356
  "eslint-formatter-friendly"
362
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-6vrbdjyg.cjs.js'); }).then((m) => m.default)));
363
- 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-Diil1uTk.cjs.js'); }).then((m) => m.default)));
364
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-BllZTky1.cjs.js'); }).then((m) => m.default)));
365
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-BqFGqZb5.cjs.js'); }).then((m) => m.pre)));
366
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-BqFGqZb5.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-6_0f9f26.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-YJMOGqXG.cjs.js'); }).then((m) => m.default)));
359
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-Dpgqc3P2.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-D8AK7Uem.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-D8AK7Uem.cjs.js'); }).then((m) => m.post)));
367
362
  }
368
363
  function registerMigrateCommand(program) {
369
364
  const command = program.command("migrate [command]").description("Migration utilities");
370
- 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-CHz7zkIQ.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-CkpKfhJA.cjs.js'); }).then((m) => m.default)));
371
366
  command.command("package-scripts").description("Set package scripts according to each package role").action(
372
367
  lazy(() => Promise.resolve().then(function () { return require('./packageScripts-DX6dilK6.cjs.js'); }).then((m) => m.command))
373
368
  );
374
369
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
375
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-DvjdOWjC.cjs.js'); }).then((m) => m.command))
370
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-bg4mFuFZ.cjs.js'); }).then((m) => m.command))
376
371
  );
377
372
  command.command("package-lint-configs").description(
378
373
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
379
374
  ).action(
380
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-DGkvTpBd.cjs.js'); }).then((m) => m.command))
375
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-BBvQehRd.cjs.js'); }).then((m) => m.command))
381
376
  );
382
377
  command.command("react-router-deps").description(
383
378
  "Migrates the react-router dependencies for all packages to be peer dependencies"
@@ -405,44 +400,18 @@ function registerCommands(program) {
405
400
  ).option(
406
401
  "--license <license>",
407
402
  "The license to use for any new packages (default: Apache-2.0)"
408
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-DJUBFwiF.cjs.js'); }).then((m) => m.default)));
409
- program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
410
- "Open up an interactive guide to creating new things in your app [DEPRECATED]"
411
- ).option(
412
- "--select <name>",
413
- "Select the thing you want to be creating upfront"
414
- ).option(
415
- "--option <name>=<value>",
416
- "Pre-fill options for the creation process",
417
- (opt, arr) => [...arr, opt],
418
- []
419
- ).option("--scope <scope>", "The scope to use for new packages").option(
420
- "--npm-registry <URL>",
421
- "The package registry to use for new packages"
422
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-DJUBFwiF.cjs.js'); }).then((m) => m.default)));
423
- program.command("create-plugin", { hidden: true }).option(
424
- "--backend",
425
- "Create plugin with the backend dependencies as default"
426
- ).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(
427
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-Dj7O_us6.cjs.js'); }).then((m) => m.default))
428
- );
429
- program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
430
- "Diff an existing plugin with the creation template [DEPRECATED]"
431
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-Drt115Zb.cjs.js'); }).then((m) => m.default)));
432
- program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
433
- "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
434
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-Diil1uTk.cjs.js'); }).then((m) => m.default)));
403
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-C0D_k25O.cjs.js'); }).then((m) => m.default)));
435
404
  program.command("config:docs").option(
436
405
  "--package <name>",
437
406
  "Only include the schema that applies to the given package"
438
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-DPzCP6Jp.cjs.js'); }).then((m) => m.default)));
407
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-CDE82fWG.cjs.js'); }).then((m) => m.default)));
439
408
  program.command("config:print").option(
440
409
  "--package <name>",
441
410
  "Only load config schema that applies to the given package"
442
411
  ).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(
443
412
  "--format <format>",
444
413
  "Format to print the configuration in, either json or yaml [yaml]"
445
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-CQU7JzAh.cjs.js'); }).then((m) => m.default)));
414
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-BX8-7Nzg.cjs.js'); }).then((m) => m.default)));
446
415
  program.command("config:check").option(
447
416
  "--package <name>",
448
417
  "Only load config schema that applies to the given package"
@@ -451,18 +420,17 @@ function registerCommands(program) {
451
420
  "Enable strict config validation, forbidding errors and unknown keys"
452
421
  ).option(...configOption).description(
453
422
  "Validate that the given configuration loads and matches schema"
454
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-DDIGkK2r.cjs.js'); }).then((m) => m.default)));
423
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-DKBlShmI.cjs.js'); }).then((m) => m.default)));
455
424
  program.command("config:schema").option(
456
425
  "--package <name>",
457
426
  "Only output config schema that applies to the given package"
458
427
  ).option(
459
428
  "--format <format>",
460
429
  "Format to print the schema in, either json or yaml [yaml]"
461
- ).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-B4250t0W.cjs.js'); }).then((m) => m.default)));
430
+ ).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-Cabm6I6c.cjs.js'); }).then((m) => m.default)));
462
431
  registerRepoCommand(program);
463
432
  registerScriptCommand(program);
464
433
  registerMigrateCommand(program);
465
- registerOnboardCommand(program);
466
434
  program.command("versions:bump").option(
467
435
  "--pattern <glob>",
468
436
  "Override glob for matching packages to upgrade"
@@ -470,8 +438,7 @@ function registerCommands(program) {
470
438
  "--release <version|next|main>",
471
439
  "Bump to a specific Backstage release line or version",
472
440
  "main"
473
- ).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-BQ6YRL6D.cjs.js'); }).then(function (n) { return n.bump; }).then((m) => m.default)));
474
- program.command("versions:check", { hidden: true }).option("--fix", "Fix any auto-fixable versioning problems").description("Check Backstage package versioning").action(lazy(() => Promise.resolve().then(function () { return require('./lint-Dkx_fBkS.cjs.js'); }).then((m) => m.default)));
441
+ ).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-d9dS56p9.cjs.js'); }).then(function (n) { return n.bump; }).then((m) => m.default)));
475
442
  program.command("versions:migrate").option(
476
443
  "--pattern <glob>",
477
444
  "Override glob for matching packages to upgrade"
@@ -480,18 +447,33 @@ function registerCommands(program) {
480
447
  "Skip code changes and only update package.json files"
481
448
  ).description(
482
449
  "Migrate any plugins that have been moved to the @backstage-community namespace automatically"
483
- ).action(lazy(() => Promise.resolve().then(function () { return require('./bump-BQ6YRL6D.cjs.js'); }).then(function (n) { return n.migrate; }).then((m) => m.default)));
484
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-BllZTky1.cjs.js'); }).then((m) => m.default)));
450
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./bump-d9dS56p9.cjs.js'); }).then(function (n) { return n.migrate; }).then((m) => m.default)));
485
451
  program.command("build-workspace <workspace-dir> [packages...]").option(
486
452
  "--alwaysYarnPack",
487
453
  "Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
488
- ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-C4wCq5WM.cjs.js'); }).then((m) => m.default)));
489
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-BgEQ8aeF.cjs.js'); }).then((m) => m.default)));
490
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-FKrzx-9W.cjs.js'); }).then((m) => m.default)));
491
- program.command("install [plugin-id]", { hidden: true }).option(
492
- "--from <packageJsonFilePath>",
493
- "Install from a local package.json containing the installation recipe"
494
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-BMA3RshT.cjs.js'); }).then((m) => m.default)));
454
+ ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-DLfI3EjD.cjs.js'); }).then((m) => m.default)));
455
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-DVDDx3pk.cjs.js'); }).then((m) => m.default)));
456
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-CB7ln5K_.cjs.js'); }).then((m) => m.default)));
457
+ program.command("create").allowUnknownOption(true).action(removed("use 'backstage-cli new' instead"));
458
+ program.command("create-plugin").allowUnknownOption(true).action(removed("use 'backstage-cli new' instead"));
459
+ program.command("plugin:diff").allowUnknownOption(true).action(removed("use 'backstage-cli fix' instead"));
460
+ program.command("test").allowUnknownOption(true).action(
461
+ removed(
462
+ "use 'backstage-cli repo test' or 'backstage-cli package test' instead"
463
+ )
464
+ );
465
+ program.command("clean").allowUnknownOption(true).action(removed("use 'backstage-cli package clean' instead"));
466
+ program.command("versions:check").allowUnknownOption(true).action(removed("use 'yarn dedupe' or 'yarn-deduplicate' instead"));
467
+ program.command("install").allowUnknownOption(true).action(removed());
468
+ program.command("onboard").allowUnknownOption(true).action(removed());
469
+ }
470
+ function removed(message) {
471
+ return () => {
472
+ console.error(
473
+ message ? `This command has been removed, ${message}` : "This command has been removed"
474
+ );
475
+ process.exit(1);
476
+ };
495
477
  }
496
478
  function lazy(getActionFunc) {
497
479
  return async (...args) => {
@@ -535,4 +517,4 @@ exports.devDependencies = devDependencies;
535
517
  exports.paths = paths;
536
518
  exports.version = version;
537
519
  exports.version$1 = version$c;
538
- //# sourceMappingURL=index-DmUbBCFk.cjs.js.map
520
+ //# sourceMappingURL=index-v57xnvgT.cjs.js.map
@@ -1,13 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DmUbBCFk.cjs.js');
3
+ var index = require('./index-v57xnvgT.cjs.js');
4
4
  var os = require('os');
5
- var run = require('./run-CSt1n0F1.cjs.js');
6
- var Lockfile = require('./Lockfile-B4mqBkH6.cjs.js');
5
+ var run = require('./run-HW3lfDbM.cjs.js');
6
+ var yarn = require('./yarn-6FNAgNBK.cjs.js');
7
7
  require('minimatch');
8
8
  require('@manypkg/get-packages');
9
9
  require('chalk');
10
- require('./yarn-Ukl9MOS0.cjs.js');
11
10
  var fs = require('fs-extra');
12
11
  require('commander');
13
12
  require('semver');
@@ -46,7 +45,7 @@ var info = async () => {
46
45
  console.log();
47
46
  console.log("Dependencies:");
48
47
  const lockfilePath = index.paths.resolveTargetRoot("yarn.lock");
49
- const lockfile = await Lockfile.Lockfile.load(lockfilePath);
48
+ const lockfile = await yarn.Lockfile.load(lockfilePath);
50
49
  const deps = [...lockfile.keys()].filter((n) => n.startsWith("@backstage/"));
51
50
  const maxLength = Math.max(...deps.map((d) => d.length));
52
51
  for (const dep of deps) {
@@ -57,4 +56,4 @@ var info = async () => {
57
56
  };
58
57
 
59
58
  exports.default = info;
60
- //# sourceMappingURL=info-FKrzx-9W.cjs.js.map
59
+ //# sourceMappingURL=info-CB7ln5K_.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DmUbBCFk.cjs.js');
3
+ var index = require('./index-v57xnvgT.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-6vrbdjyg.cjs.js.map
36
+ //# sourceMappingURL=lint-6_0f9f26.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-DmUbBCFk.cjs.js');
6
+ var index = require('./index-v57xnvgT.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-Cm_9pg85.cjs.js.map
91
+ //# sourceMappingURL=lint-DYO_SeK3.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-DmUbBCFk.cjs.js');
7
+ var index = require('./index-v57xnvgT.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-C6R3rEyS.cjs.js.map
79
+ //# sourceMappingURL=list-deprecations-DFgQENam.cjs.js.map
@@ -11,13 +11,13 @@ var cliCommon = require('@backstage/cli-common');
11
11
  var ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
12
12
  var runScriptWebpackPlugin = require('run-script-webpack-plugin');
13
13
  var ReactRefreshPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
14
- var index = require('./index-DmUbBCFk.cjs.js');
14
+ var index = require('./index-v57xnvgT.cjs.js');
15
15
  var fs = require('fs-extra');
16
16
  var getPackages = require('@manypkg/get-packages');
17
17
  var nodeExternals = require('webpack-node-externals');
18
18
  var pickBy = require('lodash/pickBy');
19
19
  var entryPoints = require('./entryPoints-CoHH4lBA.cjs.js');
20
- var run = require('./run-CSt1n0F1.cjs.js');
20
+ var run = require('./run-HW3lfDbM.cjs.js');
21
21
  var MiniCssExtractPlugin = require('mini-css-extract-plugin');
22
22
  var svgrTemplate = require('./svgrTemplate-BTjBQ3by.cjs.js');
23
23
  var yn = require('yn');
@@ -907,4 +907,4 @@ exports.resolveBaseUrl = resolveBaseUrl;
907
907
  exports.resolveBundlingPaths = resolveBundlingPaths;
908
908
  exports.resolveEndpoint = resolveEndpoint;
909
909
  exports.resolveOptionalBundlingPaths = resolveOptionalBundlingPaths;
910
- //# sourceMappingURL=moduleFederation-8XXecxLD.cjs.js.map
910
+ //# sourceMappingURL=moduleFederation-Dq0n1quT.cjs.js.map