@backstage/cli 0.27.0-next.0 → 0.27.0-next.2

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 (50) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/cjs/{build-D5DoFqm6.cjs.js → build-BSjbd5Xw.cjs.js} +7 -7
  3. package/dist/cjs/{buildBackend-UK6nC6VL.cjs.js → buildBackend-za-2G1ix.cjs.js} +6 -6
  4. package/dist/cjs/{buildWorkspace-Z-hpJt9g.cjs.js → buildWorkspace-DvXTk0Yg.cjs.js} +4 -4
  5. package/dist/cjs/{bump-Qc4jNLOA.cjs.js → bump-CyqFKJtk.cjs.js} +4 -4
  6. package/dist/cjs/{clean-DlsJGDLw.cjs.js → clean-C9681Yzb.cjs.js} +2 -2
  7. package/dist/cjs/{clean-CB6dTqaG.cjs.js → clean-HqYaVOg8.cjs.js} +2 -2
  8. package/dist/cjs/{codeowners-0MT7UP_S.cjs.js → codeowners-D3vGLy_u.cjs.js} +2 -2
  9. package/dist/cjs/{config-B1bkp-HP.cjs.js → config-D6YojNZ6.cjs.js} +3 -3
  10. package/dist/cjs/{createDistWorkspace-0v54ePDJ.cjs.js → createDistWorkspace-BeP8p77s.cjs.js} +3 -3
  11. package/dist/cjs/{createPlugin-CUOGhq6P.cjs.js → createPlugin-CDJyGSO5.cjs.js} +8 -6
  12. package/dist/cjs/{diff-BaiaASdN.cjs.js → diff-PCtwJv74.cjs.js} +2 -2
  13. package/dist/cjs/{docs-D8vejOxE.cjs.js → docs-S0srM3ep.cjs.js} +3 -3
  14. package/dist/cjs/{fix-C7T4cvOB.cjs.js → fix-BvYPEHp7.cjs.js} +2 -2
  15. package/dist/cjs/{index-BAcLy7dK.cjs.js → index-4h_-pTqt.cjs.js} +48 -45
  16. package/dist/cjs/{index-Bu7Vqly9.cjs.js → index-B0L90XFA.cjs.js} +6 -6
  17. package/dist/cjs/{index-F8W-9gIc.cjs.js → index-BHTw317L.cjs.js} +2 -2
  18. package/dist/cjs/{index-B8Ebu0mP.cjs.js → index-D4o5JTLh.cjs.js} +8 -8
  19. package/dist/cjs/{index-1VtfY6wb.cjs.js → index-SufUumpi.cjs.js} +4 -4
  20. package/dist/cjs/{info-D_IhL0i0.cjs.js → info-C4qK1T8Q.cjs.js} +3 -3
  21. package/dist/cjs/{install-DGaf_UuL.cjs.js → install-E9hQWFmb.cjs.js} +4 -4
  22. package/dist/cjs/{lint-EJvdRB7_.cjs.js → lint-BRATCOzQ.cjs.js} +2 -2
  23. package/dist/cjs/{lint-CRqMLZJ5.cjs.js → lint-DOhNCjkd.cjs.js} +2 -2
  24. package/dist/cjs/{list-deprecations-COfvNjrB.cjs.js → list-deprecations-CIEG38hh.cjs.js} +2 -2
  25. package/dist/cjs/{moduleFederation-CQZbFAit.cjs.js → moduleFederation-DmgimJJO.cjs.js} +5 -5
  26. package/dist/cjs/{new-DB_oe66E.cjs.js → new-BN-HqSa-.cjs.js} +25 -14
  27. package/dist/cjs/{pack-BcxxlYor.cjs.js → pack-BIz7Mm67.cjs.js} +2 -2
  28. package/dist/cjs/{packageExports-FpoAU1Be.cjs.js → packageExports-DiRMjYLN.cjs.js} +3 -3
  29. package/dist/cjs/{packageLintConfigs-D7LMvTow.cjs.js → packageLintConfigs-CPjCirWk.cjs.js} +3 -3
  30. package/dist/cjs/{packageRole-BeuvccV9.cjs.js → packageRole-D_JoRVEg.cjs.js} +2 -2
  31. package/dist/cjs/{packages-DPPEGYIi.cjs.js → packages-DYRn7sxJ.cjs.js} +3 -3
  32. package/dist/cjs/{print-DuJqsJ2y.cjs.js → print-DZpbThhj.cjs.js} +3 -3
  33. package/dist/cjs/{role-DAaP4LE5.cjs.js → role-2AT5V38Y.cjs.js} +2 -2
  34. package/dist/cjs/{run-CPcG7YxR.cjs.js → run-DfH1Wbgd.cjs.js} +2 -2
  35. package/dist/cjs/{schema-CR794PHv.cjs.js → schema-DOzm0S6j.cjs.js} +3 -3
  36. package/dist/cjs/{tasks-4L8FqWEM.cjs.js → tasks-GBCpBnph.cjs.js} +2 -2
  37. package/dist/cjs/{test-303IpaqN.cjs.js → test-BnBKEQxA.cjs.js} +3 -3
  38. package/dist/cjs/{test-y8AV0JOP.cjs.js → test-CPjGcZgc.cjs.js} +3 -3
  39. package/dist/cjs/{validate-DZJIL6CK.cjs.js → validate-DVP5oflD.cjs.js} +3 -3
  40. package/dist/index.cjs.js +1 -1
  41. package/package.json +8 -8
  42. package/templates/default-backend-module/package.json.hbs +1 -1
  43. package/templates/default-backend-plugin/package.json.hbs +1 -1
  44. package/templates/default-common-plugin-package/package.json.hbs +1 -1
  45. package/templates/default-node-plugin-package/package.json.hbs +1 -1
  46. package/templates/default-plugin/package.json.hbs +1 -1
  47. package/templates/default-react-plugin-package/package.json.hbs +1 -1
  48. package/templates/node-library-package/package.json.hbs +1 -1
  49. package/templates/scaffolder-module/package.json.hbs +1 -1
  50. package/templates/web-library-package/package.json.hbs +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # @backstage/cli
