@backstage/cli 0.19.0-next.1 → 0.19.0-next.3

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 (45) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/config/jest.js +51 -1
  3. package/dist/cjs/{PackageGraph-424871dc.cjs.js → PackageGraph-cbbcb60d.cjs.js} +2 -2
  4. package/dist/cjs/{build-99235d84.cjs.js → build-a80c880d.cjs.js} +9 -9
  5. package/dist/cjs/{buildBackend-39c64859.cjs.js → buildBackend-f7c77b0b.cjs.js} +6 -6
  6. package/dist/cjs/{buildWorkspace-09512b94.cjs.js → buildWorkspace-54b59635.cjs.js} +6 -6
  7. package/dist/cjs/{bump-fecbbc0a.cjs.js → bump-1b765f38.cjs.js} +8 -13
  8. package/dist/cjs/clean-44c36da0.cjs.js +50 -0
  9. package/dist/cjs/{clean-cd509a41.cjs.js → clean-d0639824.cjs.js} +2 -2
  10. package/dist/cjs/{config-e2a2d4a6.cjs.js → config-b04e9537.cjs.js} +6 -4
  11. package/dist/cjs/{createDistWorkspace-82c60398.cjs.js → createDistWorkspace-ee244c42.cjs.js} +36 -20
  12. package/dist/cjs/{createPlugin-c26303d8.cjs.js → createPlugin-38bde20d.cjs.js} +7 -5
  13. package/dist/cjs/{diff-6a78ec4c.cjs.js → diff-106d4724.cjs.js} +2 -2
  14. package/dist/cjs/{docs-8e386279.cjs.js → docs-b4ec9616.cjs.js} +4 -4
  15. package/dist/cjs/{fix-3c44b003.cjs.js → fix-2e7bcb7b.cjs.js} +3 -3
  16. package/dist/cjs/{index-d4a2dd72.cjs.js → index-0b77afc5.cjs.js} +13 -9
  17. package/dist/cjs/{index-3a4a537f.cjs.js → index-22d71d53.cjs.js} +9 -9
  18. package/dist/cjs/{index-82587726.cjs.js → index-4a52b979.cjs.js} +79 -57
  19. package/dist/cjs/{index-f798881b.cjs.js → index-ddecf380.cjs.js} +2 -2
  20. package/dist/cjs/{info-696f22bf.cjs.js → info-dde556a3.cjs.js} +4 -3
  21. package/dist/cjs/{install-acc8eb12.cjs.js → install-0198741a.cjs.js} +7 -6
  22. package/dist/cjs/{lint-b1213456.cjs.js → lint-4ea1cd7d.cjs.js} +2 -2
  23. package/dist/cjs/{lint-20a7382f.cjs.js → lint-bac940ad.cjs.js} +5 -4
  24. package/dist/cjs/{lint-886fb5df.cjs.js → lint-bbf17e89.cjs.js} +4 -4
  25. package/dist/cjs/{list-deprecations-4273a5a5.cjs.js → list-deprecations-1a376bc8.cjs.js} +3 -3
  26. package/dist/cjs/{create-86c41604.cjs.js → new-dc185c76.cjs.js} +27 -33
  27. package/dist/cjs/{pack-b4b51d9e.cjs.js → pack-17918a36.cjs.js} +2 -2
  28. package/dist/cjs/{packageLintConfigs-ff7728bc.cjs.js → packageLintConfigs-4b48e7c0.cjs.js} +4 -4
  29. package/dist/cjs/{packageRole-03b55c0a.cjs.js → packageRole-5a08fd56.cjs.js} +3 -3
  30. package/dist/cjs/{packageRoles-fdfa8905.cjs.js → packageRoles-1f3cfecc.cjs.js} +2 -2
  31. package/dist/cjs/{packageScripts-e960be45.cjs.js → packageScripts-3d6c88f7.cjs.js} +4 -4
  32. package/dist/cjs/{packages-fab3e760.cjs.js → packages-032b4d94.cjs.js} +35 -11
  33. package/dist/cjs/{paths-820ff228.cjs.js → paths-adb593c7.cjs.js} +3 -4
  34. package/dist/cjs/{print-b50ffebc.cjs.js → print-69c54f76.cjs.js} +4 -4
  35. package/dist/cjs/{reactRouterDeps-2399528b.cjs.js → reactRouterDeps-af437b7b.cjs.js} +4 -4
  36. package/dist/cjs/{run-0ac37ebd.cjs.js → run-20edcac9.cjs.js} +3 -2
  37. package/dist/cjs/{schema-a805969e.cjs.js → schema-6176df9d.cjs.js} +4 -4
  38. package/dist/cjs/{tasks-7770ecc3.cjs.js → tasks-93484977.cjs.js} +3 -4
  39. package/dist/cjs/{test-d54a7f33.cjs.js → test-7f135639.cjs.js} +3 -3
  40. package/dist/cjs/{validate-a9880467.cjs.js → validate-6dc3e551.cjs.js} +4 -4
  41. package/dist/cjs/yarn-6cd89e16.cjs.js +34 -0
  42. package/dist/index.cjs.js +1 -1
  43. package/package.json +44 -17
  44. package/templates/default-backend-plugin/package.json.hbs +1 -1
  45. package/templates/default-plugin/package.json.hbs +1 -2
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var fs = require('fs-extra');
4
- var index = require('./index-82587726.cjs.js');
4
+ var index = require('./index-4a52b979.cjs.js');
5
5
  var webpack = require('webpack');
