@backstage/cli 0.26.0 → 0.26.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 (52) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/config/jest.js +1 -1
  3. package/dist/cjs/{Lockfile-eced6070.cjs.js → Lockfile-C7rtIlD6.cjs.js} +13 -13
  4. package/dist/cjs/{build-dd1760ba.cjs.js → build-CwpT6bF2.cjs.js} +15 -15
  5. package/dist/cjs/{buildBackend-93008edd.cjs.js → buildBackend-DA1sPj38.cjs.js} +33 -33
  6. package/dist/cjs/{buildWorkspace-537eb788.cjs.js → buildWorkspace-C1SYLOri.cjs.js} +12 -12
  7. package/dist/cjs/{bump-aee0496e.cjs.js → bump-CeCdrJTX.cjs.js} +38 -38
  8. package/dist/cjs/{clean-6ccda488.cjs.js → clean-Cv8IvozP.cjs.js} +10 -10
  9. package/dist/cjs/clean-DM4n37HU.cjs.js +22 -0
  10. package/dist/cjs/{codeowners-b305c16a.cjs.js → codeowners-D7pqDS5v.cjs.js} +12 -12
  11. package/dist/cjs/{config-9d068fb3.cjs.js → config-30A1doGp.cjs.js} +2 -2
  12. package/dist/cjs/{createDistWorkspace-521b8e20.cjs.js → createDistWorkspace-BGiN72e4.cjs.js} +54 -53
  13. package/dist/cjs/{createPlugin-5b733848.cjs.js → createPlugin-CwxnrMzx.cjs.js} +41 -41
  14. package/dist/cjs/{diff-ffcf1ddd.cjs.js → diff-D3wUBD1R.cjs.js} +27 -27
  15. package/dist/cjs/{docs-62f456dc.cjs.js → docs-Cvi9d_ZX.cjs.js} +7 -7
  16. package/dist/cjs/{entryPoints-0cc55995.cjs.js → entryPoints-CoHH4lBA.cjs.js} +1 -1
  17. package/dist/cjs/{fix-c9486e20.cjs.js → fix-Bea3_Noa.cjs.js} +5 -5
  18. package/dist/cjs/{index-14d17c46.cjs.js → index-D3oMtC-Y.cjs.js} +13 -13
  19. package/dist/cjs/{index-f42e533f.cjs.js → index-DY45BN_5.cjs.js} +62 -62
  20. package/dist/cjs/{index-959685eb.cjs.js → index-DvRrNqwO.cjs.js} +56 -57
  21. package/dist/cjs/{index-34be8e16.cjs.js → index-nDVbtUZr.cjs.js} +27 -27
  22. package/dist/cjs/{index-7a73b7d7.cjs.js → index-sM4O9JuD.cjs.js} +44 -62
  23. package/dist/cjs/{info-ecbe826f.cjs.js → info-RFihkADz.cjs.js} +13 -13
  24. package/dist/cjs/{install-27e2fe5d.cjs.js → install-DoqtVqrm.cjs.js} +19 -19
  25. package/dist/cjs/{lint-748f9c9d.cjs.js → lint-BR_vl9_l.cjs.js} +6 -6
  26. package/dist/cjs/{lint-cadb3a1e.cjs.js → lint-C7Wrrowb.cjs.js} +10 -10
  27. package/dist/cjs/{lint-813542b6.cjs.js → lint-YPKovWFd.cjs.js} +3 -3
  28. package/dist/cjs/{list-deprecations-a9347f75.cjs.js → list-deprecations-BSHe0Jb3.cjs.js} +5 -5
  29. package/dist/cjs/{new-7cca705d.cjs.js → new-C_MIBxr7.cjs.js} +54 -54
  30. package/dist/cjs/{pack-7abdf1e1.cjs.js → pack-CsV2iPfV.cjs.js} +4 -4
  31. package/dist/cjs/{packageDetection-8d19bd36.cjs.js → packageDetection-pUH1daGF.cjs.js} +46 -46
  32. package/dist/cjs/{packageExports-84600a62.cjs.js → packageExports-B8ow9_g8.cjs.js} +3 -3
  33. package/dist/cjs/{packageLintConfigs-f1239915.cjs.js → packageLintConfigs-DU8CUxDG.cjs.js} +8 -8
  34. package/dist/cjs/{packageRole-b982f1e6.cjs.js → packageRole-BPygF5yd.cjs.js} +6 -6
  35. package/dist/cjs/{packageScripts-bb7b6de2.cjs.js → packageScripts-CPnlPBBs.cjs.js} +4 -4
  36. package/dist/cjs/{packages-9e5204b8.cjs.js → packages-BlHOrEEW.cjs.js} +4 -4
  37. package/dist/cjs/{parallel-2d9d247e.cjs.js → parallel-BszNaKyc.cjs.js} +4 -4
  38. package/dist/cjs/{print-33cb8274.cjs.js → print-DoEMvoPB.cjs.js} +4 -4
  39. package/dist/cjs/{productionPack-8b9ac9b7.cjs.js → productionPack-DotlEIE2.cjs.js} +19 -19
  40. package/dist/cjs/{reactRouterDeps-a2bb1d62.cjs.js → reactRouterDeps-BBKc6o07.cjs.js} +4 -4
  41. package/dist/cjs/{role-26dc0550.cjs.js → role-C2mHZAQE.cjs.js} +5 -5
  42. package/dist/cjs/{run-8f756fce.cjs.js → run-DdHCwSFu.cjs.js} +2 -2
  43. package/dist/cjs/{schema-13e89347.cjs.js → schema-BC3xv-Rs.cjs.js} +4 -4
  44. package/dist/cjs/{svgrTemplate-3549ea1c.cjs.js → svgrTemplate-BTjBQ3by.cjs.js} +1 -1
  45. package/dist/cjs/{tasks-84de240c.cjs.js → tasks-mGXy8WjR.cjs.js} +23 -23
  46. package/dist/cjs/{test-7076bd21.cjs.js → test-CE3ZjSss.cjs.js} +6 -6
  47. package/dist/cjs/{test-52dfdc79.cjs.js → test-dJeJGdt8.cjs.js} +4 -4
  48. package/dist/cjs/{validate-2e4a0b12.cjs.js → validate-BsyK7u74.cjs.js} +4 -4
  49. package/dist/cjs/{yarn-6cd89e16.cjs.js → yarn-BDZCENk5.cjs.js} +1 -1
  50. package/dist/index.cjs.js +1 -1
  51. package/package.json +11 -11
  52. package/dist/cjs/clean-8a505ab4.cjs.js +0 -22
