@backstage/cli 0.0.0-nightly-20230705023459 → 0.0.0-nightly-20230707023240

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 (40) hide show
  1. package/CHANGELOG.md +7 -6
  2. package/dist/cjs/{build-a6bdfbc5.cjs.js → build-749ae418.cjs.js} +7 -7
  3. package/dist/cjs/{buildBackend-f4cd915f.cjs.js → buildBackend-7b257494.cjs.js} +6 -6
  4. package/dist/cjs/{buildWorkspace-a983c8a6.cjs.js → buildWorkspace-865288d7.cjs.js} +4 -4
  5. package/dist/cjs/{bump-dde42ad5.cjs.js → bump-3090d0fb.cjs.js} +5 -5
  6. package/dist/cjs/{clean-182a8d51.cjs.js → clean-60bf2e80.cjs.js} +2 -2
  7. package/dist/cjs/{clean-c55388fc.cjs.js → clean-db80dd2c.cjs.js} +2 -2
  8. package/dist/cjs/{codeowners-d5693f83.cjs.js → codeowners-3e8a3a48.cjs.js} +2 -2
  9. package/dist/cjs/{config-d83e2ef7.cjs.js → config-51c1ce8c.cjs.js} +2 -2
  10. package/dist/cjs/{createDistWorkspace-644ca7bb.cjs.js → createDistWorkspace-8423f16a.cjs.js} +3 -3
  11. package/dist/cjs/{createPlugin-6dd5d1b5.cjs.js → createPlugin-857a758c.cjs.js} +4 -4
  12. package/dist/cjs/{diff-406fd662.cjs.js → diff-770e7219.cjs.js} +2 -2
  13. package/dist/cjs/{docs-e0bf3c35.cjs.js → docs-f0103906.cjs.js} +3 -3
  14. package/dist/cjs/{fix-3ba9a6db.cjs.js → fix-0309bb84.cjs.js} +2 -2
  15. package/dist/cjs/{index-243d7dbe.cjs.js → index-3a4d0d19.cjs.js} +12 -4
  16. package/dist/cjs/{index-87aa8062.cjs.js → index-5ae8bdc9.cjs.js} +7 -7
  17. package/dist/cjs/{index-5d04ab93.cjs.js → index-5f50d33e.cjs.js} +41 -34
  18. package/dist/cjs/{index-dd4621c2.cjs.js → index-a1b6029c.cjs.js} +7 -7
  19. package/dist/cjs/{index-48d473bf.cjs.js → index-aa5677ae.cjs.js} +8 -8
  20. package/dist/cjs/{info-180fb3e7.cjs.js → info-1c95045d.cjs.js} +3 -3
  21. package/dist/cjs/{install-be338eb7.cjs.js → install-495bf9bb.cjs.js} +4 -4
  22. package/dist/cjs/{lint-e115272f.cjs.js → lint-2d97ca92.cjs.js} +3 -3
  23. package/dist/cjs/{lint-8c87f45e.cjs.js → lint-7ddbab2c.cjs.js} +2 -2
  24. package/dist/cjs/{lint-1cf7aa88.cjs.js → lint-eaee5724.cjs.js} +2 -2
  25. package/dist/cjs/{list-deprecations-0a781e5c.cjs.js → list-deprecations-b85d5661.cjs.js} +2 -2
  26. package/dist/cjs/{new-baa8268d.cjs.js → new-9fec03ed.cjs.js} +12 -6
  27. package/dist/cjs/{pack-eabd25b0.cjs.js → pack-49e64b8f.cjs.js} +2 -2
  28. package/dist/cjs/{packageLintConfigs-48e57e07.cjs.js → packageLintConfigs-93738a2f.cjs.js} +3 -3
  29. package/dist/cjs/{packageRole-f04316ed.cjs.js → packageRole-63df472c.cjs.js} +2 -2
  30. package/dist/cjs/{packages-14be3673.cjs.js → packages-ee3dbe00.cjs.js} +3 -3
  31. package/dist/cjs/{paths-54cb2ab1.cjs.js → paths-9f5e8bd6.cjs.js} +3 -3
  32. package/dist/cjs/{print-e4e9a208.cjs.js → print-eb516138.cjs.js} +3 -3
  33. package/dist/cjs/{role-d7ca9f68.cjs.js → role-c0eb2c7c.cjs.js} +2 -2
  34. package/dist/cjs/{run-230302b5.cjs.js → run-fd3794da.cjs.js} +2 -2
  35. package/dist/cjs/{schema-590e1260.cjs.js → schema-e417b5fd.cjs.js} +3 -3
  36. package/dist/cjs/{test-73ac288d.cjs.js → test-83305d04.cjs.js} +3 -3
  37. package/dist/cjs/{test-f57b4511.cjs.js → test-ef36c70b.cjs.js} +3 -3
  38. package/dist/cjs/{validate-e5b35fa1.cjs.js → validate-44a37db4.cjs.js} +3 -3
  39. package/dist/index.cjs.js +1 -1
  40. package/package.json +14 -14
package/CHANGELOG.md CHANGED
@@ -1,19 +1,20 @@
1
1
  # @backstage/cli
2
2
 
3
- ## 0.0.0-nightly-20230705023459
3
+ ## 0.0.0-nightly-20230707023240
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - 6adb6f41711a: Fixed the `--alwaysYarnPack` flag on the`backstage-cli build-workspace` command.
8
+ - ff45cb559e49: Updated dependency `esbuild` to `^0.18.0`.
8
9
  - Updated dependencies
9
- - @backstage/errors@0.0.0-nightly-20230705023459
10
- - @backstage/catalog-model@0.0.0-nightly-20230705023459
10
+ - @backstage/errors@0.0.0-nightly-20230707023240
11
+ - @backstage/catalog-model@0.0.0-nightly-20230707023240
11
12
  - @backstage/cli-common@0.1.12
12
- - @backstage/cli-node@0.0.0-nightly-20230705023459
13
+ - @backstage/cli-node@0.0.0-nightly-20230707023240
13
14
  - @backstage/config@1.0.8
14
- - @backstage/config-loader@0.0.0-nightly-20230705023459
15
+ - @backstage/config-loader@0.0.0-nightly-20230707023240
15
16
  - @backstage/eslint-plugin@0.1.3
16
- - @backstage/integration@0.0.0-nightly-20230705023459
17
+ - @backstage/integration@0.0.0-nightly-20230707023240
17
18
  - @backstage/release-manifests@0.0.9
18
19
  - @backstage/types@1.1.0
19
20
 
@@ -2,16 +2,16 @@
2
2
 
3
3
  var chalk = require('chalk');
4
4
  var path = require('path');
5
- var createDistWorkspace = require('./createDistWorkspace-644ca7bb.cjs.js');
6
- var index = require('./index-5d04ab93.cjs.js');
5
+ var createDistWorkspace = require('./createDistWorkspace-8423f16a.cjs.js');
6
+ var index = require('./index-5f50d33e.cjs.js');
7
7
  var cliNode = require('@backstage/cli-node');
8
8
  var parallel = require('./parallel-a8f6219c.cjs.js');
9
- var buildBackend = require('./buildBackend-f4cd915f.cjs.js');
9
+ var buildBackend = require('./buildBackend-7b257494.cjs.js');
10
10
  require('fs-extra');
11
11
  require('os');
12
12
  require('tar');
13
13
  require('lodash/partition');
14
- require('./run-230302b5.cjs.js');
14
+ require('./run-fd3794da.cjs.js');
15
15
  require('child_process');
16
16
  require('util');
17
17
  require('@backstage/errors');