6
- var paths = require('./paths-820ff228.cjs.js');
6
+ var paths = require('./paths-adb593c7.cjs.js');
7
7
  require('yn');
8
8
  require('path');
9
9
  require('react-dev-utils/FileSizeReporter');
@@ -17,18 +17,19 @@ 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-0ac37ebd.cjs.js');
20
+ require('./run-20edcac9.cjs.js');
21
21
  require('eslint-webpack-plugin');
22
22
  require('lodash/pickBy');
23
23
  var chalk = require('chalk');
24
24
  var WebpackDevServer = require('webpack-dev-server');
25
25
  var openBrowser = require('react-dev-utils/openBrowser');
26
26
  var uniq = require('lodash/uniq');
27
- var config = require('./config-e2a2d4a6.cjs.js');
27
+ var config = require('./config-b04e9537.cjs.js');
28
28
  var Lockfile = require('./Lockfile-72b7072e.cjs.js');
29
29
  require('minimatch');
30
- var lint = require('./lint-20a7382f.cjs.js');
31
- var packageRoles = require('./packageRoles-fdfa8905.cjs.js');
30
+ require('./yarn-6cd89e16.cjs.js');
31
+ var lint = require('./lint-bac940ad.cjs.js');
32
+ var packageRoles = require('./packageRoles-1f3cfecc.cjs.js');
32
33
  require('commander');
33
34
  require('semver');
34
35
  require('@backstage/errors');
@@ -37,7 +38,7 @@ require('child_process');
37
38
  require('util');
38
39
  require('@backstage/config-loader');
39
40
  require('@backstage/config');
40
- require('./PackageGraph-424871dc.cjs.js');
41
+ require('./PackageGraph-cbbcb60d.cjs.js');
41
42
  require('@yarnpkg/parsers');
42
43
  require('@yarnpkg/lockfile');
43
44
  require('lodash/partition');
