@backstage/cli 0.26.11-next.1 → 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 (49) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/config/eslint-factory.js +1 -0
  3. package/dist/cjs/Lockfile-B4mqBkH6.cjs.js +86 -0
  4. package/dist/cjs/{build-fqzNfqa5.cjs.js → build-D5DoFqm6.cjs.js} +9 -13
  5. package/dist/cjs/{buildBackend-CrQ_GwBs.cjs.js → buildBackend-UK6nC6VL.cjs.js} +41 -38
  6. package/dist/cjs/{buildWorkspace-Bv-xt2y-.cjs.js → buildWorkspace-Z-hpJt9g.cjs.js} +4 -4
  7. package/dist/cjs/{bump-DG3jcOMS.cjs.js → bump-Qc4jNLOA.cjs.js} +7 -84
  8. package/dist/cjs/{clean-BGNU8ShE.cjs.js → clean-CB6dTqaG.cjs.js} +2 -2
  9. package/dist/cjs/{clean-83xjoKEJ.cjs.js → clean-DlsJGDLw.cjs.js} +2 -2
  10. package/dist/cjs/{codeowners-B-nGMoIG.cjs.js → codeowners-0MT7UP_S.cjs.js} +2 -2
  11. package/dist/cjs/{config-eLDUbNFK.cjs.js → config-B1bkp-HP.cjs.js} +43 -35
  12. package/dist/cjs/{createDistWorkspace-vhWGDizr.cjs.js → createDistWorkspace-0v54ePDJ.cjs.js} +3 -3
  13. package/dist/cjs/{createPlugin-B1qnN0IC.cjs.js → createPlugin-CUOGhq6P.cjs.js} +6 -6
  14. package/dist/cjs/{diff-BU6vhJMf.cjs.js → diff-BaiaASdN.cjs.js} +2 -2
  15. package/dist/cjs/{docs-GJmQNVkJ.cjs.js → docs-D8vejOxE.cjs.js} +3 -3
  16. package/dist/cjs/{fix-BhwlcHp_.cjs.js → fix-C7T4cvOB.cjs.js} +2 -2
  17. package/dist/cjs/{index-CTTm1_x6.cjs.js → index-1VtfY6wb.cjs.js} +4 -4
  18. package/dist/cjs/{index-CYI5nGsH.cjs.js → index-B8Ebu0mP.cjs.js} +38 -16
  19. package/dist/cjs/{index-DX-m2Ed0.cjs.js → index-BAcLy7dK.cjs.js} +48 -47
  20. package/dist/cjs/{index-pTrNn6sL.cjs.js → index-Bu7Vqly9.cjs.js} +50 -63
  21. package/dist/cjs/{index-D8nglRxA.cjs.js → index-F8W-9gIc.cjs.js} +2 -2
  22. package/dist/cjs/{info-CSiHnHqF.cjs.js → info-D_IhL0i0.cjs.js} +4 -4
  23. package/dist/cjs/{install-C6PA5oT4.cjs.js → install-DGaf_UuL.cjs.js} +5 -5
  24. package/dist/cjs/{lint-yikicfA4.cjs.js → lint-CRqMLZJ5.cjs.js} +2 -2
  25. package/dist/cjs/lint-Dkx_fBkS.cjs.js +10 -0
  26. package/dist/cjs/{lint-D0v-Gi6H.cjs.js → lint-EJvdRB7_.cjs.js} +2 -2
  27. package/dist/cjs/{list-deprecations-Coko6Rsb.cjs.js → list-deprecations-COfvNjrB.cjs.js} +2 -2
  28. package/dist/cjs/{packageDetection-B6lJYBh9.cjs.js → moduleFederation-CQZbFAit.cjs.js} +179 -38
  29. package/dist/cjs/{new-Da1kvXDQ.cjs.js → new-DB_oe66E.cjs.js} +6 -6
  30. package/dist/cjs/{pack-D8b4JM6B.cjs.js → pack-BcxxlYor.cjs.js} +2 -2
  31. package/dist/cjs/{packageExports-DDff9ia4.cjs.js → packageExports-FpoAU1Be.cjs.js} +3 -3
  32. package/dist/cjs/{packageLintConfigs-Bfvzg--7.cjs.js → packageLintConfigs-D7LMvTow.cjs.js} +3 -3
  33. package/dist/cjs/{packageRole-CXerjPpL.cjs.js → packageRole-BeuvccV9.cjs.js} +2 -2
  34. package/dist/cjs/{packages-BgyW9VKx.cjs.js → packages-DPPEGYIi.cjs.js} +3 -3
  35. package/dist/cjs/{print-C5tbwB1-.cjs.js → print-DuJqsJ2y.cjs.js} +3 -3
  36. package/dist/cjs/{role-BjmWpqH5.cjs.js → role-DAaP4LE5.cjs.js} +2 -2
  37. package/dist/cjs/{run-ClbD5HPt.cjs.js → run-CPcG7YxR.cjs.js} +2 -2
  38. package/dist/cjs/{schema-DbqftE60.cjs.js → schema-CR794PHv.cjs.js} +3 -3
  39. package/dist/cjs/{tasks-XfFuuYgf.cjs.js → tasks-4L8FqWEM.cjs.js} +2 -2
  40. package/dist/cjs/{test-BYKGLz-_.cjs.js → test-303IpaqN.cjs.js} +3 -3
  41. package/dist/cjs/{test-BEyXOT0e.cjs.js → test-y8AV0JOP.cjs.js} +3 -3
  42. package/dist/cjs/{validate-D4vVgxsi.cjs.js → validate-DZJIL6CK.cjs.js} +3 -3
  43. package/dist/index.cjs.js +1 -1
  44. package/package.json +12 -11
  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/templates/default-plugin/src/components/ExampleComponent/ExampleComponent.test.tsx.hbs +2 -2
  48. package/dist/cjs/Lockfile-BndFvzHc.cjs.js +0 -221
  49. package/dist/cjs/lint-DqMGmvsS.cjs.js +0 -112
