@backstage/cli 0.26.11 → 0.27.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 (48) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/config/eslint-factory.js +1 -0
  3. package/dist/cjs/Lockfile-B4mqBkH6.cjs.js +86 -0
  4. package/dist/cjs/{build-DwlXzIpR.cjs.js → build-D5DoFqm6.cjs.js} +8 -13
  5. package/dist/cjs/{buildBackend-CrncxAY5.cjs.js → buildBackend-UK6nC6VL.cjs.js} +17 -41
  6. package/dist/cjs/{buildWorkspace-D95Cv1QN.cjs.js → buildWorkspace-Z-hpJt9g.cjs.js} +4 -4
  7. package/dist/cjs/{bump-b90k9Vrg.cjs.js → bump-Qc4jNLOA.cjs.js} +7 -84
  8. package/dist/cjs/{clean-Bev614vS.cjs.js → clean-CB6dTqaG.cjs.js} +2 -2
  9. package/dist/cjs/{clean-Cn9pRgoI.cjs.js → clean-DlsJGDLw.cjs.js} +2 -2
  10. package/dist/cjs/{codeowners-C_BzEYI6.cjs.js → codeowners-0MT7UP_S.cjs.js} +2 -2
  11. package/dist/cjs/{config-EizsMYjy.cjs.js → config-B1bkp-HP.cjs.js} +43 -35
  12. package/dist/cjs/{createDistWorkspace-CqCdLqOV.cjs.js → createDistWorkspace-0v54ePDJ.cjs.js} +3 -3
  13. package/dist/cjs/{createPlugin-Dp_zJ1vU.cjs.js → createPlugin-CUOGhq6P.cjs.js} +6 -6
  14. package/dist/cjs/{diff-SflPPir6.cjs.js → diff-BaiaASdN.cjs.js} +2 -2
  15. package/dist/cjs/{docs-B0MlNQaZ.cjs.js → docs-D8vejOxE.cjs.js} +3 -3
  16. package/dist/cjs/{fix-BoMIpogO.cjs.js → fix-C7T4cvOB.cjs.js} +2 -2
  17. package/dist/cjs/{index-Do6EL2Yb.cjs.js → index-1VtfY6wb.cjs.js} +4 -4
  18. package/dist/cjs/{index-D6bTzT6C.cjs.js → index-B8Ebu0mP.cjs.js} +19 -15
  19. package/dist/cjs/{index-7vT98W4X.cjs.js → index-BAcLy7dK.cjs.js} +47 -47
  20. package/dist/cjs/{index-nl4fBJN1.cjs.js → index-Bu7Vqly9.cjs.js} +49 -63
  21. package/dist/cjs/{index-JoytU5ZM.cjs.js → index-F8W-9gIc.cjs.js} +2 -2
  22. package/dist/cjs/{info-BRPLyhql.cjs.js → info-D_IhL0i0.cjs.js} +4 -4
  23. package/dist/cjs/{install-DBTY3GMv.cjs.js → install-DGaf_UuL.cjs.js} +5 -5
  24. package/dist/cjs/{lint-DmKqylEy.cjs.js → lint-CRqMLZJ5.cjs.js} +2 -2
  25. package/dist/cjs/lint-Dkx_fBkS.cjs.js +10 -0
  26. package/dist/cjs/{lint-6Ua9puez.cjs.js → lint-EJvdRB7_.cjs.js} +2 -2
  27. package/dist/cjs/{list-deprecations-DNYfBnHZ.cjs.js → list-deprecations-COfvNjrB.cjs.js} +2 -2
  28. package/dist/cjs/{packageDetection-DlDcN5Ll.cjs.js → moduleFederation-CQZbFAit.cjs.js} +94 -25
  29. package/dist/cjs/{new-WebKpNSz.cjs.js → new-DB_oe66E.cjs.js} +6 -6
  30. package/dist/cjs/{pack-5if7U6_6.cjs.js → pack-BcxxlYor.cjs.js} +2 -2
  31. package/dist/cjs/{packageExports-Ddqkury2.cjs.js → packageExports-FpoAU1Be.cjs.js} +3 -3
  32. package/dist/cjs/{packageLintConfigs-CrhcoEVX.cjs.js → packageLintConfigs-D7LMvTow.cjs.js} +3 -3
  33. package/dist/cjs/{packageRole-CBF_rIK0.cjs.js → packageRole-BeuvccV9.cjs.js} +2 -2
  34. package/dist/cjs/{packages-RRALGdRj.cjs.js → packages-DPPEGYIi.cjs.js} +3 -3
  35. package/dist/cjs/{print-Caq1MMDY.cjs.js → print-DuJqsJ2y.cjs.js} +3 -3
  36. package/dist/cjs/{role-DNHddFRX.cjs.js → role-DAaP4LE5.cjs.js} +2 -2
  37. package/dist/cjs/{run-Dyr28990.cjs.js → run-CPcG7YxR.cjs.js} +2 -2
  38. package/dist/cjs/{schema-CXKpYRvf.cjs.js → schema-CR794PHv.cjs.js} +3 -3
  39. package/dist/cjs/{tasks-CMO3PrbZ.cjs.js → tasks-4L8FqWEM.cjs.js} +2 -2
  40. package/dist/cjs/{test-CTXtMelk.cjs.js → test-303IpaqN.cjs.js} +3 -3
  41. package/dist/cjs/{test-CyF0ge7_.cjs.js → test-y8AV0JOP.cjs.js} +3 -3
  42. package/dist/cjs/{validate-CPunUthn.cjs.js → validate-DZJIL6CK.cjs.js} +3 -3
  43. package/dist/index.cjs.js +1 -1
  44. package/package.json +10 -10
  45. package/templates/default-backend-plugin/package.json.hbs +0 -1
  46. package/templates/default-backend-plugin/src/service/router.ts +2 -3
  47. package/dist/cjs/Lockfile-BndFvzHc.cjs.js +0 -221
  48. package/dist/cjs/lint-CCzUmZcU.cjs.js +0 -112