2
2
 
3
+ ## 0.27.0-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - b2d97fd: Fixing loading of additional config files with new `ConfigSources`
8
+ - adabb40: New command now supports setting package license
9
+ - Updated dependencies
10
+ - @backstage/catalog-model@1.5.0
11
+ - @backstage/cli-common@0.1.14
12
+ - @backstage/cli-node@0.2.7
13
+ - @backstage/config@1.2.0
14
+ - @backstage/config-loader@1.9.0-next.1
15
+ - @backstage/errors@1.2.4
16
+ - @backstage/eslint-plugin@0.1.8
17
+ - @backstage/integration@1.14.0-next.0
18
+ - @backstage/release-manifests@0.0.11
19
+ - @backstage/types@1.1.1
20
+
21
+ ## 0.27.0-next.1
22
+
23
+ ### Patch Changes
24
+
25
+ - e6e7d86: Switched the target from `'ES2022'` to `'es2022'` for better compatibility with older versions of `swc`.
26
+ - Updated dependencies
27
+ - @backstage/config-loader@1.9.0-next.1
28
+ - @backstage/integration@1.14.0-next.0
29
+ - @backstage/catalog-model@1.5.0
30
+ - @backstage/cli-common@0.1.14
31
+ - @backstage/cli-node@0.2.7
32
+ - @backstage/config@1.2.0
33
+ - @backstage/errors@1.2.4
34
+ - @backstage/eslint-plugin@0.1.8
35
+ - @backstage/release-manifests@0.0.11
36
+ - @backstage/types@1.1.1
37
+
3
38
  ## 0.27.0-next.0
4
39
 
5
40
  ### Minor Changes
@@ -2,17 +2,17 @@
2
2
 
3
3
  var chalk = require('chalk');
4
4
  var path = require('path');
5
- var createDistWorkspace = require('./createDistWorkspace-0v54ePDJ.cjs.js');
6
- var index = require('./index-BAcLy7dK.cjs.js');
5
+ var createDistWorkspace = require('./createDistWorkspace-BeP8p77s.cjs.js');
6
+ var index = require('./index-4h_-pTqt.cjs.js');
7
7
  var cliNode = require('@backstage/cli-node');