@@ -40,7 +40,7 @@ require('react-dev-utils/ModuleScopePlugin');
40
40
  require('run-script-webpack-plugin');
41
41
  require('webpack-node-externals');
42
42
  require('@manypkg/get-packages');
43
- require('./paths-54cb2ab1.cjs.js');
43
+ require('./paths-9f5e8bd6.cjs.js');
44
44
  require('mini-css-extract-plugin');
45
45
  require('@pmmmwh/react-refresh-webpack-plugin');
46
46
  require('eslint-webpack-plugin');
@@ -50,7 +50,7 @@ require('react-dev-utils/FileSizeReporter');
50
50
  require('react-dev-utils/formatWebpackMessages');
51
51
  require('webpack-dev-server');
52
52
  require('react-dev-utils/openBrowser');
53
- require('./config-d83e2ef7.cjs.js');
53
+ require('./config-51c1ce8c.cjs.js');
54
54
  require('@backstage/config-loader');
55
55
  require('@backstage/config');
56
56
 
@@ -188,4 +188,4 @@ async function command(opts, cmd) {
188
188
  }
189
189
 
190
190
  exports.command = command;
191
- //# sourceMappingURL=build-a6bdfbc5.cjs.js.map
191
+ //# sourceMappingURL=build-749ae418.cjs.js.map
@@ -10,11 +10,11 @@ require('run-script-webpack-plugin');
10
10
  require('webpack-node-externals');
11
11
  require('@backstage/cli-common');
12
12
  require('@manypkg/get-packages');
13
- var paths = require('./paths-54cb2ab1.cjs.js');
13
+ var paths = require('./paths-9f5e8bd6.cjs.js');
14
14
  require('mini-css-extract-plugin');
15
15
  require('@pmmmwh/react-refresh-webpack-plugin');
16
- require('./index-5d04ab93.cjs.js');
17
- require('./run-230302b5.cjs.js');
16
+ require('./index-5f50d33e.cjs.js');
17
+ require('./run-fd3794da.cjs.js');
18
18
  require('eslint-webpack-plugin');
19
19
  require('lodash/pickBy');
20
20
  var yn = require('yn');
@@ -24,10 +24,10 @@ var chalk = require('chalk');
24
24
  require('webpack-dev-server');
25
25
  require('react-dev-utils/openBrowser');
26
26
  var parallel = require('./parallel-a8f6219c.cjs.js');
27
- var config = require('./config-d83e2ef7.cjs.js');
27
+ var config = require('./config-51c1ce8c.cjs.js');
28
28
  var os = require('os');
29
29
  var tar = require('tar');
30
- var createDistWorkspace = require('./createDistWorkspace-644ca7bb.cjs.js');
30
+ var createDistWorkspace = require('./createDistWorkspace-8423f16a.cjs.js');
31
31
 
32
32
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
33
33
 