@@ -10,14 +10,14 @@ var camelCase = require('lodash/camelCase');
10
10
  var upperFirst = require('lodash/upperFirst');
11
11
  var os = require('os');
12
12
  var errors = require('@backstage/errors');
13
- var codeowners = require('./codeowners-C_BzEYI6.cjs.js');
14
- var index = require('./index-7vT98W4X.cjs.js');
15
- var tasks = require('./tasks-CMO3PrbZ.cjs.js');
16
- var Lockfile = require('./Lockfile-BndFvzHc.cjs.js');
13
+ var codeowners = require('./codeowners-0MT7UP_S.cjs.js');
14
+ var index = require('./index-BAcLy7dK.cjs.js');
15
+ var tasks = require('./tasks-4L8FqWEM.cjs.js');
16
+ var Lockfile = require('./Lockfile-B4mqBkH6.cjs.js');
17
17
  require('minimatch');
18
18
  require('@manypkg/get-packages');
19
19
  require('./yarn-Ukl9MOS0.cjs.js');
20
- require('./run-Dyr28990.cjs.js');
20
+ require('./run-CPcG7YxR.cjs.js');
21
21
  require('commander');
22
22
  require('semver');
23
23
  require('@backstage/cli-common');
@@ -275,4 +275,4 @@ exports.addPluginExtensionToApp = addPluginExtensionToApp;
275
275
  exports.capitalize = capitalize;
276
276
  exports.default = createPlugin;
277
277
  exports.movePlugin = movePlugin;
278
- //# sourceMappingURL=createPlugin-Dp_zJ1vU.cjs.js.map
278
+ //# sourceMappingURL=createPlugin-CUOGhq6P.cjs.js.map
@@ -7,7 +7,7 @@ var path = require('path');
7
7
  var inquirer = require('inquirer');
8
8
  var handlebars = require('handlebars');
9
9
  var recursive = require('recursive-readdir');
10
- var index = require('./index-7vT98W4X.cjs.js');
10
+ var index = require('./index-BAcLy7dK.cjs.js');
11
11
  require('commander');
12
12
  require('semver');
13
13
  require('@backstage/cli-common');
@@ -433,4 +433,4 @@ async function readPluginData() {
433
433
  }
434
434
 
435
435
  exports.default = diff;
436
- //# sourceMappingURL=diff-SflPPir6.cjs.js.map
436
+ //# sourceMappingURL=diff-BaiaASdN.cjs.js.map
@@ -2,9 +2,9 @@
2
2
 