8
8
  var parallel = require('./parallel-BszNaKyc.cjs.js');
9
- var buildBackend = require('./buildBackend-UK6nC6VL.cjs.js');
9
+ var buildBackend = require('./buildBackend-za-2G1ix.cjs.js');
10
10
  require('fs-extra');
11
11
  require('p-limit');
12
12
  require('os');
13
13
  require('tar');
14
14
  require('lodash/partition');
15
- require('./run-CPcG7YxR.cjs.js');
15
+ require('./run-DfH1Wbgd.cjs.js');
16
16
  require('child_process');
17
17
  require('util');
18
18
  require('@backstage/errors');
@@ -44,7 +44,7 @@ require('run-script-webpack-plugin');
44
44
  require('@pmmmwh/react-refresh-webpack-plugin');
45
45
  require('@manypkg/get-packages');
46
46
  require('webpack-node-externals');
47
- require('./moduleFederation-CQZbFAit.cjs.js');
47
+ require('./moduleFederation-DmgimJJO.cjs.js');
48
48
  require('lodash/pickBy');
49
49
  require('mini-css-extract-plugin');
50
50
  require('yn');
@@ -55,7 +55,7 @@ require('react-dev-utils/FileSizeReporter');
55
55
  require('react-dev-utils/formatWebpackMessages');
56
56
  require('react-dev-utils/openBrowser');
57
57
  require('webpack-dev-server');
58
- require('./config-B1bkp-HP.cjs.js');
58
+ require('./config-D6YojNZ6.cjs.js');
59
59
  require('@backstage/config-loader');
60
60
 
61
61
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -189,4 +189,4 @@ async function command(opts, cmd) {
189
189
  }
190
190
 
191
191
  exports.command = command;
192
- //# sourceMappingURL=build-D5DoFqm6.cjs.js.map
192
+ //# sourceMappingURL=build-BSjbd5Xw.cjs.js.map
@@ -12,23 +12,23 @@ require('@backstage/cli-common');
12
12
  require('react-dev-utils/ModuleScopePlugin');
13
13
  require('run-script-webpack-plugin');
14
14
  require('@pmmmwh/react-refresh-webpack-plugin');
15
- require('./index-BAcLy7dK.cjs.js');
15
+ require('./index-4h_-pTqt.cjs.js');
16
16
  require('@manypkg/get-packages');
17
17
  require('webpack-node-externals');
18
- var moduleFederation = require('./moduleFederation-CQZbFAit.cjs.js');
18
+ var moduleFederation = require('./moduleFederation-DmgimJJO.cjs.js');
19
19
  require('lodash/pickBy');
20
- require('./run-CPcG7YxR.cjs.js');
20
+ require('./run-DfH1Wbgd.cjs.js');
21
21
  require('mini-css-extract-plugin');
22
22
  var yn = require('yn');
23
23
  var FileSizeReporter = require('react-dev-utils/FileSizeReporter');
24
24
  var formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
25
25
  require('react-dev-utils/openBrowser');
26
26
  require('webpack-dev-server');
27
- var config = require('./config-B1bkp-HP.cjs.js');
27
+ var config = require('./config-D6YojNZ6.cjs.js');
28
28
  var parallel = require('./parallel-BszNaKyc.cjs.js');
29
29
  var os = require('os');
30
30
  var tar = require('tar');
31
- var createDistWorkspace = require('./createDistWorkspace-0v54ePDJ.cjs.js');
31
+ var createDistWorkspace = require('./createDistWorkspace-BeP8p77s.cjs.js');
32
32
 
33
33
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
34
34
 