@@ -2,26 +2,11 @@
2
2
 
3
3
  var configLoader = require('@backstage/config-loader');
4
4
  var config = require('@backstage/config');
5
- var index = require('./index-DX-m2Ed0.cjs.js');
5
+ var index = require('./index-BAcLy7dK.cjs.js');
6
6
  var getPackages = require('@manypkg/get-packages');
7
7
  var cliNode = require('@backstage/cli-node');
8
8
 
9
- function isValidUrl(url) {
10
- try {
11
- new URL(url);
12
- return true;
13
- } catch {
14
- return false;
15
- }
16
- }
17
-
18
9
  async function loadCliConfig(options) {
19
- const configTargets = [];
20
- options.args.forEach((arg) => {
21
- if (!isValidUrl(arg)) {
22
- configTargets.push({ path: index.paths.resolveTarget(arg) });
23
- }
24
- });
25
10
  const { packages } = await getPackages.getPackages(index.paths.targetDir);
26
11
  let localPackageNames;
27
12
  if (options.fromPackage) {
@@ -47,26 +32,50 @@ async function loadCliConfig(options) {
47
32
  packagePaths: [index.paths.resolveTargetRoot("package.json")],
48
33
  noUndeclaredProperties: options.strict
49
34
  });
50
- const { appConfigs } = await configLoader.loadConfig({
51
- experimentalEnvFunc: options.mockEnv ? async (name) => process.env[name] || "x" : void 0,
52
- configRoot: index.paths.targetRoot,
53
- configTargets,
54
- watch: options.watch && {
55
- onChange(newAppConfigs) {
56
- const newFrontendAppConfigs = schema.process(newAppConfigs, {
57
- visibility: options.fullVisibility ? ["frontend", "backend", "secret"] : ["frontend"],
58
- withFilteredKeys: options.withFilteredKeys,
59
- withDeprecatedKeys: options.withDeprecatedKeys,
60
- ignoreSchemaErrors: !options.strict
61
- });
62
- options.watch?.(newFrontendAppConfigs);
35
+ const source = configLoader.ConfigSources.default({
36
+ allowMissingDefaultConfig: true,
37
+ substitutionFunc: options.mockEnv ? async (name) => process.env[name] || "x" : void 0,
38
+ watch: Boolean(options.watch),
39
+ rootDir: index.paths.targetRoot,
40
+ argv: options.args
41
+ });
42
+ const appConfigs = await new Promise((resolve, reject) => {
43
+ async function loadConfigReaderLoop() {
44
+ let loaded = false;
45
+ try {
46
+ const abortController = new AbortController();
47
+ for await (const { configs } of source.readConfigData({
48
+ signal: abortController.signal
49
+ })) {
50
+ if (loaded) {
51
+ const newFrontendAppConfigs = schema.process(configs, {
52
+ visibility: options.fullVisibility ? ["frontend", "backend", "secret"] : ["frontend"],
53
+ withFilteredKeys: options.withFilteredKeys,
54
+ withDeprecatedKeys: options.withDeprecatedKeys,
55
+ ignoreSchemaErrors: !options.strict
56
+ });
57
+ options.watch?.(newFrontendAppConfigs);
58
+ } else {
59
+ resolve(configs);
60
+ loaded = true;
61
+ if (!options.watch) {
62
+ abortController.abort();
63
+ }
64
+ }
65
+ }
66
+ } catch (error) {
67
+ if (loaded) {
68
+ console.error(`Failed to reload configuration, ${error}`);
69
+ } else {
70
+ reject(error);
71
+ }
63
72
  }
64
73
  }
74
+ loadConfigReaderLoop();
65
75
  });
66
- process.stderr.write(
67
- `Loaded config from ${appConfigs.map((c) => c.context).join(", ")}
68
- `
69
- );
76
+ const configurationLoadedMessage = appConfigs.length ? `Loaded config from ${appConfigs.map((c) => c.context).join(", ")}` : `No configuration files found, running without config`;
77
+ process.stderr.write(`${configurationLoadedMessage}
78
+ `);
70
79
  try {
71
80
  const frontendAppConfigs = schema.process(appConfigs, {
72
81
  visibility: options.fullVisibility ? ["frontend", "backend", "secret"] : ["frontend"],
@@ -95,6 +104,5 @@ async function loadCliConfig(options) {
95
104
  }
96
105
  }
97
106
 
98
- exports.isValidUrl = isValidUrl;
99
107
  exports.loadCliConfig = loadCliConfig;
100
- //# sourceMappingURL=config-eLDUbNFK.cjs.js.map
108
+ //# sourceMappingURL=config-B1bkp-HP.cjs.js.map
@@ -7,8 +7,8 @@ var pLimit = require('p-limit');
7
7
  var os = require('os');
8
8
  var tar = require('tar');
9
9
  var partition = require('lodash/partition');
10
- var index = require('./index-DX-m2Ed0.cjs.js');
11
- var run = require('./run-ClbD5HPt.cjs.js');
10
+ var index = require('./index-BAcLy7dK.cjs.js');
11
+ var run = require('./run-CPcG7YxR.cjs.js');
12
12
  var rollup = require('rollup');
13
13
  var commonjs = require('@rollup/plugin-commonjs');
14
14
  var resolve = require('@rollup/plugin-node-resolve');
@@ -560,4 +560,4 @@ exports.buildPackage = buildPackage;
560
560
  exports.buildPackages = buildPackages;
561
561
  exports.createDistWorkspace = createDistWorkspace;
562
562
  exports.getOutputsForRole = getOutputsForRole;
563
- //# sourceMappingURL=createDistWorkspace-vhWGDizr.cjs.js.map
563
+ //# sourceMappingURL=createDistWorkspace-0v54ePDJ.cjs.js.map
@@ -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-B-nGMoIG.cjs.js');
14
- var index = require('./index-DX-m2Ed0.cjs.js');
15
- var tasks = require('./tasks-XfFuuYgf.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-ClbD5HPt.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-B1qnN0IC.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-DX-m2Ed0.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-BU6vhJMf.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-eLDUbNFK.cjs.js');
5
+ var config = require('./config-B1bkp-HP.cjs.js');
6
6
  require('@backstage/config');
7
- require('./index-DX-m2Ed0.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-GJmQNVkJ.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-DX-m2Ed0.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-BhwlcHp_.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-XfFuuYgf.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-eLDUbNFK.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-DX-m2Ed0.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-CTTm1_x6.cjs.js.map
1027
+ //# sourceMappingURL=index-1VtfY6wb.cjs.js.map
@@ -1,19 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var createDistWorkspace = require('./createDistWorkspace-vhWGDizr.cjs.js');
4
- var role = require('./role-BjmWpqH5.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-DX-m2Ed0.cjs.js');
7
- var buildBackend = require('./buildBackend-CrQ_GwBs.cjs.js');
8
- var config = require('./config-eLDUbNFK.cjs.js');
9
- require('chalk');
6
+ var index = require('./index-BAcLy7dK.cjs.js');
7
+ var buildBackend = require('./buildBackend-UK6nC6VL.cjs.js');
8
+ var chalk = require('chalk');
10
9
  require('fs-extra');
11
10
  require('path');
12
11
  require('p-limit');
13
12
  require('os');
14
13
  require('tar');
15
14
  require('lodash/partition');
16
- require('./run-ClbD5HPt.cjs.js');
15
+ require('./run-CPcG7YxR.cjs.js');
17
16
  require('child_process');
18
17
  require('util');
19
18
  require('@backstage/errors');
@@ -40,34 +39,44 @@ require('webpack');
40
39
  require('eslint-webpack-plugin');
41
40
  require('fork-ts-checker-webpack-plugin');
42
41
  require('html-webpack-plugin');
42
+ require('@module-federation/enhanced/webpack');
43
43
  require('react-dev-utils/ModuleScopePlugin');
44
44
  require('run-script-webpack-plugin');
45
+ require('@pmmmwh/react-refresh-webpack-plugin');
45
46
  require('@manypkg/get-packages');
46
47
  require('webpack-node-externals');
47
- require('./packageDetection-B6lJYBh9.cjs.js');
48
+ require('./moduleFederation-CQZbFAit.cjs.js');
48
49
  require('lodash/pickBy');
49
50
  require('mini-css-extract-plugin');
50
- require('@pmmmwh/react-refresh-webpack-plugin');
51
51
  require('yn');
52
52
  require('@backstage/config');
53
53
  require('chokidar');
54
54
  require('p-queue');
55
55
  require('react-dev-utils/FileSizeReporter');
56
56
  require('react-dev-utils/formatWebpackMessages');
57
- require('lodash/uniq');
58
57
  require('react-dev-utils/openBrowser');
59
58
  require('webpack-dev-server');
60
- require('@yarnpkg/parsers');
61
- require('@yarnpkg/lockfile');
62
- require('minimatch');
63
- require('./yarn-Ukl9MOS0.cjs.js');
59
+ require('./config-B1bkp-HP.cjs.js');
64
60
  require('@backstage/config-loader');
65
61
 
62
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
63
+
64
+ var chalk__default = /*#__PURE__*/_interopDefaultCompat(chalk);
65
+
66
+ function isValidUrl(url) {
67
+ try {
68
+ new URL(url);
69
+ return true;
70
+ } catch {
71
+ return false;
72
+ }
73
+ }
74
+
66
75
  async function command(opts) {
67
76
  const role$1 = await role.findRoleFromCommand(opts);
68
77
  if (role$1 === "frontend" || role$1 === "backend") {
69
78
  const configPaths = opts.config.map((arg) => {
70
- if (config.isValidUrl(arg)) {
79
+ if (isValidUrl(arg)) {
71
80
  return arg;
72
81
  }
73
82
  return index.paths.resolveTarget(arg);
@@ -86,6 +95,19 @@ async function command(opts) {
86
95
  minify: Boolean(opts.minify)
87
96
  });
88
97
  }
98
+ if (role$1 === "frontend-dynamic-container") {
99
+ console.log(
100
+ chalk__default.default.yellow(
101
+ `\u26A0\uFE0F WARNING: The 'frontend-dynamic-container' package role is experimental and will receive immediate breaking changes in the future.`
102
+ )
103
+ );
104
+ return buildBackend.buildFrontend({
105
+ targetDir: index.paths.targetDir,
106
+ configPaths: [],
107
+ writeStats: Boolean(opts.stats),
108
+ isModuleFederationRemote: true
109
+ });
110
+ }
89
111
  const roleInfo = cliNode.PackageRoles.getRoleInfo(role$1);
90
112
  const outputs = /* @__PURE__ */ new Set();
91
113
  if (roleInfo.output.includes("cjs")) {
@@ -104,4 +126,4 @@ async function command(opts) {
104
126
  }
105
127
 
106
128
  exports.command = command;
107
- //# sourceMappingURL=index-CYI5nGsH.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-next.1";
50
+ var version$f = "0.23.4-next.0";
51
51
 
52
- var version$e = "0.6.22-next.1";
52
+ var version$e = "0.7.1-next.0";
53
53
 
54
- var version$d = "0.4.4-next.1";
54
+ var version$d = "0.4.5-next.0";
55
55
 
56
- var version$c = "0.26.11-next.1";
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:^",
@@ -66,6 +66,7 @@ var dependencies = {
66
66
  "@backstage/release-manifests": "workspace:^",
67
67
  "@backstage/types": "workspace:^",
68
68
  "@manypkg/get-packages": "^1.1.3",
69
+ "@module-federation/enhanced": "^0.1.19",
69
70
  "@octokit/graphql": "^5.0.0",
70
71
  "@octokit/graphql-schema": "^13.7.0",
71
72
  "@octokit/oauth-app": "^4.2.0",
@@ -205,25 +206,25 @@ var devDependencies = {
205
206
 
206
207
  var version$b = "1.2.0";
207
208
 
208
- var version$a = "1.13.1-next.1";
209
+ var version$a = "1.14.1-next.0";
209
210
 
210
- var version$9 = "0.14.9-next.0";
211
+ var version$9 = "0.14.10-next.0";
211
212
 
212
213
  var version$8 = "1.9.3";
213
214
 
214
- var version$7 = "1.0.35-next.1";
215
+ var version$7 = "1.0.36-next.0";
215
216
 
216
- var version$6 = "1.5.8-next.1";
217
+ var version$6 = "1.5.9-next.0";
217
218
 
218
- var version$5 = "0.4.8-next.1";
219
+ var version$5 = "0.4.9-next.0";
219
220
 
220
- var version$4 = "0.22.9-next.1";
221
+ var version$4 = "0.22.10-next.0";
221
222
 
222
- var version$3 = "0.1.8-next.1";
223
+ var version$3 = "0.1.9-next.0";
223
224
 
224
225
  var version$2 = "0.5.6";
225
226
 
226
- var version$1 = "0.3.4-next.1";
227
+ var version$1 = "0.4.2-next.0";
227
228
 
228
229
  const packageVersions = {
229
230
  "@backstage/backend-common": version$f,
@@ -289,7 +290,7 @@ const configOption = [
289
290
  Array()
290
291
  ];
291
292
  function registerOnboardCommand(program) {
292
- program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-CTTm1_x6.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)));
293
294
  }
294
295
  function registerRepoCommand(program) {
295
296
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
@@ -301,7 +302,7 @@ function registerRepoCommand(program) {
301
302
  ).option(
302
303
  "--since <ref>",
303
304
  "Only build packages and their dev dependents that changed since the specified ref"
304
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-fqzNfqa5.cjs.js'); }).then((m) => m.command)));
305
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-D5DoFqm6.cjs.js'); }).then((m) => m.command)));
305
306
  command.command("lint").description("Lint all packages in the project").option(
306
307
  "--format <format>",
307
308
  "Lint report output format",
@@ -309,17 +310,17 @@ function registerRepoCommand(program) {
309
310
  ).option(
310
311
  "--since <ref>",
311
312
  "Only lint packages that changed since the specified ref"
312
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-D0v-Gi6H.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)));
313
314
  command.command("fix").description("Automatically fix packages in the project").option(
314
315
  "--publish",
315
316
  "Enable additional fixes that only apply when publishing packages"
316
317
  ).option(
317
318
  "--check",
318
319
  "Fail if any packages would have been changed by the command"
319
- ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-BhwlcHp_.cjs.js'); }).then((m) => m.command)));
320
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-83xjoKEJ.cjs.js'); }).then((m) => m.command)));
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)));
321
322
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
322
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-Coko6Rsb.cjs.js'); }).then((m) => m.command))
323
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-COfvNjrB.cjs.js'); }).then((m) => m.command))
323
324
  );
324
325
  command.command("test").allowUnknownOption(true).option(
325
326
  "--since <ref>",
@@ -327,14 +328,14 @@ function registerRepoCommand(program) {
327
328
  ).option(
328
329
  "--jest-help",
329
330
  "Show help for Jest CLI options, which are passed through"
330
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-BEyXOT0e.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)));
331
332
  }
332
333
  function registerScriptCommand(program) {
333
334
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
334
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(
335
336
  "--inspect-brk [host]",
336
337
  "Enable debugger in Node.js environments, breaking before code starts"
337
- ).option("--require <path>", "Add a --require argument to the node process").action(lazy(() => Promise.resolve().then(function () { return require('./index-pTrNn6sL.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)));
338
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(
339
340
  "--minify",
340
341
  "Minify the generated code. Does not apply to app package (app is minified by default)."
@@ -349,30 +350,30 @@ function registerScriptCommand(program) {
349
350
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
350
351
  (opt, opts) => opts ? [...opts, opt] : [opt],
351
352
  Array()
352
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-CYI5nGsH.cjs.js'); }).then((m) => m.command)));
353
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-B8Ebu0mP.cjs.js'); }).then((m) => m.command)));
353
354
  command.command("lint [directories...]").option(
354
355
  "--format <format>",
355
356
  "Lint report output format",
356
357
  "eslint-formatter-friendly"
357
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-yikicfA4.cjs.js'); }).then((m) => m.default)));
358
- command.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-BYKGLz-_.cjs.js'); }).then((m) => m.default)));
359
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-BGNU8ShE.cjs.js'); }).then((m) => m.default)));
360
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-D8b4JM6B.cjs.js'); }).then((m) => m.pre)));
361
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-D8b4JM6B.cjs.js'); }).then((m) => m.post)));
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)));
362
363
  }
363
364
  function registerMigrateCommand(program) {
364
365
  const command = program.command("migrate [command]").description("Migration utilities");
365
- command.command("package-roles").description(`Add package role field to packages that don't have it`).action(lazy(() => Promise.resolve().then(function () { return require('./packageRole-CXerjPpL.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)));
366
367
  command.command("package-scripts").description("Set package scripts according to each package role").action(
367
368
  lazy(() => Promise.resolve().then(function () { return require('./packageScripts-DX6dilK6.cjs.js'); }).then((m) => m.command))
368
369
  );
369
370
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
370
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-DDff9ia4.cjs.js'); }).then((m) => m.command))
371
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-FpoAU1Be.cjs.js'); }).then((m) => m.command))
371
372
  );
372
373
  command.command("package-lint-configs").description(
373
374
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
374
375
  ).action(
375
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-Bfvzg--7.cjs.js'); }).then((m) => m.command))
376
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-D7LMvTow.cjs.js'); }).then((m) => m.command))
376
377
  );
377
378
  command.command("react-router-deps").description(
378
379
  "Migrates the react-router dependencies for all packages to be peer dependencies"
@@ -397,7 +398,7 @@ function registerCommands(program) {
397
398
  ).option(
398
399
  "--baseVersion <version>",
399
400
  "The version to use for any new packages (default: 0.1.0)"
400
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-Da1kvXDQ.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)));
401
402
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
402
403
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
403
404
  ).option(
@@ -411,30 +412,30 @@ function registerCommands(program) {
411
412
  ).option("--scope <scope>", "The scope to use for new packages").option(
412
413
  "--npm-registry <URL>",
413
414
  "The package registry to use for new packages"
414
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-Da1kvXDQ.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)));
415
416
  program.command("create-plugin", { hidden: true }).option(
416
417
  "--backend",
417
418
  "Create plugin with the backend dependencies as default"
418
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(
419
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-B1qnN0IC.cjs.js'); }).then((m) => m.default))
420
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-CUOGhq6P.cjs.js'); }).then((m) => m.default))
420
421
  );
421
422
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
422
423
  "Diff an existing plugin with the creation template [DEPRECATED]"
423
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-BU6vhJMf.cjs.js'); }).then((m) => m.default)));
424
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-BaiaASdN.cjs.js'); }).then((m) => m.default)));
424
425
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
425
426
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
426
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-BYKGLz-_.cjs.js'); }).then((m) => m.default)));
427
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-303IpaqN.cjs.js'); }).then((m) => m.default)));
427
428
  program.command("config:docs").option(
428
429
  "--package <name>",
429
430
  "Only include the schema that applies to the given package"
430
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-GJmQNVkJ.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)));
431
432
  program.command("config:print").option(
432
433
  "--package <name>",
433
434
  "Only load config schema that applies to the given package"
434
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(
435
436
  "--format <format>",
436
437
  "Format to print the configuration in, either json or yaml [yaml]"
437
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-C5tbwB1-.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)));
438
439
  program.command("config:check").option(
439
440
  "--package <name>",
440
441
  "Only load config schema that applies to the given package"
@@ -443,14 +444,14 @@ function registerCommands(program) {
443
444
  "Enable strict config validation, forbidding errors and unknown keys"
444
445
  ).option(...configOption).description(
445
446
  "Validate that the given configuration loads and matches schema"
446
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-D4vVgxsi.cjs.js'); }).then((m) => m.default)));
447
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-DZJIL6CK.cjs.js'); }).then((m) => m.default)));
447
448
  program.command("config:schema").option(
448
449
  "--package <name>",
449
450
  "Only output config schema that applies to the given package"
450
451
  ).option(
451
452
  "--format <format>",
452
453
  "Format to print the schema in, either json or yaml [yaml]"
453
- ).option("--merge", "Print the config schemas merged", true).option("--no-merge", "Print the config schemas not merged").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-DbqftE60.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)));
454
455
  registerRepoCommand(program);
455
456
  registerScriptCommand(program);
456
457
  registerMigrateCommand(program);
@@ -462,8 +463,8 @@ function registerCommands(program) {
462
463
  "--release <version|next|main>",
463
464
  "Bump to a specific Backstage release line or version",
464
465
  "main"
465
- ).option("--skip-install", "Skips yarn install step").option("--skip-migrate", "Skips migration of any moved packages").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-DG3jcOMS.cjs.js'); }).then(function (n) { return n.bump; }).then((m) => m.default)));
466
- program.command("versions:check").option("--fix", "Fix any auto-fixable versioning problems").description("Check Backstage package versioning").action(lazy(() => Promise.resolve().then(function () { return require('./lint-DqMGmvsS.cjs.js'); }).then((m) => m.default)));
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)));
467
468
  program.command("versions:migrate").option(
468
469
  "--pattern <glob>",
469
470
  "Override glob for matching packages to upgrade"
@@ -472,18 +473,18 @@ function registerCommands(program) {
472
473
  "Skip code changes and only update package.json files"
473
474
  ).description(
474
475
  "Migrate any plugins that have been moved to the @backstage-community namespace automatically"
475
- ).action(lazy(() => Promise.resolve().then(function () { return require('./bump-DG3jcOMS.cjs.js'); }).then(function (n) { return n.migrate; }).then((m) => m.default)));
476
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-BGNU8ShE.cjs.js'); }).then((m) => m.default)));
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)));
477
478
  program.command("build-workspace <workspace-dir> [packages...]").option(
478
479
  "--alwaysYarnPack",
479
480
  "Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
480
- ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-Bv-xt2y-.cjs.js'); }).then((m) => m.default)));
481
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-D8nglRxA.cjs.js'); }).then((m) => m.default)));
482
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-CSiHnHqF.cjs.js'); }).then((m) => m.default)));
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)));
483
484
  program.command("install [plugin-id]", { hidden: true }).option(
484
485
  "--from <packageJsonFilePath>",
485
486
  "Install from a local package.json containing the installation recipe"
486
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-C6PA5oT4.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)));
487
488
  }
488
489
  function lazy(getActionFunc) {
489
490
  return async (...args) => {
@@ -527,4 +528,4 @@ exports.devDependencies = devDependencies;
527
528
  exports.paths = paths;
528
529
  exports.version = version;
529
530
  exports.version$1 = version$c;
530
- //# sourceMappingURL=index-DX-m2Ed0.cjs.js.map
531
+ //# sourceMappingURL=index-BAcLy7dK.cjs.js.map