@@ -105,7 +106,10 @@ async function serveBundle(options) {
105
106
  historyApiFallback: {
106
107
  disableDotRule: true
107
108
  },
108
- https: url.protocol === "https:",
109
+ https: url.protocol === "https:" ? {
110
+ cert: options.fullConfig.getString("app.https.certificate.cert"),
111
+ key: options.fullConfig.getString("app.https.certificate.key")
112
+ } : false,
109
113
  host,
110
114
  port,
111
115
  proxy: pkg.proxy,
@@ -241,4 +245,4 @@ async function command(opts) {
241
245
  }
242
246
 
243
247
  exports.command = command;
244
- //# sourceMappingURL=index-d4a2dd72.cjs.js.map
248
+ //# sourceMappingURL=index-0b77afc5.cjs.js.map
@@ -1,20 +1,20 @@
1
1
  'use strict';
2
2
 
3
- var createDistWorkspace = require('./createDistWorkspace-82c60398.cjs.js');
4
- var packageRoles = require('./packageRoles-fdfa8905.cjs.js');
5
- var index = require('./index-82587726.cjs.js');
6
- var buildBackend = require('./buildBackend-39c64859.cjs.js');
3
+ var createDistWorkspace = require('./createDistWorkspace-ee244c42.cjs.js');
4
+ var packageRoles = require('./packageRoles-1f3cfecc.cjs.js');
5
+ var index = require('./index-4a52b979.cjs.js');
6
+ var buildBackend = require('./buildBackend-f7c77b0b.cjs.js');
7
7
  require('chalk');
8
8
  require('fs-extra');
9
9
  require('path');
10
10
  require('os');
11
11
  require('tar');
12
12
  require('lodash/partition');
13
- require('./run-0ac37ebd.cjs.js');
13
+ require('./run-20edcac9.cjs.js');
14
14
  require('child_process');
15
15
  require('util');
16
16
  require('@backstage/errors');
17
- require('./PackageGraph-424871dc.cjs.js');
17
+ require('./PackageGraph-cbbcb60d.cjs.js');
18
18
  require('@manypkg/get-packages');
19
19
  require('rollup');
20
20
  require('@rollup/plugin-commonjs');
@@ -40,7 +40,7 @@ require('html-webpack-plugin');
40
40
  require('react-dev-utils/ModuleScopePlugin');
41
41
  require('run-script-webpack-plugin');
42
42
  require('webpack-node-externals');
43
- require('./paths-820ff228.cjs.js');
43
+ require('./paths-adb593c7.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-e2a2d4a6.cjs.js');
53
+ require('./config-b04e9537.cjs.js');
54
54
  require('@backstage/config-loader');
55
55
  require('@backstage/config');
56
56
 
@@ -88,4 +88,4 @@ async function command(opts) {
88
88
  }
89
89
 
90
90
  exports.command = command;
91
- //# sourceMappingURL=index-3a4a537f.cjs.js.map
91
+ //# sourceMappingURL=index-22d71d53.cjs.js.map
@@ -46,15 +46,15 @@ class NotFoundError extends CustomError {
46
46
 
47
47
  const paths = cliCommon.findPaths(__dirname);
48
48
 
49
- var version$a = "0.15.1-next.1";
49
+ var version$a = "0.15.1-next.3";
50
50
 
51
- var version$9 = "0.19.0-next.1";
51
+ var version$9 = "0.19.0-next.3";
52
52
  var dependencies = {
53
- "@backstage/cli-common": "^0.1.9",
54
- "@backstage/config": "^1.0.1",
55
- "@backstage/config-loader": "^1.1.4-next.0",
56
- "@backstage/errors": "^1.1.0",
57
- "@backstage/release-manifests": "^0.0.6-next.0",
53
+ "@backstage/cli-common": "^0.1.10-next.0",
54
+ "@backstage/config": "^1.0.2-next.0",
55
+ "@backstage/config-loader": "^1.1.4-next.2",
56
+ "@backstage/errors": "^1.1.1-next.0",
57
+ "@backstage/release-manifests": "^0.0.6-next.2",
58
58
  "@backstage/types": "^1.0.0",
59
59
  "@manypkg/get-packages": "^1.1.3",
60
60
  "@octokit/request": "^6.0.0",
@@ -75,6 +75,7 @@ var dependencies = {
75
75
  "@swc/core": "^1.2.239",
76
76
  "@swc/helpers": "^0.4.7",
77
77
  "@swc/jest": "^0.2.22",
78
+ "@types/jest": "^27",
78
79
  "@types/webpack-env": "^1.15.2",
79
80
  "@typescript-eslint/eslint-plugin": "^5.9.0",
80
81
  "@typescript-eslint/parser": "^5.9.0",
@@ -148,13 +149,13 @@ var dependencies = {
148
149
  zod: "^3.11.6"
149
150
  };
150
151
  var devDependencies = {
151
- "@backstage/backend-common": "^0.15.1-next.1",
152
- "@backstage/config": "^1.0.1",
153
- "@backstage/core-app-api": "^1.1.0-next.1",
154
- "@backstage/core-components": "^0.11.1-next.1",
155
- "@backstage/core-plugin-api": "^1.0.6-next.1",
156
- "@backstage/dev-utils": "^1.0.6-next.1",
157
- "@backstage/test-utils": "^1.2.0-next.1",
152
+ "@backstage/backend-common": "^0.15.1-next.3",
153
+ "@backstage/config": "^1.0.2-next.0",
154
+ "@backstage/core-app-api": "^1.1.0-next.3",
155
+ "@backstage/core-components": "^0.11.1-next.3",
156
+ "@backstage/core-plugin-api": "^1.0.6-next.3",
157
+ "@backstage/dev-utils": "^1.0.6-next.2",
158
+ "@backstage/test-utils": "^1.2.0-next.3",
158
159
  "@backstage/theme": "^0.2.16",
159
160
  "@types/diff": "^5.0.0",
160
161
  "@types/express": "^4.17.6",
@@ -174,26 +175,27 @@ var devDependencies = {
174
175
  "@types/yarnpkg__lockfile": "^1.1.4",
175
176
  del: "^6.0.0",
176
177
  "mock-fs": "^5.1.0",
177
- msw: "^0.45.0",
178
+ msw: "^0.47.0",
178
179
  nodemon: "^2.0.2",
179
- "ts-node": "^10.0.0"
180
+ "ts-node": "^10.0.0",
181
+ "type-fest": "^2.0.0"
180
182
  };
181
183
 
182
- var version$8 = "1.0.1";
184
+ var version$8 = "1.0.2-next.0";
183
185
 
184
- var version$7 = "1.1.0-next.1";
186
+ var version$7 = "1.1.0-next.3";
185
187
 
186
- var version$6 = "0.11.1-next.1";
188
+ var version$6 = "0.11.1-next.3";
187
189
 
188
- var version$5 = "1.0.6-next.1";
190
+ var version$5 = "1.0.6-next.3";
189
191
 
190
- var version$4 = "1.0.6-next.1";
192
+ var version$4 = "1.0.6-next.2";
191
193
 
192
- var version$3 = "1.2.0-next.1";
194
+ var version$3 = "1.2.0-next.3";
193
195
 
194
196
  var version$2 = "0.2.16";
195
197
 
196
- var version$1 = "1.6.0-next.1";
198
+ var version$1 = "1.6.0-next.3";
197
199
 
198
200
  const packageVersions = {
199
201
  "@backstage/backend-common": version$a,
@@ -258,7 +260,7 @@ function registerRepoCommand(program) {
258
260
  ).option(
259
261
  "--since <ref>",
260
262
  "Only build packages and their dev dependents that changed since the specified ref"
261
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-99235d84.cjs.js'); }).then((m) => m.command)));
263
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-a80c880d.cjs.js'); }).then((m) => m.command)));
262
264
  command.command("lint").description("Lint all packages in the project").option(
263
265
  "--format <format>",
264
266
  "Lint report output format",
@@ -266,9 +268,10 @@ function registerRepoCommand(program) {
266
268
  ).option(
267
269
  "--since <ref>",
268
270
  "Only lint packages that changed since the specified ref"
269
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-886fb5df.cjs.js'); }).then((m) => m.command)));
271
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-bbf17e89.cjs.js'); }).then((m) => m.command)));
272
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-44c36da0.cjs.js'); }).then((m) => m.command)));
270
273
  command.command("list-deprecations", { hidden: true }).description("List deprecations. [EXPERIMENTAL]").option("--json", "Output as JSON").action(
271
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-4273a5a5.cjs.js'); }).then((m) => m.command))
274
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-1a376bc8.cjs.js'); }).then((m) => m.command))
272
275
  );
273
276
  }
274
277
  function registerScriptCommand(program) {
@@ -276,7 +279,7 @@ function registerScriptCommand(program) {
276
279
  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(
277
280
  "--inspect-brk",
278
281
  "Enable debugger in Node.js environments, breaking before code starts"
279
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-d4a2dd72.cjs.js'); }).then((m) => m.command)));
282
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-0b77afc5.cjs.js'); }).then((m) => m.command)));
280
283
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
281
284
  "--minify",
282
285
  "Minify the generated code. Does not apply to app or backend packages."
@@ -294,37 +297,37 @@ function registerScriptCommand(program) {
294
297
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
295
298
  (opt, opts) => opts ? [...opts, opt] : [opt],
296
299
  Array()
297
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-3a4a537f.cjs.js'); }).then((m) => m.command)));
300
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-22d71d53.cjs.js'); }).then((m) => m.command)));
298
301
  command.command("lint [directories...]").option(
299
302
  "--format <format>",
300
303
  "Lint report output format",
301
304
  "eslint-formatter-friendly"
302
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-b1213456.cjs.js'); }).then((m) => m.default)));
303
- 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-d54a7f33.cjs.js'); }).then((m) => m.default)));
304
- 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-3c44b003.cjs.js'); }).then((m) => m.command)));
305
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-cd509a41.cjs.js'); }).then((m) => m.default)));
306
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-b4b51d9e.cjs.js'); }).then((m) => m.pre)));
307
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-b4b51d9e.cjs.js'); }).then((m) => m.post)));
305
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-4ea1cd7d.cjs.js'); }).then((m) => m.default)));
306
+ 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-7f135639.cjs.js'); }).then((m) => m.default)));
307
+ 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-2e7bcb7b.cjs.js'); }).then((m) => m.command)));
308
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-d0639824.cjs.js'); }).then((m) => m.default)));
309
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-17918a36.cjs.js'); }).then((m) => m.pre)));
310
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-17918a36.cjs.js'); }).then((m) => m.post)));
308
311
  }
309
312
  function registerMigrateCommand(program) {
310
313
  const command = program.command("migrate [command]").description("Migration utilities");
311
- 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-03b55c0a.cjs.js'); }).then((m) => m.default)));
314
+ 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-5a08fd56.cjs.js'); }).then((m) => m.default)));
312
315
  command.command("package-scripts").description("Set package scripts according to each package role").action(
313
- lazy(() => Promise.resolve().then(function () { return require('./packageScripts-e960be45.cjs.js'); }).then((m) => m.command))
316
+ lazy(() => Promise.resolve().then(function () { return require('./packageScripts-3d6c88f7.cjs.js'); }).then((m) => m.command))
314
317
  );
315
318
  command.command("package-lint-configs").description(
316
319
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
317
320
  ).action(
318
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-ff7728bc.cjs.js'); }).then((m) => m.command))
321
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-4b48e7c0.cjs.js'); }).then((m) => m.command))
319
322
  );
320
323
  command.command("react-router-deps").description(
321
324
  "Migrates the react-router dependencies for all packages to be peer dependencies"
322
325
  ).action(
323
- lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-2399528b.cjs.js'); }).then((m) => m.command))
326
+ lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-af437b7b.cjs.js'); }).then((m) => m.command))
324
327
  );
325
328
  }
326
329
  function registerCommands(program) {
327
- program.command("create").storeOptionsAsProperties(false).description(
330
+ program.command("new").storeOptionsAsProperties(false).description(
328
331
  "Open up an interactive guide to creating new things in your app"
329
332
  ).option(
330
333
  "--select <name>",
@@ -337,41 +340,60 @@ function registerCommands(program) {
337
340
  ).option("--scope <scope>", "The scope to use for new packages").option(
338
341
  "--npm-registry <URL>",
339
342
  "The package registry to use for new packages"
340
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./create-86c41604.cjs.js'); }).then((m) => m.default)));
341
- program.command("create-plugin").option(
343
+ ).option(
344
+ "--baseVersion <version>",
345
+ "The version to use for any new packages (default: 0.1.0)"
346
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-dc185c76.cjs.js'); }).then((m) => m.default)));
347
+ program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
348
+ "Open up an interactive guide to creating new things in your app [DEPRECATED]"
349
+ ).option(
350
+ "--select <name>",
351
+ "Select the thing you want to be creating upfront"
352
+ ).option(
353
+ "--option <name>=<value>",
354
+ "Pre-fill options for the creation process",
355
+ (opt, arr) => [...arr, opt],
356
+ []
357
+ ).option("--scope <scope>", "The scope to use for new packages").option(
358
+ "--npm-registry <URL>",
359
+ "The package registry to use for new packages"
360
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-dc185c76.cjs.js'); }).then((m) => m.default)));
361
+ program.command("create-plugin", { hidden: true }).option(
342
362
  "--backend",
343
363
  "Create plugin with the backend dependencies as default"
344
- ).description("Creates a new plugin in the current repository").option("--scope <scope>", "npm scope").option("--npm-registry <URL>", "npm registry URL").option("--no-private", "Public npm package").action(
345
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-c26303d8.cjs.js'); }).then((m) => m.default))
364
+ ).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(
365
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-38bde20d.cjs.js'); }).then((m) => m.default))
346
366
  );
347
- program.command("plugin:diff").option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description("Diff an existing plugin with the creation template").action(lazy(() => Promise.resolve().then(function () { return require('./diff-6a78ec4c.cjs.js'); }).then((m) => m.default)));
367
+ program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
368
+ "Diff an existing plugin with the creation template [DEPRECATED]"
369
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-106d4724.cjs.js'); }).then((m) => m.default)));
348
370
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
349
371
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
350
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-d54a7f33.cjs.js'); }).then((m) => m.default)));
372
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-7f135639.cjs.js'); }).then((m) => m.default)));
351
373
  program.command("config:docs").option(
352
374
  "--package <name>",
353
375
  "Only include the schema that applies to the given package"
354
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-8e386279.cjs.js'); }).then((m) => m.default)));
376
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-b4ec9616.cjs.js'); }).then((m) => m.default)));
355
377
  program.command("config:print").option(
356
378
  "--package <name>",
357
379
  "Only load config schema that applies to the given package"
358
380
  ).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(
359
381
  "--format <format>",
360
382
  "Format to print the configuration in, either json or yaml [yaml]"
361
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-b50ffebc.cjs.js'); }).then((m) => m.default)));
383
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-69c54f76.cjs.js'); }).then((m) => m.default)));
362
384
  program.command("config:check").option(
363
385
  "--package <name>",
364
386
  "Only load config schema that applies to the given package"
365
387
  ).option("--lax", "Do not require environment variables to be set").option("--frontend", "Only validate the frontend configuration").option("--deprecated", "Output deprecated configuration settings").option(...configOption).description(
366
388
  "Validate that the given configuration loads and matches schema"
367
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-a9880467.cjs.js'); }).then((m) => m.default)));
389
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-6dc3e551.cjs.js'); }).then((m) => m.default)));
368
390
  program.command("config:schema").option(
369
391
  "--package <name>",
370
392
  "Only output config schema that applies to the given package"
371
393
  ).option(
372
394
  "--format <format>",
373
395
  "Format to print the schema in, either json or yaml [yaml]"
374
- ).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-a805969e.cjs.js'); }).then((m) => m.default)));
396
+ ).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-6176df9d.cjs.js'); }).then((m) => m.default)));
375
397
  registerRepoCommand(program);
376
398
  registerScriptCommand(program);
377
399
  registerMigrateCommand(program);
@@ -382,16 +404,16 @@ function registerCommands(program) {
382
404
  "--release <version|next|main>",
383
405
  "Bump to a specific Backstage release line or version",
384
406
  "main"
385
- ).description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-fecbbc0a.cjs.js'); }).then((m) => m.default)));
386
- 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-20a7382f.cjs.js'); }).then((m) => m.default)));
387
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-cd509a41.cjs.js'); }).then((m) => m.default)));
388
- program.command("build-workspace <workspace-dir> [packages...]").description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-09512b94.cjs.js'); }).then((m) => m.default)));
389
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-f798881b.cjs.js'); }).then((m) => m.default)));
390
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-696f22bf.cjs.js'); }).then((m) => m.default)));
407
+ ).description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-1b765f38.cjs.js'); }).then((m) => m.default)));
408
+ 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-bac940ad.cjs.js'); }).then((m) => m.default)));
409
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-d0639824.cjs.js'); }).then((m) => m.default)));
410
+ program.command("build-workspace <workspace-dir> [packages...]").description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-54b59635.cjs.js'); }).then((m) => m.default)));
411
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-ddecf380.cjs.js'); }).then((m) => m.default)));
412
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-dde556a3.cjs.js'); }).then((m) => m.default)));
391
413
  program.command("install [plugin-id]", { hidden: true }).option(
392
414
  "--from <packageJsonFilePath>",
393
415
  "Install from a local package.json containing the installation recipe"
394
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-acc8eb12.cjs.js'); }).then((m) => m.default)));
416
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-0198741a.cjs.js'); }).then((m) => m.default)));
395
417
  }
396
418
  function lazy(getActionFunc) {
397
419
  return async (...args) => {
@@ -435,4 +457,4 @@ exports.devDependencies = devDependencies;
435
457
  exports.paths = paths;
436
458
  exports.version = version;
437
459
  exports.version$1 = version$9;
438
- //# sourceMappingURL=index-82587726.cjs.js.map
460
+ //# sourceMappingURL=index-4a52b979.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-82587726.cjs.js');
7
+ var index$1 = require('./index-4a52b979.cjs.js');
8
8
  var crypto = require('crypto');
9
9
  var openBrowser = require('react-dev-utils/openBrowser');
10
10
  var request = require('@octokit/request');
@@ -222,4 +222,4 @@ async function verifyGithubOrg(org) {
222
222
  }
223
223
 
224
224
  exports["default"] = index;
225
- //# sourceMappingURL=index-f798881b.cjs.js.map
225
+ //# sourceMappingURL=index-ddecf380.cjs.js.map
@@ -1,12 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-82587726.cjs.js');
3
+ var index = require('./index-4a52b979.cjs.js');
4
4
  var os = require('os');
5
- var run = require('./run-0ac37ebd.cjs.js');
5
+ var run = require('./run-20edcac9.cjs.js');
6
6
  var Lockfile = require('./Lockfile-72b7072e.cjs.js');
7
7
  require('minimatch');
8
8
  require('@manypkg/get-packages');
9
9
  require('chalk');
10
+ require('./yarn-6cd89e16.cjs.js');
10
11
  var fs = require('fs-extra');
11
12
  require('commander');
12
13
  require('semver');
@@ -57,4 +58,4 @@ var info = async () => {
57
58
  };
58
59
 
59
60
  exports["default"] = info;
60
- //# sourceMappingURL=info-696f22bf.cjs.js.map
61
+ //# sourceMappingURL=info-dde556a3.cjs.js.map
@@ -4,19 +4,20 @@ var fs = require('fs-extra');
4
4
  require('semver');
5
5
  require('@yarnpkg/parsers');
6
6
  require('@yarnpkg/lockfile');
7
- var packages = require('./packages-fab3e760.cjs.js');
8
- var index = require('./index-82587726.cjs.js');
7
+ var packages = require('./packages-032b4d94.cjs.js');
8
+ var index = require('./index-4a52b979.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-0ac37ebd.cjs.js');
12
+ var run = require('./run-20edcac9.cjs.js');
13
13
  require('minimatch');
14
14
  require('@manypkg/get-packages');
15
- require('commander');
16
- require('@backstage/cli-common');
15
+ require('./yarn-6cd89e16.cjs.js');
17
16
  require('@backstage/errors');
18
17
  require('child_process');
19
18
  require('util');
19
+ require('commander');
20
+ require('@backstage/cli-common');
20
21
 
21
22
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
22
23
 
@@ -267,4 +268,4 @@ var install = async (pluginId, cmd) => {
267
268
  };
268
269
 
269
270
  exports["default"] = install;
270
- //# sourceMappingURL=install-acc8eb12.cjs.js.map
271
+ //# sourceMappingURL=install-0198741a.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-82587726.cjs.js');
3
+ var index = require('./index-4a52b979.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-b1213456.cjs.js.map
36
+ //# sourceMappingURL=lint-4ea1cd7d.cjs.js.map
@@ -3,17 +3,18 @@
3
3
  var Lockfile = require('./Lockfile-72b7072e.cjs.js');
4
4
  require('minimatch');
5
5
  require('@manypkg/get-packages');
6
- require('./run-0ac37ebd.cjs.js');
7
6
  require('chalk');
8
- var index = require('./index-82587726.cjs.js');
7
+ require('./yarn-6cd89e16.cjs.js');
8
+ require('./run-20edcac9.cjs.js');
9
+ var index = require('./index-4a52b979.cjs.js');
9
10
  var partition = require('lodash/partition');
10
11
  require('fs-extra');
11
12
  require('semver');
12
13
  require('@yarnpkg/parsers');
13
14
  require('@yarnpkg/lockfile');
15
+ require('@backstage/errors');
14
16
  require('child_process');
15
17
  require('util');
16
- require('@backstage/errors');
17
18
  require('commander');
18
19
  require('@backstage/cli-common');
19
20
 
@@ -104,4 +105,4 @@ function logArray(arr, header, each) {
104
105
  exports["default"] = lint;
105
106
  exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
106
107
  exports.includedFilter = includedFilter;
107
- //# sourceMappingURL=lint-20a7382f.cjs.js.map
108
+ //# sourceMappingURL=lint-bac940ad.cjs.js.map
@@ -2,9 +2,9 @@
2
2
 
3
3
  var chalk = require('chalk');
4
4
  var path = require('path');
5
- var PackageGraph = require('./PackageGraph-424871dc.cjs.js');
5
+ var PackageGraph = require('./PackageGraph-cbbcb60d.cjs.js');
6
6
  var parallel = require('./parallel-a8f6219c.cjs.js');
7
- var index = require('./index-82587726.cjs.js');
7
+ var index = require('./index-4a52b979.cjs.js');
8
8
  require('@manypkg/get-packages');
9
9
  require('@backstage/errors');
10
10
  require('child_process');
@@ -78,7 +78,7 @@ async function command(opts) {
78
78
  if (resultText) {
79
79
  console.log();
80
80
  console.log(chalk__default["default"].red(`Lint failed in ${relativeDir}:`));
81
- console.log(resultText.trimLeft());
81
+ console.log(resultText.trimStart());
82
82
  failed = true;
83
83
  }
84
84
  }
@@ -88,4 +88,4 @@ async function command(opts) {
88
88
  }
89
89
 
90
90
  exports.command = command;
91
- //# sourceMappingURL=lint-886fb5df.cjs.js.map
91
+ //# sourceMappingURL=lint-bbf17e89.cjs.js.map
@@ -3,8 +3,8 @@
3
3
  var chalk = require('chalk');
4
4
  var eslint = require('eslint');
5
5
  var path = require('path');
6
- var index = require('./index-82587726.cjs.js');
7
- var PackageGraph = require('./PackageGraph-424871dc.cjs.js');
6
+ var index = require('./index-4a52b979.cjs.js');
7
+ var PackageGraph = require('./PackageGraph-cbbcb60d.cjs.js');
8
8
  require('commander');
9
9
  require('fs-extra');
10
10
  require('semver');
@@ -79,4 +79,4 @@ async function command(opts) {
79
79
  }
80
80
 
81
81
  exports.command = command;
82
- //# sourceMappingURL=list-deprecations-4273a5a5.cjs.js.map
82
+ //# sourceMappingURL=list-deprecations-1a376bc8.cjs.js.map