@@ -207,4 +207,4 @@ async function buildBackend(options) {
207
207
 
208
208
  exports.buildBackend = buildBackend;
209
209
  exports.buildFrontend = buildFrontend;
210
- //# sourceMappingURL=buildBackend-f4cd915f.cjs.js.map
210
+ //# sourceMappingURL=buildBackend-7b257494.cjs.js.map
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
3
  var fs = require('fs-extra');
4
- var createDistWorkspace = require('./createDistWorkspace-644ca7bb.cjs.js');
4
+ var createDistWorkspace = require('./createDistWorkspace-8423f16a.cjs.js');
5
5
  require('chalk');
6
6
  require('path');
7
7
  require('os');
8
8
  require('tar');
9
9
  require('lodash/partition');
10
- require('./index-5d04ab93.cjs.js');
10
+ require('./index-5f50d33e.cjs.js');
11
11
  require('commander');
12
12
  require('semver');
13
13
  require('@backstage/cli-common');
14
14
  require('@backstage/errors');
15
- require('./run-230302b5.cjs.js');
15
+ require('./run-fd3794da.cjs.js');
16
16
  require('child_process');
17
17
  require('util');
18
18
  require('rollup');
@@ -48,4 +48,4 @@ var buildWorkspace = async (dir, packages, options) => {
48
48
  };
49
49
 
50
50
  exports["default"] = buildWorkspace;
51
- //# sourceMappingURL=buildWorkspace-a983c8a6.cjs.js.map
51
+ //# sourceMappingURL=buildWorkspace-865288d7.cjs.js.map
@@ -7,11 +7,11 @@ var semver = require('semver');
7
7
  var minimatch = require('minimatch');
8
8
  var errors = require('@backstage/errors');
9
9
  var path = require('path');
10
- var run = require('./run-230302b5.cjs.js');
11
- var index = require('./index-5d04ab93.cjs.js');
10
+ var run = require('./run-fd3794da.cjs.js');
11
+ var index = require('./index-5f50d33e.cjs.js');
12
12
  var Lockfile = require('./Lockfile-eced6070.cjs.js');
13
- var packages = require('./packages-14be3673.cjs.js');
14
- var lint = require('./lint-e115272f.cjs.js');
13
+ var packages = require('./packages-ee3dbe00.cjs.js');
14
+ var lint = require('./lint-2d97ca92.cjs.js');
15
15
  var cliCommon = require('@backstage/cli-common');
16
16
  var parallel = require('./parallel-a8f6219c.cjs.js');
17
17
  var releaseManifests = require('@backstage/release-manifests');
@@ -409,4 +409,4 @@ exports.bumpBackstageJsonVersion = bumpBackstageJsonVersion;
409
409
  exports.createStrictVersionFinder = createStrictVersionFinder;
410
410
  exports.createVersionFinder = createVersionFinder;
411
411
  exports["default"] = bump;
412
- //# sourceMappingURL=bump-dde42ad5.cjs.js.map
412
+ //# sourceMappingURL=bump-3090d0fb.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-5d04ab93.cjs.js');
4
+ var index = require('./index-5f50d33e.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-182a8d51.cjs.js.map
22
+ //# sourceMappingURL=clean-60bf2e80.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-5d04ab93.cjs.js');
8
+ var index = require('./index-5f50d33e.cjs.js');
9
9
  require('commander');
10
10
  require('chalk');
11
11
  require('semver');
@@ -46,4 +46,4 @@ async function command() {
46
46
  }
47
47
 
48
48
  exports.command = command;
49
- //# sourceMappingURL=clean-c55388fc.cjs.js.map
49
+ //# sourceMappingURL=clean-db80dd2c.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-5d04ab93.cjs.js');
5
+ var index = require('./index-5f50d33e.cjs.js');
6
6
 
7
7
  function _interopDefaultLegacy (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-d5693f83.cjs.js.map
91
+ //# sourceMappingURL=codeowners-3e8a3a48.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-5d04ab93.cjs.js');
5
+ var index = require('./index-5f50d33e.cjs.js');
6
6
  var getPackages = require('@manypkg/get-packages');
7
7
  var cliNode = require('@backstage/cli-node');
8
8
 
@@ -86,4 +86,4 @@ async function loadCliConfig(options) {
86
86
 
87
87
  exports.isValidUrl = isValidUrl;
88
88
  exports.loadCliConfig = loadCliConfig;
89
- //# sourceMappingURL=config-d83e2ef7.cjs.js.map
89
+ //# sourceMappingURL=config-51c1ce8c.cjs.js.map
@@ -6,8 +6,8 @@ var path = require('path');
6
6
  var os = require('os');
7
7
  var tar = require('tar');
8
8
  var partition = require('lodash/partition');
9
- var index = require('./index-5d04ab93.cjs.js');
10
- var run = require('./run-230302b5.cjs.js');
9
+ var index = require('./index-5f50d33e.cjs.js');
10
+ var run = require('./run-fd3794da.cjs.js');
11
11
  var rollup = require('rollup');
12
12
  var commonjs = require('@rollup/plugin-commonjs');
13
13
  var resolve = require('@rollup/plugin-node-resolve');
@@ -712,4 +712,4 @@ exports.buildPackage = buildPackage;
712
712
  exports.buildPackages = buildPackages;
713
713
  exports.createDistWorkspace = createDistWorkspace;
714
714
  exports.getOutputsForRole = getOutputsForRole;
715
- //# sourceMappingURL=createDistWorkspace-644ca7bb.cjs.js.map
715
+ //# sourceMappingURL=createDistWorkspace-8423f16a.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-d5693f83.cjs.js');
14
- var index = require('./index-5d04ab93.cjs.js');
13
+ var codeowners = require('./codeowners-3e8a3a48.cjs.js');
14
+ var index = require('./index-5f50d33e.cjs.js');
15
15
  var tasks = require('./tasks-84de240c.cjs.js');
16
16
  var Lockfile = require('./Lockfile-eced6070.cjs.js');
17
17
  require('minimatch');
18
18
  require('@manypkg/get-packages');
19
19
  require('./yarn-6cd89e16.cjs.js');
20
- require('./run-230302b5.cjs.js');
20
+ require('./run-fd3794da.cjs.js');
21
21
  require('commander');
22
22
  require('semver');
23
23
  require('@backstage/cli-common');
@@ -276,4 +276,4 @@ exports.addPluginExtensionToApp = addPluginExtensionToApp;
276
276
  exports.capitalize = capitalize;
277
277
  exports["default"] = createPlugin;
278
278
  exports.movePlugin = movePlugin;
279
- //# sourceMappingURL=createPlugin-6dd5d1b5.cjs.js.map
279
+ //# sourceMappingURL=createPlugin-857a758c.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-5d04ab93.cjs.js');
10
+ var index = require('./index-5f50d33e.cjs.js');
11
11
  require('commander');
12
12
  require('semver');
13
13
  require('@backstage/cli-common');
@@ -434,4 +434,4 @@ async function readPluginData() {
434
434
  }
435
435
 
436
436
  exports["default"] = diff;
437
- //# sourceMappingURL=diff-406fd662.cjs.js.map
437
+ //# sourceMappingURL=diff-770e7219.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-d83e2ef7.cjs.js');
5
+ var config = require('./config-51c1ce8c.cjs.js');
6
6
  require('@backstage/config');
7
- require('./index-5d04ab93.cjs.js');
7
+ require('./index-5f50d33e.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-e0bf3c35.cjs.js.map
37
+ //# sourceMappingURL=docs-f0103906.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-5d04ab93.cjs.js');
3
+ var index = require('./index-5f50d33e.cjs.js');
4
4
  var eslint = require('eslint');
5
5
  var path = require('path');
6
6
  var fs = require('fs-extra');
@@ -120,4 +120,4 @@ async function command() {
120
120
  }
121
121
 
122
122
  exports.command = command;
123
- //# sourceMappingURL=fix-3ba9a6db.cjs.js.map
123
+ //# sourceMappingURL=fix-0309bb84.cjs.js.map
@@ -4,7 +4,7 @@ var fs = require('fs-extra');
4
4
  var chalk = require('chalk');
5
5
  var yaml = require('yaml');
6
6
  var inquirer = require('inquirer');
7
- var index$1 = require('./index-5d04ab93.cjs.js');
7
+ var index$1 = require('./index-5f50d33e.cjs.js');
8
8
  var crypto = require('crypto');
9
9
  var openBrowser = require('react-dev-utils/openBrowser');
10
10
  var request = require('@octokit/request');
@@ -25,6 +25,12 @@ var openBrowser__default = /*#__PURE__*/_interopDefaultLegacy(openBrowser);
25
25
  var express__default = /*#__PURE__*/_interopDefaultLegacy(express);
26
26
  var fetch__default = /*#__PURE__*/_interopDefaultLegacy(fetch);
27
27
 
28
+ var __defProp = Object.defineProperty;
29
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
30
+ var __publicField = (obj, key, value) => {
31
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
32
+ return value;
33
+ };
28
34
  const FORM_PAGE = `
29
35
  <html>
30
36
  <body>
@@ -42,7 +48,9 @@ class GithubCreateAppServer {
42
48
  constructor(actionUrl, permissions) {
43
49
  this.actionUrl = actionUrl;
44
50
  this.permissions = permissions;
45
- this.formHandler = (_req, res) => {
51
+ __publicField(this, "baseUrl");
52
+ __publicField(this, "webhookUrl");
53
+ __publicField(this, "formHandler", (_req, res) => {
46
54
  const baseUrl = this.baseUrl;
47
55
  if (!baseUrl) {
48
56
  throw new Error("baseUrl is not set");
@@ -74,7 +82,7 @@ class GithubCreateAppServer {
74
82
  body = body.replace("ACTION_URL", this.actionUrl);
75
83
  res.setHeader("content-type", "text/html");
76
84
  res.send(body);
77
- };
85
+ });
78
86
  const webhookId = crypto__default["default"].randomBytes(15).toString("base64").replace(/[\+\/]/g, "");
79
87
  this.webhookUrl = `https://smee.io/${webhookId}`;
80
88
  }
@@ -222,4 +230,4 @@ async function verifyGithubOrg(org) {
222
230
  }
223
231
 
224
232
  exports["default"] = index;
225
- //# sourceMappingURL=index-243d7dbe.cjs.js.map
233
+ //# sourceMappingURL=index-3a4d0d19.cjs.js.map
@@ -9,7 +9,7 @@ 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-d83e2ef7.cjs.js');
12
+ var config = require('./config-51c1ce8c.cjs.js');
13
13
  var catalogModel = require('@backstage/catalog-model');
14
14
  var z = require('zod');
15
15
  var integration = require('@backstage/integration');
@@ -24,7 +24,7 @@ require('child_process');
24
24
  require('@backstage/errors');
25
25
  require('@backstage/config-loader');
26
26
  require('@backstage/config');
27
- require('./index-5d04ab93.cjs.js');
27
+ require('./index-5f50d33e.cjs.js');
28
28
  require('commander');
29
29
  require('semver');
30
30
  require('@manypkg/get-packages');
@@ -770,7 +770,7 @@ var __privateMethod$2 = (obj, member, method) => {
770
770
  return method;
771
771
  };
772
772
  var _envToken$1, _scmIntegrations$1, _credentialsProvider$1, _getRequestHeaders$1, getRequestHeaders_fn$1, _getOrganizationRepositories, getOrganizationRepositories_fn;
773
- const _GithubDiscoveryProvider = class {
773
+ const _GithubDiscoveryProvider = class _GithubDiscoveryProvider {
774
774
  constructor(envToken, integrations, credentialsProvider) {
775
775
  __privateAdd$3(this, _getRequestHeaders$1);
776
776
  __privateAdd$3(this, _getOrganizationRepositories);
@@ -813,7 +813,6 @@ const _GithubDiscoveryProvider = class {
813
813
  return repositories.filter((repo) => repo.url.startsWith(url)).map((repo) => new GithubRepository(client, repo, org));
814
814
  }
815
815
  };
816
- let GithubDiscoveryProvider = _GithubDiscoveryProvider;
817
816
  _envToken$1 = new WeakMap();
818
817
  _scmIntegrations$1 = new WeakMap();
819
818
  _credentialsProvider$1 = new WeakMap();
@@ -879,6 +878,7 @@ getOrganizationRepositories_fn = async function(client, org) {
879
878
  repositories: result
880
879
  };
881
880
  };
881
+ let GithubDiscoveryProvider = _GithubDiscoveryProvider;
882
882
 
883
883
  var __accessCheck$2 = (obj, member, msg) => {
884
884
  if (!member.has(obj))
@@ -999,7 +999,7 @@ var __privateMethod = (obj, member, method) => {
999
999
  return method;
1000
1000
  };
1001
1001
  var _envToken, _scmIntegrations, _credentialsProvider, _getRequestHeaders, getRequestHeaders_fn;
1002
- const _GitlabDiscoveryProvider = class {
1002
+ const _GitlabDiscoveryProvider = class _GitlabDiscoveryProvider {
1003
1003
  constructor(envToken, integrations, credentialsProvider) {
1004
1004
  __privateAdd(this, _getRequestHeaders);
1005
1005
  __privateAdd(this, _envToken, void 0);
@@ -1043,7 +1043,6 @@ const _GitlabDiscoveryProvider = class {
1043
1043
  );
1044
1044
  }
1045
1045
  };
1046
- let GitlabDiscoveryProvider = _GitlabDiscoveryProvider;
1047
1046
  _envToken = new WeakMap();
1048
1047
  _scmIntegrations = new WeakMap();
1049
1048
  _credentialsProvider = new WeakMap();
@@ -1064,6 +1063,7 @@ getRequestHeaders_fn = async function(url) {
1064
1063
  "No token available for GitLab, please set a GITLAB_TOKEN env variable"
1065
1064
  );
1066
1065
  };
1066
+ let GitlabDiscoveryProvider = _GitlabDiscoveryProvider;
1067
1067
 
1068
1068
  async function discover(providerInfo) {
1069
1069
  tasks.Task.log(`
@@ -1208,4 +1208,4 @@ async function command() {
1208
1208
  }
1209
1209
 
1210
1210
  exports.command = command;
1211
- //# sourceMappingURL=index-87aa8062.cjs.js.map
1211
+ //# sourceMappingURL=index-5ae8bdc9.cjs.js.map
@@ -13,6 +13,12 @@ var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
13
13
  var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
14
14
  var semver__default = /*#__PURE__*/_interopDefaultLegacy(semver);
15
15
 
16
+ var __defProp = Object.defineProperty;
17
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
18
+ var __publicField = (obj, key, value) => {
19
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
20
+ return value;
21
+ };
16
22
  class CustomError extends Error {
17
23
  get name() {
18
24
  return this.constructor.name;
@@ -23,6 +29,7 @@ class ExitCodeError extends CustomError {
23
29
  super(
24
30
  command ? `Command '${command}' exited with code ${code}` : `Child exited with code ${code}`
25
31
  );
32
+ __publicField(this, "code");
26
33
  this.code = code;
27
34
  }
28
35
  }
@@ -98,7 +105,7 @@ var dependencies = {
98
105
  "cross-spawn": "^7.0.3",
99
106
  "css-loader": "^6.5.1",
100
107
  diff: "^5.0.0",
101
- esbuild: "^0.17.0",
108
+ esbuild: "^0.18.0",
102
109
  "esbuild-loader": "^2.18.0",
103
110
  eslint: "^8.6.0",
104
111
  "eslint-config-prettier": "^8.3.0",
@@ -268,7 +275,7 @@ const configOption = [
268
275
  Array()
269
276
  ];
270
277
  function registerOnboardCommand(program) {
271
- program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-87aa8062.cjs.js'); }).then((m) => m.command)));
278
+ program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-5ae8bdc9.cjs.js'); }).then((m) => m.command)));
272
279
  }
273
280
  function registerRepoCommand(program) {
274
281
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
@@ -280,7 +287,7 @@ function registerRepoCommand(program) {
280
287
  ).option(
281
288
  "--since <ref>",
282
289
  "Only build packages and their dev dependents that changed since the specified ref"
283
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-a6bdfbc5.cjs.js'); }).then((m) => m.command)));
290
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-749ae418.cjs.js'); }).then((m) => m.command)));
284
291
  command.command("lint").description("Lint all packages in the project").option(
285
292
  "--format <format>",
286
293
  "Lint report output format",
@@ -288,10 +295,10 @@ function registerRepoCommand(program) {
288
295
  ).option(
289
296
  "--since <ref>",
290
297
  "Only lint packages that changed since the specified ref"
291
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-1cf7aa88.cjs.js'); }).then((m) => m.command)));
292
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-c55388fc.cjs.js'); }).then((m) => m.command)));
298
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-eaee5724.cjs.js'); }).then((m) => m.command)));
299
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-db80dd2c.cjs.js'); }).then((m) => m.command)));
293
300
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
294
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-0a781e5c.cjs.js'); }).then((m) => m.command))
301
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-b85d5661.cjs.js'); }).then((m) => m.command))
295
302
  );
296
303
  command.command("test").allowUnknownOption(true).option(
297
304
  "--since <ref>",
@@ -299,14 +306,14 @@ function registerRepoCommand(program) {
299
306
  ).option(
300
307
  "--jest-help",
301
308
  "Show help for Jest CLI options, which are passed through"
302
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-f57b4511.cjs.js'); }).then((m) => m.command)));
309
+ ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-ef36c70b.cjs.js'); }).then((m) => m.command)));
303
310
  }
304
311
  function registerScriptCommand(program) {
305
312
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
306
313
  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", "Enable debugger in Node.js environments").option(
307
314
  "--inspect-brk",
308
315
  "Enable debugger in Node.js environments, breaking before code starts"
309
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-dd4621c2.cjs.js'); }).then((m) => m.command)));
316
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-a1b6029c.cjs.js'); }).then((m) => m.command)));
310
317
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
311
318
  "--minify",
312
319
  "Minify the generated code. Does not apply to app or backend packages."
@@ -324,21 +331,21 @@ function registerScriptCommand(program) {
324
331
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
325
332
  (opt, opts) => opts ? [...opts, opt] : [opt],
326
333
  Array()
327
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-48d473bf.cjs.js'); }).then((m) => m.command)));
334
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-aa5677ae.cjs.js'); }).then((m) => m.command)));
328
335
  command.command("lint [directories...]").option(
329
336
  "--format <format>",
330
337
  "Lint report output format",
331
338
  "eslint-formatter-friendly"
332
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-8c87f45e.cjs.js'); }).then((m) => m.default)));
333
- 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-73ac288d.cjs.js'); }).then((m) => m.default)));
334
- command.command("fix", { hidden: true }).description("Applies automated fixes to the package. [EXPERIMENTAL]").option("--deps", "Only fix monorepo dependencies in package.json").action(lazy(() => Promise.resolve().then(function () { return require('./fix-3ba9a6db.cjs.js'); }).then((m) => m.command)));
335
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-182a8d51.cjs.js'); }).then((m) => m.default)));
336
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-eabd25b0.cjs.js'); }).then((m) => m.pre)));
337
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-eabd25b0.cjs.js'); }).then((m) => m.post)));
339
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-7ddbab2c.cjs.js'); }).then((m) => m.default)));
340
+ 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-83305d04.cjs.js'); }).then((m) => m.default)));
341
+ command.command("fix", { hidden: true }).description("Applies automated fixes to the package. [EXPERIMENTAL]").option("--deps", "Only fix monorepo dependencies in package.json").action(lazy(() => Promise.resolve().then(function () { return require('./fix-0309bb84.cjs.js'); }).then((m) => m.command)));
342
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-60bf2e80.cjs.js'); }).then((m) => m.default)));
343
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-49e64b8f.cjs.js'); }).then((m) => m.pre)));
344
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-49e64b8f.cjs.js'); }).then((m) => m.post)));
338
345
  }
339
346
  function registerMigrateCommand(program) {
340
347
  const command = program.command("migrate [command]").description("Migration utilities");
341
- 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-f04316ed.cjs.js'); }).then((m) => m.default)));
348
+ 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-63df472c.cjs.js'); }).then((m) => m.default)));
342
349
  command.command("package-scripts").description("Set package scripts according to each package role").action(
343
350
  lazy(() => Promise.resolve().then(function () { return require('./packageScripts-c6721fac.cjs.js'); }).then((m) => m.command))
344
351
  );
@@ -348,7 +355,7 @@ function registerMigrateCommand(program) {
348
355
  command.command("package-lint-configs").description(
349
356
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
350
357
  ).action(
351
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-48e57e07.cjs.js'); }).then((m) => m.command))
358
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-93738a2f.cjs.js'); }).then((m) => m.command))
352
359
  );
353
360
  command.command("react-router-deps").description(
354
361
  "Migrates the react-router dependencies for all packages to be peer dependencies"
@@ -373,7 +380,7 @@ function registerCommands(program) {
373
380
  ).option(
374
381
  "--baseVersion <version>",
375
382
  "The version to use for any new packages (default: 0.1.0)"
376
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-baa8268d.cjs.js'); }).then((m) => m.default)));
383
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-9fec03ed.cjs.js'); }).then((m) => m.default)));
377
384
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
378
385
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
379
386
  ).option(
@@ -387,30 +394,30 @@ function registerCommands(program) {
387
394
  ).option("--scope <scope>", "The scope to use for new packages").option(
388
395
  "--npm-registry <URL>",
389
396
  "The package registry to use for new packages"
390
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-baa8268d.cjs.js'); }).then((m) => m.default)));
397
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-9fec03ed.cjs.js'); }).then((m) => m.default)));
391
398
  program.command("create-plugin", { hidden: true }).option(
392
399
  "--backend",
393
400
  "Create plugin with the backend dependencies as default"
394
401
  ).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(
395
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-6dd5d1b5.cjs.js'); }).then((m) => m.default))
402
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-857a758c.cjs.js'); }).then((m) => m.default))
396
403
  );
397
404
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
398
405
  "Diff an existing plugin with the creation template [DEPRECATED]"
399
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-406fd662.cjs.js'); }).then((m) => m.default)));
406
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-770e7219.cjs.js'); }).then((m) => m.default)));
400
407
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
401
408
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
402
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-73ac288d.cjs.js'); }).then((m) => m.default)));
409
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-83305d04.cjs.js'); }).then((m) => m.default)));
403
410
  program.command("config:docs").option(
404
411
  "--package <name>",
405
412
  "Only include the schema that applies to the given package"
406
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-e0bf3c35.cjs.js'); }).then((m) => m.default)));
413
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-f0103906.cjs.js'); }).then((m) => m.default)));
407
414
  program.command("config:print").option(
408
415
  "--package <name>",
409
416
  "Only load config schema that applies to the given package"
410
417
  ).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(
411
418
  "--format <format>",
412
419
  "Format to print the configuration in, either json or yaml [yaml]"
413
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-e4e9a208.cjs.js'); }).then((m) => m.default)));
420
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-eb516138.cjs.js'); }).then((m) => m.default)));
414
421
  program.command("config:check").option(
415
422
  "--package <name>",
416
423
  "Only load config schema that applies to the given package"
@@ -419,14 +426,14 @@ function registerCommands(program) {
419
426
  "Enable strict config validation, forbidding errors and unknown keys"
420
427
  ).option(...configOption).description(
421
428
  "Validate that the given configuration loads and matches schema"
422
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-e5b35fa1.cjs.js'); }).then((m) => m.default)));
429
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-44a37db4.cjs.js'); }).then((m) => m.default)));
423
430
  program.command("config:schema").option(
424
431
  "--package <name>",
425
432
  "Only output config schema that applies to the given package"
426
433
  ).option(
427
434
  "--format <format>",
428
435
  "Format to print the schema in, either json or yaml [yaml]"
429
- ).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-590e1260.cjs.js'); }).then((m) => m.default)));
436
+ ).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-e417b5fd.cjs.js'); }).then((m) => m.default)));
430
437
  registerRepoCommand(program);
431
438
  registerScriptCommand(program);
432
439
  registerMigrateCommand(program);
@@ -438,19 +445,19 @@ function registerCommands(program) {
438
445
  "--release <version|next|main>",
439
446
  "Bump to a specific Backstage release line or version",
440
447
  "main"
441
- ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-dde42ad5.cjs.js'); }).then((m) => m.default)));
442
- 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-e115272f.cjs.js'); }).then((m) => m.default)));
443
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-182a8d51.cjs.js'); }).then((m) => m.default)));
448
+ ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-3090d0fb.cjs.js'); }).then((m) => m.default)));
449
+ 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-2d97ca92.cjs.js'); }).then((m) => m.default)));
450
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-60bf2e80.cjs.js'); }).then((m) => m.default)));
444
451
  program.command("build-workspace <workspace-dir> [packages...]").option(
445
452
  "--alwaysYarnPack",
446
453
  "Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
447
- ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-a983c8a6.cjs.js'); }).then((m) => m.default)));
448
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-243d7dbe.cjs.js'); }).then((m) => m.default)));
449
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-180fb3e7.cjs.js'); }).then((m) => m.default)));
454
+ ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-865288d7.cjs.js'); }).then((m) => m.default)));
455
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-3a4d0d19.cjs.js'); }).then((m) => m.default)));
456
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-1c95045d.cjs.js'); }).then((m) => m.default)));
450
457
  program.command("install [plugin-id]", { hidden: true }).option(
451
458
  "--from <packageJsonFilePath>",
452
459
  "Install from a local package.json containing the installation recipe"
453
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-be338eb7.cjs.js'); }).then((m) => m.default)));
460
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-495bf9bb.cjs.js'); }).then((m) => m.default)));
454
461
  }
455
462
  function lazy(getActionFunc) {
456
463
  return async (...args) => {
@@ -494,4 +501,4 @@ exports.devDependencies = devDependencies;
494
501
  exports.paths = paths;
495
502
  exports.version = version;
496
503
  exports.version$1 = version$9;
497
- //# sourceMappingURL=index-5d04ab93.cjs.js.map
504
+ //# sourceMappingURL=index-5f50d33e.cjs.js.map
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var fs = require('fs-extra');
4
- var index = require('./index-5d04ab93.cjs.js');
4
+ var index = require('./index-5f50d33e.cjs.js');
5
5
  var webpack = require('webpack');
6
- var paths = require('./paths-54cb2ab1.cjs.js');
6
+ var paths = require('./paths-9f5e8bd6.cjs.js');
7
7
  require('yn');
8
8
  var path = require('path');
9
9
  require('react-dev-utils/FileSizeReporter');
@@ -17,7 +17,7 @@ require('@backstage/cli-common');
17
17
  require('@manypkg/get-packages');
18
18
  require('mini-css-extract-plugin');
19
19
  require('@pmmmwh/react-refresh-webpack-plugin');
20
- require('./run-230302b5.cjs.js');
20
+ require('./run-fd3794da.cjs.js');
21
21
  require('eslint-webpack-plugin');
22
22
  require('lodash/pickBy');
23
23
  var chalk = require('chalk');
@@ -29,13 +29,13 @@ var errors = require('@backstage/errors');
29
29
  var debounce = require('lodash/debounce');
30
30
  var spawn = require('cross-spawn');
31
31
  var uniq = require('lodash/uniq');
32
- var config = require('./config-d83e2ef7.cjs.js');
32
+ var config = require('./config-51c1ce8c.cjs.js');
33
33
  var cliNode = require('@backstage/cli-node');
34
34
  var Lockfile = require('./Lockfile-eced6070.cjs.js');
35
35
  require('minimatch');
36
36
  require('./yarn-6cd89e16.cjs.js');
37
- var lint = require('./lint-e115272f.cjs.js');
38
- var role = require('./role-d7ca9f68.cjs.js');
37
+ var lint = require('./lint-2d97ca92.cjs.js');
38
+ var role = require('./role-c0eb2c7c.cjs.js');
39
39
  require('commander');
40
40
  require('semver');
41
41
  require('./svgrTemplate-550efce6.cjs.js');
@@ -491,4 +491,4 @@ async function command(opts) {
491
491
  }
492
492
 
493
493
  exports.command = command;
494
- //# sourceMappingURL=index-dd4621c2.cjs.js.map
494
+ //# sourceMappingURL=index-a1b6029c.cjs.js.map
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var createDistWorkspace = require('./createDistWorkspace-644ca7bb.cjs.js');
4
- var role = require('./role-d7ca9f68.cjs.js');
3
+ var createDistWorkspace = require('./createDistWorkspace-8423f16a.cjs.js');
4
+ var role = require('./role-c0eb2c7c.cjs.js');
5
5
  var cliNode = require('@backstage/cli-node');
6
- var index = require('./index-5d04ab93.cjs.js');
7
- var buildBackend = require('./buildBackend-f4cd915f.cjs.js');
8
- var config = require('./config-d83e2ef7.cjs.js');
6
+ var index = require('./index-5f50d33e.cjs.js');
7
+ var buildBackend = require('./buildBackend-7b257494.cjs.js');
8
+ var config = require('./config-51c1ce8c.cjs.js');
9
9
  require('chalk');
10
10
  require('fs-extra');
11
11
  require('path');
12
12
  require('os');
13
13
  require('tar');
14
14
  require('lodash/partition');
15
- require('./run-230302b5.cjs.js');
15
+ require('./run-fd3794da.cjs.js');
16
16
  require('child_process');
17
17
  require('util');
18
18
  require('@backstage/errors');
@@ -42,7 +42,7 @@ require('react-dev-utils/ModuleScopePlugin');
42
42
  require('run-script-webpack-plugin');
43
43
  require('webpack-node-externals');
44
44
  require('@manypkg/get-packages');
45
- require('./paths-54cb2ab1.cjs.js');
45
+ require('./paths-9f5e8bd6.cjs.js');
46
46
  require('mini-css-extract-plugin');
47
47
  require('@pmmmwh/react-refresh-webpack-plugin');
48
48
  require('eslint-webpack-plugin');
@@ -96,4 +96,4 @@ async function command(opts) {
96
96
  }
97
97
 
98
98
  exports.command = command;
99
- //# sourceMappingURL=index-48d473bf.cjs.js.map
99
+ //# sourceMappingURL=index-aa5677ae.cjs.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-5d04ab93.cjs.js');
3
+ var index = require('./index-5f50d33e.cjs.js');
4
4
  var os = require('os');
5
- var run = require('./run-230302b5.cjs.js');
5
+ var run = require('./run-fd3794da.cjs.js');
6
6
  var Lockfile = require('./Lockfile-eced6070.cjs.js');
7
7
  require('minimatch');
8
8
  require('@manypkg/get-packages');
@@ -58,4 +58,4 @@ var info = async () => {
58
58
  };
59
59
 
60
60
  exports["default"] = info;
61
- //# sourceMappingURL=info-180fb3e7.cjs.js.map
61
+ //# sourceMappingURL=info-1c95045d.cjs.js.map
@@ -4,12 +4,12 @@ var fs = require('fs-extra');
4
4
  require('semver');
5
5
  require('@yarnpkg/parsers');
6
6
  require('@yarnpkg/lockfile');
7
- var packages = require('./packages-14be3673.cjs.js');
8
- var index = require('./index-5d04ab93.cjs.js');
7
+ var packages = require('./packages-ee3dbe00.cjs.js');
8
+ var index = require('./index-5f50d33e.cjs.js');
9
9
  var chalk = require('chalk');
10
10
  var sortBy = require('lodash/sortBy');
11
11
  var groupBy = require('lodash/groupBy');
12
- var run = require('./run-230302b5.cjs.js');
12
+ var run = require('./run-fd3794da.cjs.js');
13
13
  require('minimatch');
14
14
  require('@manypkg/get-packages');
15
15
  require('./yarn-6cd89e16.cjs.js');
@@ -268,4 +268,4 @@ var install = async (pluginId, cmd) => {
268
268
  };
269
269
 
270
270
  exports["default"] = install;
271
- //# sourceMappingURL=install-be338eb7.cjs.js.map
271
+ //# sourceMappingURL=install-495bf9bb.cjs.js.map
@@ -5,8 +5,8 @@ require('minimatch');
5
5
  require('@manypkg/get-packages');
6
6
  require('chalk');
7
7
  require('./yarn-6cd89e16.cjs.js');
8
- require('./run-230302b5.cjs.js');
9
- var index = require('./index-5d04ab93.cjs.js');
8
+ require('./run-fd3794da.cjs.js');
9
+ var index = require('./index-5f50d33e.cjs.js');
10
10
  var partition = require('lodash/partition');
11
11
  var cliNode = require('@backstage/cli-node');
12
12
  require('fs-extra');
@@ -112,4 +112,4 @@ function logArray(arr, header, each) {
112
112
  exports["default"] = lint;
113
113
  exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
114
114
  exports.includedFilter = includedFilter;
115
- //# sourceMappingURL=lint-e115272f.cjs.js.map
115
+ //# sourceMappingURL=lint-2d97ca92.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-5d04ab93.cjs.js');
3
+ var index = require('./index-5f50d33e.cjs.js');
4
4
  var eslint = require('eslint');
5
5
  require('commander');
6
6
  require('chalk');
@@ -33,4 +33,4 @@ var lint = async (directories, opts) => {
33
33
  };
34
34
 
35
35
  exports["default"] = lint;
36
- //# sourceMappingURL=lint-8c87f45e.cjs.js.map
36
+ //# sourceMappingURL=lint-7ddbab2c.cjs.js.map
@@ -3,7 +3,7 @@
3
3
  var chalk = require('chalk');
4
4
  var path = require('path');
5
5
  var cliNode = require('@backstage/cli-node');
6
- var index = require('./index-5d04ab93.cjs.js');
6
+ var index = require('./index-5f50d33e.cjs.js');
7
7
  var parallel = require('./parallel-a8f6219c.cjs.js');
8
8
  require('commander');
9
9
  require('fs-extra');
@@ -88,4 +88,4 @@ async function command(opts) {
88
88
  }
89
89
 
90
90
  exports.command = command;
91
- //# sourceMappingURL=lint-1cf7aa88.cjs.js.map
91
+ //# sourceMappingURL=lint-eaee5724.cjs.js.map
@@ -4,7 +4,7 @@ var chalk = require('chalk');
4
4
  var eslint = require('eslint');
5
5
  var path = require('path');
6
6
  var cliNode = require('@backstage/cli-node');
7
- var index = require('./index-5d04ab93.cjs.js');
7
+ var index = require('./index-5f50d33e.cjs.js');
8
8
  require('commander');
9
9
  require('fs-extra');
10
10
  require('semver');
@@ -76,4 +76,4 @@ async function command(opts) {
76
76
  }
77
77
 
78
78
  exports.command = command;
79
- //# sourceMappingURL=list-deprecations-0a781e5c.cjs.js.map
79
+ //# sourceMappingURL=list-deprecations-b85d5661.cjs.js.map
@@ -7,14 +7,14 @@ var chalk = require('chalk');
7
7
  var inquirer = require('inquirer');
8
8
  var camelCase = require('lodash/camelCase');
9
9
  var upperFirst = require('lodash/upperFirst');
10
- var index = require('./index-5d04ab93.cjs.js');
11
- var codeowners = require('./codeowners-d5693f83.cjs.js');
10
+ var index = require('./index-5f50d33e.cjs.js');
11
+ var codeowners = require('./codeowners-3e8a3a48.cjs.js');
12
12
  var tasks = require('./tasks-84de240c.cjs.js');
13
13
  var Lockfile = require('./Lockfile-eced6070.cjs.js');
14
14
  require('minimatch');
15
15
  require('@manypkg/get-packages');
16
16
  require('./yarn-6cd89e16.cjs.js');
17
- require('./run-230302b5.cjs.js');
17
+ require('./run-fd3794da.cjs.js');
18
18
  var partition = require('lodash/partition');
19
19
  var cliNode = require('@backstage/cli-node');
20
20
  var errors = require('@backstage/errors');
@@ -463,6 +463,12 @@ var factories = /*#__PURE__*/Object.freeze({
463
463
  scaffolderModule: scaffolderModule
464
464
  });
465
465
 
466
+ var __defProp = Object.defineProperty;
467
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
468
+ var __publicField = (obj, key, value) => {
469
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
470
+ return value;
471
+ };
466
472
  function applyPromptMessageTransforms(prompt, transforms) {
467
473
  return {
468
474
  ...prompt,
@@ -540,9 +546,9 @@ class FactoryRegistry {
540
546
  return currentOptions;
541
547
  }
542
548
  }
543
- FactoryRegistry.factoryMap = new Map(
549
+ __publicField(FactoryRegistry, "factoryMap", new Map(
544
550
  Object.values(factories).map((factory) => [factory.name, factory])
545
- );
551
+ ));
546
552
 
547
553
  function parseOptions(optionStrings) {
548
554
  const options = {};
@@ -625,4 +631,4 @@ var _new = async (opts) => {
625
631
  };
626
632
 
627
633
  exports["default"] = _new;
628
- //# sourceMappingURL=new-baa8268d.cjs.js.map
634
+ //# sourceMappingURL=new-9fec03ed.cjs.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var productionPack = require('./productionPack-d569941a.cjs.js');
4
- var index = require('./index-5d04ab93.cjs.js');
4
+ var index = require('./index-5f50d33e.cjs.js');
5
5
  require('fs-extra');
6
6
  require('npm-packlist');
7
7
  require('path');
@@ -21,4 +21,4 @@ const post = async () => {
21
21
 
22
22
  exports.post = post;
23
23
  exports.pre = pre;
24
- //# sourceMappingURL=pack-eabd25b0.cjs.js.map
24
+ //# sourceMappingURL=pack-49e64b8f.cjs.js.map
@@ -3,9 +3,9 @@
3
3
  var fs = require('fs-extra');
4
4
  var path = require('path');
5
5
  var cliNode = require('@backstage/cli-node');
6
- var run = require('./run-230302b5.cjs.js');
6
+ var run = require('./run-fd3794da.cjs.js');
7
7
  require('child_process');
8
- require('./index-5d04ab93.cjs.js');
8
+ require('./index-5f50d33e.cjs.js');
9
9
  require('commander');
10
10
  require('chalk');
11
11
  require('semver');
@@ -79,4 +79,4 @@ async function command() {
79
79
  }
80
80
 
81
81
  exports.command = command;
82
- //# sourceMappingURL=packageLintConfigs-48e57e07.cjs.js.map
82
+ //# sourceMappingURL=packageLintConfigs-93738a2f.cjs.js.map
@@ -4,7 +4,7 @@ var fs = require('fs-extra');
4
4
  var path = require('path');
5
5
  var getPackages = require('@manypkg/get-packages');
6
6
  var cliNode = require('@backstage/cli-node');
7
- var index = require('./index-5d04ab93.cjs.js');
7
+ var index = require('./index-5f50d33e.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('semver');
@@ -55,4 +55,4 @@ var packageRole = async () => {
55
55
  };
56
56
 
57
57
  exports["default"] = packageRole;
58
- //# sourceMappingURL=packageRole-f04316ed.cjs.js.map
58
+ //# sourceMappingURL=packageRole-63df472c.cjs.js.map
@@ -2,9 +2,9 @@
2
2
 
3
3
  var minimatch = require('minimatch');
4
4
  var getPackages = require('@manypkg/get-packages');
5
- var index = require('./index-5d04ab93.cjs.js');
5
+ var index = require('./index-5f50d33e.cjs.js');
6
6
  var yarn = require('./yarn-6cd89e16.cjs.js');
7
- var run = require('./run-230302b5.cjs.js');
7
+ var run = require('./run-fd3794da.cjs.js');
8
8
 
9
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
10
 
@@ -80,4 +80,4 @@ async function mapDependencies(targetDir, pattern) {
80
80
 
81
81
  exports.fetchPackageInfo = fetchPackageInfo;
82
82
  exports.mapDependencies = mapDependencies;
83
- //# sourceMappingURL=packages-14be3673.cjs.js.map
83
+ //# sourceMappingURL=packages-ee3dbe00.cjs.js.map
@@ -13,8 +13,8 @@ var getPackages = require('@manypkg/get-packages');
13
13
  var MiniCssExtractPlugin = require('mini-css-extract-plugin');
14
14
  var svgrTemplate = require('./svgrTemplate-550efce6.cjs.js');
15
15
  var ReactRefreshPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
16
- var index = require('./index-5d04ab93.cjs.js');
17
- var run = require('./run-230302b5.cjs.js');
16
+ var index = require('./index-5f50d33e.cjs.js');
17
+ var run = require('./run-fd3794da.cjs.js');
18
18
  var ESLintPlugin = require('eslint-webpack-plugin');
19
19
  var pickBy = require('lodash/pickBy');
20
20
  var yn = require('yn');
@@ -603,4 +603,4 @@ exports.createBackendConfig = createBackendConfig;
603
603
  exports.createConfig = createConfig;
604
604
  exports.resolveBaseUrl = resolveBaseUrl;
605
605
  exports.resolveBundlingPaths = resolveBundlingPaths;
606
- //# sourceMappingURL=paths-54cb2ab1.cjs.js.map
606
+ //# sourceMappingURL=paths-9f5e8bd6.cjs.js.map
@@ -2,9 +2,9 @@
2
2
 
3
3
  var yaml = require('yaml');
4
4
  var config$1 = require('@backstage/config');
5
- var config = require('./config-d83e2ef7.cjs.js');
5
+ var config = require('./config-51c1ce8c.cjs.js');
6
6
  require('@backstage/config-loader');
7
- require('./index-5d04ab93.cjs.js');
7
+ require('./index-5f50d33e.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('fs-extra');
@@ -58,4 +58,4 @@ function serializeConfigData(appConfigs, schema, visibility) {
58
58
  }
59
59
 
60
60
  exports["default"] = print;
61
- //# sourceMappingURL=print-e4e9a208.cjs.js.map
61
+ //# sourceMappingURL=print-eb516138.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-5d04ab93.cjs.js');
4
+ var index = require('./index-5f50d33e.cjs.js');
5
5
  var cliNode = require('@backstage/cli-node');
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -22,4 +22,4 @@ async function findRoleFromCommand(opts) {
22
22
  }
23
23
 
24
24
  exports.findRoleFromCommand = findRoleFromCommand;
25
- //# sourceMappingURL=role-d7ca9f68.cjs.js.map
25
+ //# sourceMappingURL=role-c0eb2c7c.cjs.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var child_process = require('child_process');
4
- var index = require('./index-5d04ab93.cjs.js');
4
+ var index = require('./index-5f50d33e.cjs.js');
5
5
  var util = require('util');
6
6
  var errors = require('@backstage/errors');
7
7
 
@@ -79,4 +79,4 @@ exports.execFile = execFile;
79
79
  exports.run = run;
80
80
  exports.runCheck = runCheck;
81
81
  exports.runPlain = runPlain;
82
- //# sourceMappingURL=run-230302b5.cjs.js.map
82
+ //# sourceMappingURL=run-fd3794da.cjs.js.map
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var yaml = require('yaml');
4
- var config = require('./config-d83e2ef7.cjs.js');
4
+ var config = require('./config-51c1ce8c.cjs.js');
5
5
  var configLoader = require('@backstage/config-loader');
6
6
  require('@backstage/config');
7
- require('./index-5d04ab93.cjs.js');
7
+ require('./index-5f50d33e.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('fs-extra');
@@ -37,4 +37,4 @@ var schema = async (opts) => {
37
37
  };
38
38
 
39
39
  exports["default"] = schema;
40
- //# sourceMappingURL=schema-590e1260.cjs.js.map
40
+ //# sourceMappingURL=schema-e417b5fd.cjs.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-5d04ab93.cjs.js');
4
- var run = require('./run-230302b5.cjs.js');
3
+ var index = require('./index-5f50d33e.cjs.js');
4
+ var run = require('./run-fd3794da.cjs.js');
5
5
  require('commander');
6
6
  require('chalk');
7
7
  require('fs-extra');
@@ -56,4 +56,4 @@ var test = async (_opts, cmd) => {
56
56
  };
57
57
 
58
58
  exports["default"] = test;
59
- //# sourceMappingURL=test-73ac288d.cjs.js.map
59
+ //# sourceMappingURL=test-83305d04.cjs.js.map
@@ -2,8 +2,8 @@
2
2
 
3
3
  var os = require('os');
4
4
  var cliNode = require('@backstage/cli-node');
5
- var index = require('./index-5d04ab93.cjs.js');
6
- var run = require('./run-230302b5.cjs.js');
5
+ var index = require('./index-5f50d33e.cjs.js');
6
+ var run = require('./run-fd3794da.cjs.js');
7
7
  require('commander');
8
8
  require('chalk');
9
9
  require('fs-extra');
@@ -123,4 +123,4 @@ async function command(opts, cmd) {
123
123
 
124
124
  exports.command = command;
125
125
  exports.createFlagFinder = createFlagFinder;
126
- //# sourceMappingURL=test-f57b4511.cjs.js.map
126
+ //# sourceMappingURL=test-ef36c70b.cjs.js.map
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var config = require('./config-d83e2ef7.cjs.js');
3
+ var config = require('./config-51c1ce8c.cjs.js');
4
4
  require('@backstage/config-loader');
5
5
  require('@backstage/config');
6
- require('./index-5d04ab93.cjs.js');
6
+ require('./index-5f50d33e.cjs.js');
7
7
  require('commander');
8
8
  require('chalk');
9
9
  require('fs-extra');
@@ -25,4 +25,4 @@ var validate = async (opts) => {
25
25
  };
26
26
 
27
27
  exports["default"] = validate;
28
- //# sourceMappingURL=validate-e5b35fa1.cjs.js.map
28
+ //# sourceMappingURL=validate-44a37db4.cjs.js.map
package/dist/index.cjs.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('commander');
4
4
  require('chalk');
5
- require('./cjs/index-5d04ab93.cjs.js');
5
+ require('./cjs/index-5f50d33e.cjs.js');
6
6
  require('fs-extra');
7
7
  require('semver');
8
8
  require('@backstage/cli-common');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/cli",
3
3
  "description": "CLI for developing Backstage plugins and apps",
4
- "version": "0.0.0-nightly-20230705023459",
4
+ "version": "0.0.0-nightly-20230707023240",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -30,14 +30,14 @@
30
30
  "backstage-cli": "bin/backstage-cli"
31
31
  },
32
32
  "dependencies": {
33
- "@backstage/catalog-model": "^0.0.0-nightly-20230705023459",
33
+ "@backstage/catalog-model": "^0.0.0-nightly-20230707023240",
34
34
  "@backstage/cli-common": "^0.1.12",
35
- "@backstage/cli-node": "^0.0.0-nightly-20230705023459",
35
+ "@backstage/cli-node": "^0.0.0-nightly-20230707023240",
36
36
  "@backstage/config": "^1.0.8",
37
- "@backstage/config-loader": "^0.0.0-nightly-20230705023459",
38
- "@backstage/errors": "^0.0.0-nightly-20230705023459",
37
+ "@backstage/config-loader": "^0.0.0-nightly-20230707023240",
38
+ "@backstage/errors": "^0.0.0-nightly-20230707023240",
39
39
  "@backstage/eslint-plugin": "^0.1.3",
40
- "@backstage/integration": "^0.0.0-nightly-20230705023459",
40
+ "@backstage/integration": "^0.0.0-nightly-20230707023240",
41
41
  "@backstage/release-manifests": "^0.0.9",
42
42
  "@backstage/types": "^1.1.0",
43
43
  "@esbuild-kit/cjs-loader": "^2.4.1",
@@ -78,7 +78,7 @@
78
78
  "cross-spawn": "^7.0.3",
79
79
  "css-loader": "^6.5.1",
80
80
  "diff": "^5.0.0",
81
- "esbuild": "^0.17.0",
81
+ "esbuild": "^0.18.0",
82
82
  "esbuild-loader": "^2.18.0",
83
83
  "eslint": "^8.6.0",
84
84
  "eslint-config-prettier": "^8.3.0",
@@ -139,14 +139,14 @@
139
139
  "zod": "^3.21.4"
140
140
  },
141
141
  "devDependencies": {
142
- "@backstage/backend-common": "^0.0.0-nightly-20230705023459",
142
+ "@backstage/backend-common": "^0.0.0-nightly-20230707023240",
143
143
  "@backstage/config": "^1.0.8",
144
- "@backstage/core-app-api": "^0.0.0-nightly-20230705023459",
145
- "@backstage/core-components": "^0.0.0-nightly-20230705023459",
146
- "@backstage/core-plugin-api": "^0.0.0-nightly-20230705023459",
147
- "@backstage/dev-utils": "^0.0.0-nightly-20230705023459",
148
- "@backstage/test-utils": "^0.0.0-nightly-20230705023459",
149
- "@backstage/theme": "^0.0.0-nightly-20230705023459",
144
+ "@backstage/core-app-api": "^0.0.0-nightly-20230707023240",
145
+ "@backstage/core-components": "^0.0.0-nightly-20230707023240",
146
+ "@backstage/core-plugin-api": "^0.0.0-nightly-20230707023240",
147
+ "@backstage/dev-utils": "^0.0.0-nightly-20230707023240",
148
+ "@backstage/test-utils": "^0.0.0-nightly-20230707023240",
149
+ "@backstage/theme": "^0.0.0-nightly-20230707023240",
150
150
  "@types/cross-spawn": "^6.0.2",
151
151
  "@types/diff": "^5.0.0",
152
152
  "@types/express": "^4.17.6",