3
3
  var configLoader = require('@backstage/config-loader');
4
4
  var openBrowser = require('react-dev-utils/openBrowser');
5
- var config = require('./config-EizsMYjy.cjs.js');
5
+ var config = require('./config-B1bkp-HP.cjs.js');
6
6
  require('@backstage/config');
7
- require('./index-7vT98W4X.cjs.js');
7
+ require('./index-BAcLy7dK.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('fs-extra');
@@ -34,4 +34,4 @@ var docs = async (opts) => {
34
34
  };
35
35
 
36
36
  exports.default = docs;
37
- //# sourceMappingURL=docs-B0MlNQaZ.cjs.js.map
37
+ //# sourceMappingURL=docs-D8vejOxE.cjs.js.map
@@ -3,7 +3,7 @@
3
3
  var cliNode = require('@backstage/cli-node');
4
4
  var fs = require('fs-extra');
5
5
  var path = require('path');
6
- var index = require('./index-7vT98W4X.cjs.js');
6
+ var index = require('./index-BAcLy7dK.cjs.js');
7
7
  var publishing = require('./publishing-DQtsKTbc.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
@@ -359,4 +359,4 @@ exports.fixSideEffects = fixSideEffects;
359
359
  exports.printPackageFixHint = printPackageFixHint;
360
360
  exports.readFixablePackages = readFixablePackages;
361
361
  exports.writeFixedPackages = writeFixedPackages;
362
- //# sourceMappingURL=fix-BoMIpogO.cjs.js.map
362
+ //# sourceMappingURL=fix-C7T4cvOB.cjs.js.map
@@ -2,14 +2,14 @@
2
2
 
3
3
  var chalk = require('chalk');
4
4
  var inquirer = require('inquirer');
5
- var tasks = require('./tasks-CMO3PrbZ.cjs.js');
5
+ var tasks = require('./tasks-4L8FqWEM.cjs.js');
6
6
  var oauthApp = require('@octokit/oauth-app');
7
7
  var fs = require('fs-extra');
8
8
  var yaml = require('yaml');
9
9
  var cliCommon = require('@backstage/cli-common');
10
10
  var path = require('path');
11
11
  var differ = require('diff');
12
- var config = require('./config-EizsMYjy.cjs.js');
12
+ var config = require('./config-B1bkp-HP.cjs.js');
13
13
  var catalogModel = require('@backstage/catalog-model');
14
14
  var z = require('zod');
15
15
  var integration = require('@backstage/integration');
@@ -22,7 +22,7 @@ require('util');
22
22
  require('recursive-readdir');
23
23
  require('child_process');
24
24
  require('@backstage/errors');
25
- require('./index-7vT98W4X.cjs.js');
25
+ require('./index-BAcLy7dK.cjs.js');
26
26
  require('commander');
27
27
  require('semver');
28
28
  require('@backstage/config-loader');
@@ -1024,4 +1024,4 @@ async function command() {
1024
1024
  }
1025
1025
 
1026
1026
  exports.command = command;
1027
- //# sourceMappingURL=index-Do6EL2Yb.cjs.js.map
1027
+ //# sourceMappingURL=index-1VtfY6wb.cjs.js.map
@@ -1,11 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var createDistWorkspace = require('./createDistWorkspace-CqCdLqOV.cjs.js');
4
- var role = require('./role-DNHddFRX.cjs.js');
3
+ var createDistWorkspace = require('./createDistWorkspace-0v54ePDJ.cjs.js');
4
+ var role = require('./role-DAaP4LE5.cjs.js');
5
5
  var cliNode = require('@backstage/cli-node');
6
- var index = require('./index-7vT98W4X.cjs.js');
7
- var buildBackend = require('./buildBackend-CrncxAY5.cjs.js');
8
- var config = require('./config-EizsMYjy.cjs.js');
6
+ var index = require('./index-BAcLy7dK.cjs.js');
7
+ var buildBackend = require('./buildBackend-UK6nC6VL.cjs.js');
9
8
  var chalk = require('chalk');
10
9
  require('fs-extra');
11
10
  require('path');
@@ -13,7 +12,7 @@ require('p-limit');
13
12
  require('os');
14
13
  require('tar');
15
14
  require('lodash/partition');
16
- require('./run-Dyr28990.cjs.js');
15
+ require('./run-CPcG7YxR.cjs.js');
17
16
  require('child_process');
18
17
  require('util');
19
18
  require('@backstage/errors');
@@ -43,36 +42,41 @@ require('html-webpack-plugin');
43
42
  require('@module-federation/enhanced/webpack');
44
43
  require('react-dev-utils/ModuleScopePlugin');
45
44
  require('run-script-webpack-plugin');
45
+ require('@pmmmwh/react-refresh-webpack-plugin');
46
46
  require('@manypkg/get-packages');
47
47
  require('webpack-node-externals');
48
- require('./packageDetection-DlDcN5Ll.cjs.js');
48
+ require('./moduleFederation-CQZbFAit.cjs.js');
49
49
  require('lodash/pickBy');
50
50
  require('mini-css-extract-plugin');
51
- require('@pmmmwh/react-refresh-webpack-plugin');
52
51
  require('yn');
53
52
  require('@backstage/config');
54
53
  require('chokidar');
55
54
  require('p-queue');
56
55
  require('react-dev-utils/FileSizeReporter');
57
56
  require('react-dev-utils/formatWebpackMessages');
58
- require('lodash/uniq');
59
57
  require('react-dev-utils/openBrowser');
60
58
  require('webpack-dev-server');
61
- require('@yarnpkg/parsers');
62
- require('@yarnpkg/lockfile');
63
- require('minimatch');
64
- require('./yarn-Ukl9MOS0.cjs.js');
59
+ require('./config-B1bkp-HP.cjs.js');
65
60
  require('@backstage/config-loader');
66
61
 
67
62
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
68
63
 
69
64
  var chalk__default = /*#__PURE__*/_interopDefaultCompat(chalk);
70
65
 
66
+ function isValidUrl(url) {
67
+ try {
68
+ new URL(url);
69
+ return true;
70
+ } catch {
71
+ return false;
72
+ }
73
+ }
74
+
71
75
  async function command(opts) {
72
76
  const role$1 = await role.findRoleFromCommand(opts);
73
77
  if (role$1 === "frontend" || role$1 === "backend") {
74
78
  const configPaths = opts.config.map((arg) => {
75
- if (config.isValidUrl(arg)) {
79
+ if (isValidUrl(arg)) {
76
80
  return arg;
77
81
  }
78
82
  return index.paths.resolveTarget(arg);
@@ -122,4 +126,4 @@ async function command(opts) {
122
126
  }
123
127
 
124
128
  exports.command = command;
125
- //# sourceMappingURL=index-D6bTzT6C.cjs.js.map
129
+ //# sourceMappingURL=index-B8Ebu0mP.cjs.js.map
@@ -47,13 +47,13 @@ class NotFoundError extends CustomError {
47
47
 
48
48
  const paths = cliCommon.findPaths(__dirname);
49
49
 
50
- var version$f = "0.23.3";
50
+ var version$f = "0.23.4-next.0";
51
51
 
52
- var version$e = "0.7.0";
52
+ var version$e = "0.7.1-next.0";
53
53
 
54
- var version$d = "0.4.4";
54
+ var version$d = "0.4.5-next.0";
55
55
 
56
- var version$c = "0.26.11";
56
+ var version$c = "0.27.0-next.0";
57
57
  var dependencies = {
58
58
  "@backstage/catalog-model": "workspace:^",
59
59
  "@backstage/cli-common": "workspace:^",
@@ -206,25 +206,25 @@ var devDependencies = {
206
206
 
207
207
  var version$b = "1.2.0";
208
208
 
209
- var version$a = "1.14.0";
209
+ var version$a = "1.14.1-next.0";
210
210
 
211
- var version$9 = "0.14.9";
211
+ var version$9 = "0.14.10-next.0";
212
212
 
213
213
  var version$8 = "1.9.3";
214
214
 
215
- var version$7 = "1.0.35";
215
+ var version$7 = "1.0.36-next.0";
216
216
 
217
- var version$6 = "1.5.8";
217
+ var version$6 = "1.5.9-next.0";
218
218
 
219
- var version$5 = "0.4.8";
219
+ var version$5 = "0.4.9-next.0";
220
220
 
221
- var version$4 = "0.22.9";
221
+ var version$4 = "0.22.10-next.0";
222
222
 
223
- var version$3 = "0.1.8";
223
+ var version$3 = "0.1.9-next.0";
224
224
 
225
225
  var version$2 = "0.5.6";
226
226
 
227
- var version$1 = "0.4.0";
227
+ var version$1 = "0.4.2-next.0";
228
228
 
229
229
  const packageVersions = {
230
230
  "@backstage/backend-common": version$f,
@@ -290,7 +290,7 @@ const configOption = [
290
290
  Array()
291
291
  ];
292
292
  function registerOnboardCommand(program) {
293
- program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-Do6EL2Yb.cjs.js'); }).then((m) => m.command)));
293
+ program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-1VtfY6wb.cjs.js'); }).then((m) => m.command)));
294
294
  }
295
295
  function registerRepoCommand(program) {
296
296
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
@@ -302,7 +302,7 @@ function registerRepoCommand(program) {
302
302
  ).option(
303
303
  "--since <ref>",
304
304
  "Only build packages and their dev dependents that changed since the specified ref"
305
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-DwlXzIpR.cjs.js'); }).then((m) => m.command)));
305
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-D5DoFqm6.cjs.js'); }).then((m) => m.command)));
306
306
  command.command("lint").description("Lint all packages in the project").option(
307
307
  "--format <format>",
308
308
  "Lint report output format",
@@ -310,17 +310,17 @@ function registerRepoCommand(program) {
310
310
  ).option(
311
311
  "--since <ref>",
312
312
  "Only lint packages that changed since the specified ref"
313
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-6Ua9puez.cjs.js'); }).then((m) => m.command)));
313
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-EJvdRB7_.cjs.js'); }).then((m) => m.command)));
314
314
  command.command("fix").description("Automatically fix packages in the project").option(
315
315
  "--publish",
316
316
  "Enable additional fixes that only apply when publishing packages"
317
317
  ).option(
318
318
  "--check",
319
319
  "Fail if any packages would have been changed by the command"
320
- ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-BoMIpogO.cjs.js'); }).then((m) => m.command)));
321
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-Cn9pRgoI.cjs.js'); }).then((m) => m.command)));
320
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-C7T4cvOB.cjs.js'); }).then((m) => m.command)));
321
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-DlsJGDLw.cjs.js'); }).then((m) => m.command)));
322
322
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
323
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-DNYfBnHZ.cjs.js'); }).then((m) => m.command))
323
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-COfvNjrB.cjs.js'); }).then((m) => m.command))
324
324
  );
325
325
  command.command("test").allowUnknownOption(true).option(
326
326
  "--since <ref>",
@@ -328,14 +328,14 @@ function registerRepoCommand(program) {
328
328
  ).option(
329
329
  "--jest-help",
330
330
  "Show help for Jest CLI options, which are passed through"
331
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-CyF0ge7_.cjs.js'); }).then((m) => m.command)));
331
+ ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-y8AV0JOP.cjs.js'); }).then((m) => m.command)));
332
332
  }
333
333
  function registerScriptCommand(program) {
334
334
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
335
335
  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(
336
336
  "--inspect-brk [host]",
337
337
  "Enable debugger in Node.js environments, breaking before code starts"
338
- ).option("--require <path>", "Add a --require argument to the node process").action(lazy(() => Promise.resolve().then(function () { return require('./index-nl4fBJN1.cjs.js'); }).then((m) => m.command)));
338
+ ).option("--require <path>", "Add a --require argument to the node process").action(lazy(() => Promise.resolve().then(function () { return require('./index-Bu7Vqly9.cjs.js'); }).then((m) => m.command)));
339
339
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
340
340
  "--minify",
341
341
  "Minify the generated code. Does not apply to app package (app is minified by default)."
@@ -350,30 +350,30 @@ function registerScriptCommand(program) {
350
350
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
351
351
  (opt, opts) => opts ? [...opts, opt] : [opt],
352
352
  Array()
353
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-D6bTzT6C.cjs.js'); }).then((m) => m.command)));
353
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-B8Ebu0mP.cjs.js'); }).then((m) => m.command)));
354
354
  command.command("lint [directories...]").option(
355
355
  "--format <format>",
356
356
  "Lint report output format",
357
357
  "eslint-formatter-friendly"
358
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-DmKqylEy.cjs.js'); }).then((m) => m.default)));
359
- 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-CTXtMelk.cjs.js'); }).then((m) => m.default)));
360
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-Bev614vS.cjs.js'); }).then((m) => m.default)));
361
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-5if7U6_6.cjs.js'); }).then((m) => m.pre)));
362
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-5if7U6_6.cjs.js'); }).then((m) => m.post)));
358
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-CRqMLZJ5.cjs.js'); }).then((m) => m.default)));
359
+ 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-303IpaqN.cjs.js'); }).then((m) => m.default)));
360
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-CB6dTqaG.cjs.js'); }).then((m) => m.default)));
361
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-BcxxlYor.cjs.js'); }).then((m) => m.pre)));
362
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-BcxxlYor.cjs.js'); }).then((m) => m.post)));
363
363
  }
364
364
  function registerMigrateCommand(program) {
365
365
  const command = program.command("migrate [command]").description("Migration utilities");
366
- 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-CBF_rIK0.cjs.js'); }).then((m) => m.default)));
366
+ 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-BeuvccV9.cjs.js'); }).then((m) => m.default)));
367
367
  command.command("package-scripts").description("Set package scripts according to each package role").action(
368
368
  lazy(() => Promise.resolve().then(function () { return require('./packageScripts-DX6dilK6.cjs.js'); }).then((m) => m.command))
369
369
  );
370
370
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
371
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-Ddqkury2.cjs.js'); }).then((m) => m.command))
371
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-FpoAU1Be.cjs.js'); }).then((m) => m.command))
372
372
  );
373
373
  command.command("package-lint-configs").description(
374
374
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
375
375
  ).action(
376
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-CrhcoEVX.cjs.js'); }).then((m) => m.command))
376
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-D7LMvTow.cjs.js'); }).then((m) => m.command))
377
377
  );
378
378
  command.command("react-router-deps").description(
379
379
  "Migrates the react-router dependencies for all packages to be peer dependencies"
@@ -398,7 +398,7 @@ function registerCommands(program) {
398
398
  ).option(
399
399
  "--baseVersion <version>",
400
400
  "The version to use for any new packages (default: 0.1.0)"
401
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-WebKpNSz.cjs.js'); }).then((m) => m.default)));
401
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-DB_oe66E.cjs.js'); }).then((m) => m.default)));
402
402
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
403
403
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
404
404
  ).option(
@@ -412,30 +412,30 @@ function registerCommands(program) {
412
412
  ).option("--scope <scope>", "The scope to use for new packages").option(
413
413
  "--npm-registry <URL>",
414
414
  "The package registry to use for new packages"
415
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-WebKpNSz.cjs.js'); }).then((m) => m.default)));
415
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-DB_oe66E.cjs.js'); }).then((m) => m.default)));
416
416
  program.command("create-plugin", { hidden: true }).option(
417
417
  "--backend",
418
418
  "Create plugin with the backend dependencies as default"
419
419
  ).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(
420
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-Dp_zJ1vU.cjs.js'); }).then((m) => m.default))
420
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-CUOGhq6P.cjs.js'); }).then((m) => m.default))
421
421
  );
422
422
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
423
423
  "Diff an existing plugin with the creation template [DEPRECATED]"
424
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-SflPPir6.cjs.js'); }).then((m) => m.default)));
424
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-BaiaASdN.cjs.js'); }).then((m) => m.default)));
425
425
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
426
426
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
427
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-CTXtMelk.cjs.js'); }).then((m) => m.default)));
427
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-303IpaqN.cjs.js'); }).then((m) => m.default)));
428
428
  program.command("config:docs").option(
429
429
  "--package <name>",
430
430
  "Only include the schema that applies to the given package"
431
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-B0MlNQaZ.cjs.js'); }).then((m) => m.default)));
431
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-D8vejOxE.cjs.js'); }).then((m) => m.default)));
432
432
  program.command("config:print").option(
433
433
  "--package <name>",
434
434
  "Only load config schema that applies to the given package"
435
435
  ).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(
436
436
  "--format <format>",
437
437
  "Format to print the configuration in, either json or yaml [yaml]"
438
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-Caq1MMDY.cjs.js'); }).then((m) => m.default)));
438
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-DuJqsJ2y.cjs.js'); }).then((m) => m.default)));
439
439
  program.command("config:check").option(
440
440
  "--package <name>",
441
441
  "Only load config schema that applies to the given package"
@@ -444,14 +444,14 @@ function registerCommands(program) {
444
444
  "Enable strict config validation, forbidding errors and unknown keys"
445
445
  ).option(...configOption).description(
446
446
  "Validate that the given configuration loads and matches schema"
447
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-CPunUthn.cjs.js'); }).then((m) => m.default)));
447
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-DZJIL6CK.cjs.js'); }).then((m) => m.default)));
448
448
  program.command("config:schema").option(
449
449
  "--package <name>",
450
450
  "Only output config schema that applies to the given package"
451
451
  ).option(
452
452
  "--format <format>",
453
453
  "Format to print the schema in, either json or yaml [yaml]"
454
- ).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-CXKpYRvf.cjs.js'); }).then((m) => m.default)));
454
+ ).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-CR794PHv.cjs.js'); }).then((m) => m.default)));
455
455
  registerRepoCommand(program);
456
456
  registerScriptCommand(program);
457
457
  registerMigrateCommand(program);
@@ -463,8 +463,8 @@ function registerCommands(program) {
463
463
  "--release <version|next|main>",
464
464
  "Bump to a specific Backstage release line or version",
465
465
  "main"
466
- ).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-b90k9Vrg.cjs.js'); }).then(function (n) { return n.bump; }).then((m) => m.default)));
467
- 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-CCzUmZcU.cjs.js'); }).then((m) => m.default)));
466
+ ).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-Qc4jNLOA.cjs.js'); }).then(function (n) { return n.bump; }).then((m) => m.default)));
467
+ 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)));
468
468
  program.command("versions:migrate").option(
469
469
  "--pattern <glob>",
470
470
  "Override glob for matching packages to upgrade"
@@ -473,18 +473,18 @@ function registerCommands(program) {
473
473
  "Skip code changes and only update package.json files"
474
474
  ).description(
475
475
  "Migrate any plugins that have been moved to the @backstage-community namespace automatically"
476
- ).action(lazy(() => Promise.resolve().then(function () { return require('./bump-b90k9Vrg.cjs.js'); }).then(function (n) { return n.migrate; }).then((m) => m.default)));
477
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-Bev614vS.cjs.js'); }).then((m) => m.default)));
476
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./bump-Qc4jNLOA.cjs.js'); }).then(function (n) { return n.migrate; }).then((m) => m.default)));
477
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-CB6dTqaG.cjs.js'); }).then((m) => m.default)));
478
478
  program.command("build-workspace <workspace-dir> [packages...]").option(
479
479
  "--alwaysYarnPack",
480
480
  "Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
481
- ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-D95Cv1QN.cjs.js'); }).then((m) => m.default)));
482
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-JoytU5ZM.cjs.js'); }).then((m) => m.default)));
483
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-BRPLyhql.cjs.js'); }).then((m) => m.default)));
481
+ ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-Z-hpJt9g.cjs.js'); }).then((m) => m.default)));
482
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-F8W-9gIc.cjs.js'); }).then((m) => m.default)));
483
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-D_IhL0i0.cjs.js'); }).then((m) => m.default)));
484
484
  program.command("install [plugin-id]", { hidden: true }).option(
485
485
  "--from <packageJsonFilePath>",
486
486
  "Install from a local package.json containing the installation recipe"
487
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-DBTY3GMv.cjs.js'); }).then((m) => m.default)));
487
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-DGaf_UuL.cjs.js'); }).then((m) => m.default)));
488
488
  }
489
489
  function lazy(getActionFunc) {
490
490
  return async (...args) => {
@@ -528,4 +528,4 @@ exports.devDependencies = devDependencies;
528
528
  exports.paths = paths;
529
529
  exports.version = version;
530
530
  exports.version$1 = version$c;
531
- //# sourceMappingURL=index-7vT98W4X.cjs.js.map
531
+ //# sourceMappingURL=index-BAcLy7dK.cjs.js.map