@@ -7,11 +7,11 @@ var semver = require('semver');
7
7
  var cliCommon = require('@backstage/cli-common');
8
8
  var errors = require('@backstage/errors');
9
9
 
10
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
11
11
 
12
- var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
13
- var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
14
- var semver__default = /*#__PURE__*/_interopDefaultLegacy(semver);
12
+ var chalk__default = /*#__PURE__*/_interopDefaultCompat(chalk);
13
+ var fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
14
+ var semver__default = /*#__PURE__*/_interopDefaultCompat(semver);
15
15
 
16
16
  var __defProp = Object.defineProperty;
17
17
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -36,13 +36,13 @@ class ExitCodeError extends CustomError {
36
36
  function exitWithError(error) {
37
37
  if (error instanceof ExitCodeError) {
38
38
  process.stderr.write(`
39
- ${chalk__default["default"].red(error.message)}
39
+ ${chalk__default.default.red(error.message)}
40
40
 
41
41
  `);
42
42
  process.exit(error.code);
43
43
  } else {
44
44
  process.stderr.write(`
45
- ${chalk__default["default"].red(`${error}`)}
45
+ ${chalk__default.default.red(`${error}`)}
46
46
 
47
47
  `);
48
48
  process.exit(1);
@@ -53,13 +53,13 @@ class NotFoundError extends CustomError {
53
53
 
54
54
  const paths = cliCommon.findPaths(__dirname);
55
55
 
56
- var version$f = "0.21.4";
56
+ var version$f = "0.21.5";
57
57
 
58
- var version$e = "0.6.14";
58
+ var version$e = "0.6.15";
59
59
 
60
- var version$d = "0.3.4";
60
+ var version$d = "0.3.5";
61
61
 
62
- var version$c = "0.26.0";
62
+ var version$c = "0.26.1";
63
63
  var dependencies = {
64
64
  "@backstage/catalog-model": "workspace:^",
65
65
  "@backstage/cli-common": "workspace:^",
@@ -151,9 +151,9 @@ var dependencies = {
151
151
  "react-dev-utils": "^12.0.0-next.60",
152
152
  "react-refresh": "^0.14.0",
153
153
  "recursive-readdir": "^2.2.2",
154
- rollup: "^2.60.2",
155
- "rollup-plugin-dts": "^4.0.1",
156
- "rollup-plugin-esbuild": "^4.7.2",
154
+ rollup: "^4.0.0",
155
+ "rollup-plugin-dts": "^6.1.0",
156
+ "rollup-plugin-esbuild": "^6.1.1",
157
157
  "rollup-plugin-postcss": "^4.0.0",
158
158
  "rollup-pluginutils": "^2.8.2",
159
159
  "run-script-webpack-plugin": "^0.2.0",
@@ -210,25 +210,25 @@ var devDependencies = {
210
210
 
211
211
  var version$b = "1.2.0";
212
212
 
213
- var version$a = "1.12.1";
213
+ var version$a = "1.12.2";
214
214
 
215
- var version$9 = "0.14.1";
215
+ var version$9 = "0.14.2";
216
216
 
217
217
  var version$8 = "1.9.1";
218
218
 
219
- var version$7 = "1.0.28";
219
+ var version$7 = "1.0.29";
220
220
 
221
- var version$6 = "1.5.1";
221
+ var version$6 = "1.5.2";
222
222
 
223
- var version$5 = "0.4.0";
223
+ var version$5 = "0.4.1";
224
224
 
225
- var version$4 = "0.22.0";
225
+ var version$4 = "0.22.2";
226
226
 
227
- var version$3 = "0.1.0";
227
+ var version$3 = "0.1.1";
228
228
 
229
229
  var version$2 = "0.5.2";
230
230
 
231
- var version$1 = "0.2.14";
231
+ var version$1 = "0.2.15";
232
232
 
233
233
  const packageVersions = {
234
234
  "@backstage/backend-common": version$f,
@@ -248,11 +248,11 @@ const packageVersions = {
248
248
  "@backstage/plugin-auth-backend-module-guest-provider": version$3
249
249
  };
250
250
  function findVersion() {
251
- const pkgContent = fs__default["default"].readFileSync(paths.resolveOwn("package.json"), "utf8");
251
+ const pkgContent = fs__default.default.readFileSync(paths.resolveOwn("package.json"), "utf8");
252
252
  return JSON.parse(pkgContent).version;
253
253
  }
254
254
  const version = findVersion();
255
- fs__default["default"].pathExistsSync(paths.resolveOwn("src"));
255
+ fs__default.default.pathExistsSync(paths.resolveOwn("src"));
256
256
  function createPackageVersionProvider(lockfile) {
257
257
  return (name, versionHint) => {
258
258
  var _a;
@@ -272,7 +272,7 @@ function createPackageVersionProvider(lockfile) {
272
272
  }
273
273
  }
274
274
  const validRanges = lockfileEntries == null ? void 0 : lockfileEntries.filter(
275
- (entry) => semver__default["default"].satisfies(targetVersion, entry.range)
275
+ (entry) => semver__default.default.satisfies(targetVersion, entry.range)
276
276
  );
277
277
  const highestRange = validRanges == null ? void 0 : validRanges.slice(-1)[0];
278
278
  if (highestRange == null ? void 0 : highestRange.range) {
@@ -281,7 +281,7 @@ function createPackageVersionProvider(lockfile) {
281
281
  if (packageVersion) {
282
282
  return `^${packageVersion}`;
283
283
  }
284
- if ((_a = semver__default["default"].parse(versionHint)) == null ? void 0 : _a.prerelease.length) {
284
+ if ((_a = semver__default.default.parse(versionHint)) == null ? void 0 : _a.prerelease.length) {
285
285
  return versionHint;
286
286
  }
287
287
  return (versionHint == null ? void 0 : versionHint.match(/^[\d\.]+$/)) ? `^${versionHint}` : versionHint;
@@ -295,7 +295,7 @@ const configOption = [
295
295
  Array()
296
296
  ];
297
297
  function registerOnboardCommand(program) {
298
- program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-959685eb.cjs.js'); }).then((m) => m.command)));
298
+ program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-DvRrNqwO.cjs.js'); }).then((m) => m.command)));
299
299
  }
300
300
  function registerRepoCommand(program) {
301
301
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
@@ -307,7 +307,7 @@ function registerRepoCommand(program) {
307
307
  ).option(
308
308
  "--since <ref>",
309
309
  "Only build packages and their dev dependents that changed since the specified ref"
310
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-dd1760ba.cjs.js'); }).then((m) => m.command)));
310
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-CwpT6bF2.cjs.js'); }).then((m) => m.command)));
311
311
  command.command("lint").description("Lint all packages in the project").option(
312
312
  "--format <format>",
313
313
  "Lint report output format",
@@ -315,14 +315,14 @@ function registerRepoCommand(program) {
315
315
  ).option(
316
316
  "--since <ref>",
317
317
  "Only lint packages that changed since the specified ref"
318
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-748f9c9d.cjs.js'); }).then((m) => m.command)));
318
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-BR_vl9_l.cjs.js'); }).then((m) => m.command)));
319
319
  command.command("fix").description("Automatically fix packages in the project").option(
320
320
  "--check",
321
321
  "Fail if any packages would have been changed by the command"
322
- ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-c9486e20.cjs.js'); }).then((m) => m.command)));
323
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-6ccda488.cjs.js'); }).then((m) => m.command)));
322
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-Bea3_Noa.cjs.js'); }).then((m) => m.command)));
323
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-Cv8IvozP.cjs.js'); }).then((m) => m.command)));
324
324
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
325
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-a9347f75.cjs.js'); }).then((m) => m.command))
325
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-BSHe0Jb3.cjs.js'); }).then((m) => m.command))
326
326
  );
327
327
  command.command("test").allowUnknownOption(true).option(
328
328
  "--since <ref>",
@@ -330,14 +330,14 @@ function registerRepoCommand(program) {
330
330
  ).option(
331
331
  "--jest-help",
332
332
  "Show help for Jest CLI options, which are passed through"
333
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-7076bd21.cjs.js'); }).then((m) => m.command)));
333
+ ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-CE3ZjSss.cjs.js'); }).then((m) => m.command)));
334
334
  }
335
335
  function registerScriptCommand(program) {
336
336
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
337
337
  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(
338
338
  "--inspect-brk [host]",
339
339
  "Enable debugger in Node.js environments, breaking before code starts"
340
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-7a73b7d7.cjs.js'); }).then((m) => m.command)));
340
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-sM4O9JuD.cjs.js'); }).then((m) => m.command)));
341
341
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
342
342
  "--minify",
343
343
  "Minify the generated code. Does not apply to app package (app is minified by default)."
@@ -352,35 +352,35 @@ function registerScriptCommand(program) {
352
352
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
353
353
  (opt, opts) => opts ? [...opts, opt] : [opt],
354
354
  Array()
355
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-14d17c46.cjs.js'); }).then((m) => m.command)));
355
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-D3oMtC-Y.cjs.js'); }).then((m) => m.command)));
356
356
  command.command("lint [directories...]").option(
357
357
  "--format <format>",
358
358
  "Lint report output format",
359
359
  "eslint-formatter-friendly"
360
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-813542b6.cjs.js'); }).then((m) => m.default)));
361
- 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-52dfdc79.cjs.js'); }).then((m) => m.default)));
362
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-8a505ab4.cjs.js'); }).then((m) => m.default)));
363
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-7abdf1e1.cjs.js'); }).then((m) => m.pre)));
364
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-7abdf1e1.cjs.js'); }).then((m) => m.post)));
360
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-YPKovWFd.cjs.js'); }).then((m) => m.default)));
361
+ 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-dJeJGdt8.cjs.js'); }).then((m) => m.default)));
362
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-DM4n37HU.cjs.js'); }).then((m) => m.default)));
363
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-CsV2iPfV.cjs.js'); }).then((m) => m.pre)));
364
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-CsV2iPfV.cjs.js'); }).then((m) => m.post)));
365
365
  }
366
366
  function registerMigrateCommand(program) {
367
367
  const command = program.command("migrate [command]").description("Migration utilities");
368
- 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-b982f1e6.cjs.js'); }).then((m) => m.default)));
368
+ 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-BPygF5yd.cjs.js'); }).then((m) => m.default)));
369
369
  command.command("package-scripts").description("Set package scripts according to each package role").action(
370
- lazy(() => Promise.resolve().then(function () { return require('./packageScripts-bb7b6de2.cjs.js'); }).then((m) => m.command))
370
+ lazy(() => Promise.resolve().then(function () { return require('./packageScripts-CPnlPBBs.cjs.js'); }).then((m) => m.command))
371
371
  );
372
372
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
373
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-84600a62.cjs.js'); }).then((m) => m.command))
373
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-B8ow9_g8.cjs.js'); }).then((m) => m.command))
374
374
  );
375
375
  command.command("package-lint-configs").description(
376
376
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
377
377
  ).action(
378
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-f1239915.cjs.js'); }).then((m) => m.command))
378
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-DU8CUxDG.cjs.js'); }).then((m) => m.command))
379
379
  );
380
380
  command.command("react-router-deps").description(
381
381
  "Migrates the react-router dependencies for all packages to be peer dependencies"
382
382
  ).action(
383
- lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-a2bb1d62.cjs.js'); }).then((m) => m.command))
383
+ lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-BBKc6o07.cjs.js'); }).then((m) => m.command))
384
384
  );
385
385
  }
386
386
  function registerCommands(program) {
@@ -400,7 +400,7 @@ function registerCommands(program) {
400
400
  ).option(
401
401
  "--baseVersion <version>",
402
402
  "The version to use for any new packages (default: 0.1.0)"
403
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-7cca705d.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-C_MIBxr7.cjs.js'); }).then((m) => m.default)));
404
404
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
405
405
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
406
406
  ).option(
@@ -414,30 +414,30 @@ function registerCommands(program) {
414
414
  ).option("--scope <scope>", "The scope to use for new packages").option(
415
415
  "--npm-registry <URL>",
416
416
  "The package registry to use for new packages"
417
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-7cca705d.cjs.js'); }).then((m) => m.default)));
417
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-C_MIBxr7.cjs.js'); }).then((m) => m.default)));
418
418
  program.command("create-plugin", { hidden: true }).option(
419
419
  "--backend",
420
420
  "Create plugin with the backend dependencies as default"
421
421
  ).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(
422
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-5b733848.cjs.js'); }).then((m) => m.default))
422
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-CwxnrMzx.cjs.js'); }).then((m) => m.default))
423
423
  );
424
424
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
425
425
  "Diff an existing plugin with the creation template [DEPRECATED]"
426
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-ffcf1ddd.cjs.js'); }).then((m) => m.default)));
426
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-D3wUBD1R.cjs.js'); }).then((m) => m.default)));
427
427
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
428
428
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
429
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-52dfdc79.cjs.js'); }).then((m) => m.default)));
429
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-dJeJGdt8.cjs.js'); }).then((m) => m.default)));
430
430
  program.command("config:docs").option(
431
431
  "--package <name>",
432
432
  "Only include the schema that applies to the given package"
433
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-62f456dc.cjs.js'); }).then((m) => m.default)));
433
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-Cvi9d_ZX.cjs.js'); }).then((m) => m.default)));
434
434
  program.command("config:print").option(
435
435
  "--package <name>",
436
436
  "Only load config schema that applies to the given package"
437
437
  ).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(
438
438
  "--format <format>",
439
439
  "Format to print the configuration in, either json or yaml [yaml]"
440
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-33cb8274.cjs.js'); }).then((m) => m.default)));
440
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-DoEMvoPB.cjs.js'); }).then((m) => m.default)));
441
441
  program.command("config:check").option(
442
442
  "--package <name>",
443
443
  "Only load config schema that applies to the given package"
@@ -446,14 +446,14 @@ function registerCommands(program) {
446
446
  "Enable strict config validation, forbidding errors and unknown keys"
447
447
  ).option(...configOption).description(
448
448
  "Validate that the given configuration loads and matches schema"
449
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-2e4a0b12.cjs.js'); }).then((m) => m.default)));
449
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-BsyK7u74.cjs.js'); }).then((m) => m.default)));
450
450
  program.command("config:schema").option(
451
451
  "--package <name>",
452
452
  "Only output config schema that applies to the given package"
453
453
  ).option(
454
454
  "--format <format>",
455
455
  "Format to print the schema in, either json or yaml [yaml]"
456
- ).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-13e89347.cjs.js'); }).then((m) => m.default)));
456
+ ).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-BC3xv-Rs.cjs.js'); }).then((m) => m.default)));
457
457
  registerRepoCommand(program);
458
458
  registerScriptCommand(program);
459
459
  registerMigrateCommand(program);
@@ -465,19 +465,19 @@ function registerCommands(program) {
465
465
  "--release <version|next|main>",
466
466
  "Bump to a specific Backstage release line or version",
467
467
  "main"
468
- ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-aee0496e.cjs.js'); }).then((m) => m.default)));
469
- 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-cadb3a1e.cjs.js'); }).then((m) => m.default)));
470
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-8a505ab4.cjs.js'); }).then((m) => m.default)));
468
+ ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-CeCdrJTX.cjs.js'); }).then((m) => m.default)));
469
+ 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-C7Wrrowb.cjs.js'); }).then((m) => m.default)));
470
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-DM4n37HU.cjs.js'); }).then((m) => m.default)));
471
471
  program.command("build-workspace <workspace-dir> [packages...]").option(
472
472
  "--alwaysYarnPack",
473
473
  "Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
474
- ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-537eb788.cjs.js'); }).then((m) => m.default)));
475
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-34be8e16.cjs.js'); }).then((m) => m.default)));
476
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-ecbe826f.cjs.js'); }).then((m) => m.default)));
474
+ ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-C1SYLOri.cjs.js'); }).then((m) => m.default)));
475
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-nDVbtUZr.cjs.js'); }).then((m) => m.default)));
476
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-RFihkADz.cjs.js'); }).then((m) => m.default)));
477
477
  program.command("install [plugin-id]", { hidden: true }).option(
478
478
  "--from <packageJsonFilePath>",
479
479
  "Install from a local package.json containing the installation recipe"
480
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-27e2fe5d.cjs.js'); }).then((m) => m.default)));
480
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-DoqtVqrm.cjs.js'); }).then((m) => m.default)));
481
481
  }
482
482
  function lazy(getActionFunc) {
483
483
  return async (...args) => {
@@ -497,7 +497,7 @@ const main = (argv) => {
497
497
  registerCommands(commander.program);
498
498
  commander.program.on("command:*", () => {
499
499
  console.log();
500
- console.log(chalk__default["default"].red(`Invalid command: ${commander.program.args.join(" ")}`));
500
+ console.log(chalk__default.default.red(`Invalid command: ${commander.program.args.join(" ")}`));
501
501
  console.log();
502
502
  commander.program.outputHelp();
503
503
  process.exit(1);
@@ -521,4 +521,4 @@ exports.devDependencies = devDependencies;
521
521
  exports.paths = paths;
522
522
  exports.version = version;
523
523
  exports.version$1 = version$c;
524
- //# sourceMappingURL=index-f42e533f.cjs.js.map
524
+ //# sourceMappingURL=index-DY45BN_5.cjs.js.map