@@ -263,4 +263,4 @@ async function buildBackend(options) {
263
263
 
264
264
  exports.buildBackend = buildBackend;
265
265
  exports.buildFrontend = buildFrontend;
266
- //# sourceMappingURL=buildBackend-UK6nC6VL.cjs.js.map
266
+ //# sourceMappingURL=buildBackend-za-2G1ix.cjs.js.map
@@ -1,19 +1,19 @@
1
1
  'use strict';
2
2
 
3
3
  var fs = require('fs-extra');
4
- var createDistWorkspace = require('./createDistWorkspace-0v54ePDJ.cjs.js');
4
+ var createDistWorkspace = require('./createDistWorkspace-BeP8p77s.cjs.js');
5
5
  require('chalk');
6
6
  require('path');
7
7
  require('p-limit');
8
8
  require('os');
9
9
  require('tar');
10
10
  require('lodash/partition');
11
- require('./index-BAcLy7dK.cjs.js');
11
+ require('./index-4h_-pTqt.cjs.js');
12
12
  require('commander');
13
13
  require('semver');
14
14
  require('@backstage/cli-common');
15
15
  require('@backstage/errors');
16
- require('./run-CPcG7YxR.cjs.js');
16
+ require('./run-DfH1Wbgd.cjs.js');
17
17
  require('child_process');
18
18
  require('util');
19
19
  require('rollup');
@@ -49,4 +49,4 @@ var buildWorkspace = async (dir, packages, options) => {
49
49
  };
50
50
 
51
51
  exports.default = buildWorkspace;
52
- //# sourceMappingURL=buildWorkspace-Z-hpJt9g.cjs.js.map
52
+ //# sourceMappingURL=buildWorkspace-DvXTk0Yg.cjs.js.map
@@ -7,10 +7,10 @@ var ora = require('ora');
7
7
  var semver = require('semver');
8
8
  var errors = require('@backstage/errors');
9
9
  var path = require('path');
10
- var run = require('./run-CPcG7YxR.cjs.js');
11
- var index = require('./index-BAcLy7dK.cjs.js');
10
+ var run = require('./run-DfH1Wbgd.cjs.js');
11
+ var index = require('./index-4h_-pTqt.cjs.js');
12
12
  var Lockfile = require('./Lockfile-B4mqBkH6.cjs.js');
13
- var packages = require('./packages-DPPEGYIi.cjs.js');
13
+ var packages = require('./packages-DYRn7sxJ.cjs.js');
14
14
  var cliCommon = require('@backstage/cli-common');
15
15
  var parallel = require('./parallel-BszNaKyc.cjs.js');
16
16
  var releaseManifests = require('@backstage/release-manifests');
@@ -453,4 +453,4 @@ var bump$1 = /*#__PURE__*/Object.freeze({
453
453
 
454
454
  exports.bump = bump$1;
455
455
  exports.migrate = migrate$1;
456
- //# sourceMappingURL=bump-Qc4jNLOA.cjs.js.map
456
+ //# sourceMappingURL=bump-CyqFKJtk.cjs.js.map
@@ -5,7 +5,7 @@ var fs = require('fs-extra');
5
5
  var path = require('path');
6
6
  var util = require('util');
7
7
  var cliNode = require('@backstage/cli-node');
8
- var index = require('./index-BAcLy7dK.cjs.js');
8
+ var index = require('./index-4h_-pTqt.cjs.js');
9
9
  require('commander');
10
10
  require('chalk');
11
11
  require('semver');
@@ -45,4 +45,4 @@ async function command() {
45
45
  }
46
46
 
47
47
  exports.command = command;
48
- //# sourceMappingURL=clean-DlsJGDLw.cjs.js.map
48
+ //# sourceMappingURL=clean-C9681Yzb.cjs.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var fs = require('fs-extra');
4
- var index = require('./index-BAcLy7dK.cjs.js');
4
+ var index = require('./index-4h_-pTqt.cjs.js');
5
5
  require('commander');
6
6
  require('chalk');
7
7
  require('semver');
@@ -19,4 +19,4 @@ async function clean() {
19
19
  }
20
20
 
21
21
  exports.default = clean;
22
- //# sourceMappingURL=clean-CB6dTqaG.cjs.js.map
22
+ //# sourceMappingURL=clean-HqYaVOg8.cjs.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
  var fs = require('fs-extra');
4
4
  var path = require('path');
5
- var index = require('./index-BAcLy7dK.cjs.js');
5
+ var index = require('./index-4h_-pTqt.cjs.js');
6
6
 
7
7
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
8
8
 
@@ -88,4 +88,4 @@ async function addCodeownersEntry(ownedPath, ownerStr, codeownersFilePath) {
88
88
  exports.addCodeownersEntry = addCodeownersEntry;
89
89
  exports.getCodeownersFilePath = getCodeownersFilePath;
90
90
  exports.parseOwnerIds = parseOwnerIds;
91
- //# sourceMappingURL=codeowners-0MT7UP_S.cjs.js.map
91
+ //# sourceMappingURL=codeowners-D3vGLy_u.cjs.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
  var configLoader = require('@backstage/config-loader');
4
4
  var config = require('@backstage/config');
5
- var index = require('./index-BAcLy7dK.cjs.js');
5
+ var index = require('./index-4h_-pTqt.cjs.js');
6
6
  var getPackages = require('@manypkg/get-packages');
7
7
  var cliNode = require('@backstage/cli-node');
8
8
 
@@ -37,7 +37,7 @@ async function loadCliConfig(options) {
37
37
  substitutionFunc: options.mockEnv ? async (name) => process.env[name] || "x" : void 0,
38
38
  watch: Boolean(options.watch),
39
39
  rootDir: index.paths.targetRoot,
40
- argv: options.args
40
+ argv: options.args.flatMap((t) => ["--config", index.paths.resolveTarget(t)])
41
41
  });
42
42
  const appConfigs = await new Promise((resolve, reject) => {
43
43
  async function loadConfigReaderLoop() {
@@ -105,4 +105,4 @@ async function loadCliConfig(options) {
105
105
  }
106
106
 
107
107
  exports.loadCliConfig = loadCliConfig;
108
- //# sourceMappingURL=config-B1bkp-HP.cjs.js.map
108
+ //# sourceMappingURL=config-D6YojNZ6.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-BAcLy7dK.cjs.js');
11
- var run = require('./run-CPcG7YxR.cjs.js');
10
+ var index = require('./index-4h_-pTqt.cjs.js');
11
+ var run = require('./run-DfH1Wbgd.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-0v54ePDJ.cjs.js.map
563
+ //# sourceMappingURL=createDistWorkspace-BeP8p77s.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-0MT7UP_S.cjs.js');
14
- var index = require('./index-BAcLy7dK.cjs.js');
15
- var tasks = require('./tasks-4L8FqWEM.cjs.js');
13
+ var codeowners = require('./codeowners-D3vGLy_u.cjs.js');
14
+ var index = require('./index-4h_-pTqt.cjs.js');
15
+ var tasks = require('./tasks-GBCpBnph.cjs.js');
16
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-CPcG7YxR.cjs.js');
20
+ require('./run-DfH1Wbgd.cjs.js');
21
21
  require('commander');
22
22
  require('semver');
23
23
  require('@backstage/cli-common');
@@ -209,6 +209,7 @@ var createPlugin = async (opts) => {
209
209
  );
210
210
  const pluginDir = isMonoRepo ? index.paths.resolveTargetRoot("plugins", pluginId) : index.paths.resolveTargetRoot(pluginId);
211
211
  const { version: pluginVersion } = isMonoRepo ? await fs__default.default.readJson(index.paths.resolveTargetRoot("lerna.json")) : { version: "0.1.0" };
212
+ const license = opts.license ?? "Apache-2.0";
212
213
  let lockfile;
213
214
  try {
214
215
  lockfile = await Lockfile.Lockfile.load(index.paths.resolveTargetRoot("yarn.lock"));
@@ -235,7 +236,8 @@ var createPlugin = async (opts) => {
235
236
  extensionName,
236
237
  name,
237
238
  privatePackage,
238
- npmRegistry
239
+ npmRegistry,
240
+ license
239
241
  },
240
242
  index.createPackageVersionProvider(lockfile),
241
243
  isMonoRepo
@@ -275,4 +277,4 @@ exports.addPluginExtensionToApp = addPluginExtensionToApp;
275
277
  exports.capitalize = capitalize;
276
278
  exports.default = createPlugin;
277
279
  exports.movePlugin = movePlugin;
278
- //# sourceMappingURL=createPlugin-CUOGhq6P.cjs.js.map
280
+ //# sourceMappingURL=createPlugin-CDJyGSO5.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-BAcLy7dK.cjs.js');
10
+ var index = require('./index-4h_-pTqt.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-BaiaASdN.cjs.js.map
436
+ //# sourceMappingURL=diff-PCtwJv74.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-B1bkp-HP.cjs.js');
5
+ var config = require('./config-D6YojNZ6.cjs.js');
6
6
  require('@backstage/config');
7
- require('./index-BAcLy7dK.cjs.js');
7
+ require('./index-4h_-pTqt.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-D8vejOxE.cjs.js.map
37
+ //# sourceMappingURL=docs-S0srM3ep.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-BAcLy7dK.cjs.js');
6
+ var index = require('./index-4h_-pTqt.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-C7T4cvOB.cjs.js.map
362
+ //# sourceMappingURL=fix-BvYPEHp7.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.4-next.0";
50
+ var version$f = "0.23.4-next.1";
51
51
 
52
- var version$e = "0.7.1-next.0";
52
+ var version$e = "0.7.1-next.1";
53
53
 
54
- var version$d = "0.4.5-next.0";
54
+ var version$d = "0.4.5-next.1";
55
55
 
56
- var version$c = "0.27.0-next.0";
56
+ var version$c = "0.27.0-next.2";
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.1-next.0";
209
+ var version$a = "1.14.2-next.0";
210
210
 
211
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.36-next.0";
215
+ var version$7 = "1.0.37-next.1";
216
216
 
217
- var version$6 = "1.5.9-next.0";
217
+ var version$6 = "1.5.10-next.1";
218
218
 
219
- var version$5 = "0.4.9-next.0";
219
+ var version$5 = "0.4.9-next.1";
220
220
 
221
- var version$4 = "0.22.10-next.0";
221
+ var version$4 = "0.22.10-next.1";
222
222
 
223
- var version$3 = "0.1.9-next.0";
223
+ var version$3 = "0.1.9-next.1";
224
224
 
225
225
  var version$2 = "0.5.6";
226
226
 
227
- var version$1 = "0.4.2-next.0";
227
+ var version$1 = "0.4.2-next.1";
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-1VtfY6wb.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-SufUumpi.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-D5DoFqm6.cjs.js'); }).then((m) => m.command)));
305
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-BSjbd5Xw.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-EJvdRB7_.cjs.js'); }).then((m) => m.command)));
313
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-BRATCOzQ.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-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)));
320
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-BvYPEHp7.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-C9681Yzb.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-COfvNjrB.cjs.js'); }).then((m) => m.command))
323
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-CIEG38hh.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-y8AV0JOP.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-CPjGcZgc.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-Bu7Vqly9.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-B0L90XFA.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-B8Ebu0mP.cjs.js'); }).then((m) => m.command)));
353
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-D4o5JTLh.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-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)));
358
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-DOhNCjkd.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-BnBKEQxA.cjs.js'); }).then((m) => m.default)));
360
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-HqYaVOg8.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-BIz7Mm67.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-BIz7Mm67.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-BeuvccV9.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-D_JoRVEg.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-FpoAU1Be.cjs.js'); }).then((m) => m.command))
371
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-DiRMjYLN.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-D7LMvTow.cjs.js'); }).then((m) => m.command))
376
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-CPjCirWk.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,10 @@ 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-DB_oe66E.cjs.js'); }).then((m) => m.default)));
401
+ ).option(
402
+ "--license <license>",
403
+ "The license to use for any new packages (default: Apache-2.0)"
404
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-BN-HqSa-.cjs.js'); }).then((m) => m.default)));
402
405
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
403
406
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
404
407
  ).option(
@@ -412,30 +415,30 @@ function registerCommands(program) {
412
415
  ).option("--scope <scope>", "The scope to use for new packages").option(
413
416
  "--npm-registry <URL>",
414
417
  "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-DB_oe66E.cjs.js'); }).then((m) => m.default)));
418
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-BN-HqSa-.cjs.js'); }).then((m) => m.default)));
416
419
  program.command("create-plugin", { hidden: true }).option(
417
420
  "--backend",
418
421
  "Create plugin with the backend dependencies as default"
419
422
  ).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-CUOGhq6P.cjs.js'); }).then((m) => m.default))
423
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-CDJyGSO5.cjs.js'); }).then((m) => m.default))
421
424
  );
422
425
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
423
426
  "Diff an existing plugin with the creation template [DEPRECATED]"
424
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-BaiaASdN.cjs.js'); }).then((m) => m.default)));
427
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-PCtwJv74.cjs.js'); }).then((m) => m.default)));
425
428
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
426
429
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
427
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-303IpaqN.cjs.js'); }).then((m) => m.default)));
430
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-BnBKEQxA.cjs.js'); }).then((m) => m.default)));
428
431
  program.command("config:docs").option(
429
432
  "--package <name>",
430
433
  "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-D8vejOxE.cjs.js'); }).then((m) => m.default)));
434
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-S0srM3ep.cjs.js'); }).then((m) => m.default)));
432
435
  program.command("config:print").option(
433
436
  "--package <name>",
434
437
  "Only load config schema that applies to the given package"
435
438
  ).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
439
  "--format <format>",
437
440
  "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-DuJqsJ2y.cjs.js'); }).then((m) => m.default)));
441
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-DZpbThhj.cjs.js'); }).then((m) => m.default)));
439
442
  program.command("config:check").option(
440
443
  "--package <name>",
441
444
  "Only load config schema that applies to the given package"
@@ -444,14 +447,14 @@ function registerCommands(program) {
444
447
  "Enable strict config validation, forbidding errors and unknown keys"
445
448
  ).option(...configOption).description(
446
449
  "Validate that the given configuration loads and matches schema"
447
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-DZJIL6CK.cjs.js'); }).then((m) => m.default)));
450
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-DVP5oflD.cjs.js'); }).then((m) => m.default)));
448
451
  program.command("config:schema").option(
449
452
  "--package <name>",
450
453
  "Only output config schema that applies to the given package"
451
454
  ).option(
452
455
  "--format <format>",
453
456
  "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-CR794PHv.cjs.js'); }).then((m) => m.default)));
457
+ ).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-DOzm0S6j.cjs.js'); }).then((m) => m.default)));
455
458
  registerRepoCommand(program);
456
459
  registerScriptCommand(program);
457
460
  registerMigrateCommand(program);
@@ -463,7 +466,7 @@ function registerCommands(program) {
463
466
  "--release <version|next|main>",
464
467
  "Bump to a specific Backstage release line or version",
465
468
  "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-Qc4jNLOA.cjs.js'); }).then(function (n) { return n.bump; }).then((m) => m.default)));
469
+ ).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-CyqFKJtk.cjs.js'); }).then(function (n) { return n.bump; }).then((m) => m.default)));
467
470
  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
471
  program.command("versions:migrate").option(
469
472
  "--pattern <glob>",
@@ -473,18 +476,18 @@ function registerCommands(program) {
473
476
  "Skip code changes and only update package.json files"
474
477
  ).description(
475
478
  "Migrate any plugins that have been moved to the @backstage-community namespace automatically"
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)));
479
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./bump-CyqFKJtk.cjs.js'); }).then(function (n) { return n.migrate; }).then((m) => m.default)));
480
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-HqYaVOg8.cjs.js'); }).then((m) => m.default)));
478
481
  program.command("build-workspace <workspace-dir> [packages...]").option(
479
482
  "--alwaysYarnPack",
480
483
  "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-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
+ ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-DvXTk0Yg.cjs.js'); }).then((m) => m.default)));
485
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-BHTw317L.cjs.js'); }).then((m) => m.default)));
486
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-C4qK1T8Q.cjs.js'); }).then((m) => m.default)));
484
487
  program.command("install [plugin-id]", { hidden: true }).option(
485
488
  "--from <packageJsonFilePath>",
486
489
  "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-DGaf_UuL.cjs.js'); }).then((m) => m.default)));
490
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-E9hQWFmb.cjs.js'); }).then((m) => m.default)));
488
491
  }
489
492
  function lazy(getActionFunc) {
490
493
  return async (...args) => {
@@ -528,4 +531,4 @@ exports.devDependencies = devDependencies;
528
531
  exports.paths = paths;
529
532
  exports.version = version;
530
533
  exports.version$1 = version$c;
531
- //# sourceMappingURL=index-BAcLy7dK.cjs.js.map
534
+ //# sourceMappingURL=index-4h_-pTqt.cjs.js.map