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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/config/jest.js +51 -1
  3. package/dist/cjs/{PackageGraph-424871dc.cjs.js → PackageGraph-7f6ce640.cjs.js} +2 -2
  4. package/dist/cjs/{build-99235d84.cjs.js → build-1348e377.cjs.js} +9 -9
  5. package/dist/cjs/{buildBackend-39c64859.cjs.js → buildBackend-c6ecd150.cjs.js} +6 -6
  6. package/dist/cjs/{buildWorkspace-09512b94.cjs.js → buildWorkspace-5a2c7a44.cjs.js} +6 -6
  7. package/dist/cjs/{bump-fecbbc0a.cjs.js → bump-03bb3d5a.cjs.js} +7 -13
  8. package/dist/cjs/clean-314d90b0.cjs.js +50 -0
  9. package/dist/cjs/{clean-cd509a41.cjs.js → clean-6c2e6474.cjs.js} +2 -2
  10. package/dist/cjs/{config-e2a2d4a6.cjs.js → config-0584f4a4.cjs.js} +6 -4
  11. package/dist/cjs/{createDistWorkspace-82c60398.cjs.js → createDistWorkspace-ebaeac2b.cjs.js} +36 -20
  12. package/dist/cjs/{createPlugin-c26303d8.cjs.js → createPlugin-bbb0c1ce.cjs.js} +6 -5
  13. package/dist/cjs/{diff-6a78ec4c.cjs.js → diff-ebba1180.cjs.js} +2 -2
  14. package/dist/cjs/{docs-8e386279.cjs.js → docs-aae92f2e.cjs.js} +4 -4
  15. package/dist/cjs/{fix-3c44b003.cjs.js → fix-37c5344c.cjs.js} +3 -3
  16. package/dist/cjs/{index-f798881b.cjs.js → index-26e52421.cjs.js} +2 -2
  17. package/dist/cjs/{index-3a4a537f.cjs.js → index-438ca541.cjs.js} +9 -9
  18. package/dist/cjs/{index-82587726.cjs.js → index-477a1b06.cjs.js} +71 -50
  19. package/dist/cjs/{index-d4a2dd72.cjs.js → index-a0a5df42.cjs.js} +12 -9
  20. package/dist/cjs/{info-696f22bf.cjs.js → info-d8c0e2b2.cjs.js} +3 -3
  21. package/dist/cjs/{install-acc8eb12.cjs.js → install-0cefc510.cjs.js} +4 -4
  22. package/dist/cjs/{lint-b1213456.cjs.js → lint-4260c3e6.cjs.js} +2 -2
  23. package/dist/cjs/{lint-20a7382f.cjs.js → lint-c098b94a.cjs.js} +3 -3
  24. package/dist/cjs/{lint-886fb5df.cjs.js → lint-df95a247.cjs.js} +4 -4
  25. package/dist/cjs/{list-deprecations-4273a5a5.cjs.js → list-deprecations-91fc7b6c.cjs.js} +3 -3
  26. package/dist/cjs/{create-86c41604.cjs.js → new-2e629087.cjs.js} +26 -33
  27. package/dist/cjs/{pack-b4b51d9e.cjs.js → pack-c1ade706.cjs.js} +2 -2
  28. package/dist/cjs/{packageLintConfigs-ff7728bc.cjs.js → packageLintConfigs-dd31914f.cjs.js} +4 -4
  29. package/dist/cjs/{packageRole-03b55c0a.cjs.js → packageRole-4afa588d.cjs.js} +3 -3
  30. package/dist/cjs/{packageRoles-fdfa8905.cjs.js → packageRoles-f485bb0b.cjs.js} +2 -2
  31. package/dist/cjs/{packageScripts-e960be45.cjs.js → packageScripts-926909d2.cjs.js} +4 -4
  32. package/dist/cjs/{packages-fab3e760.cjs.js → packages-c8abe608.cjs.js} +3 -3
  33. package/dist/cjs/{paths-820ff228.cjs.js → paths-73d8c4fd.cjs.js} +3 -4
  34. package/dist/cjs/{print-b50ffebc.cjs.js → print-71f20339.cjs.js} +4 -4
  35. package/dist/cjs/{reactRouterDeps-2399528b.cjs.js → reactRouterDeps-b22fb782.cjs.js} +4 -4
  36. package/dist/cjs/{run-0ac37ebd.cjs.js → run-274b954a.cjs.js} +2 -2
  37. package/dist/cjs/{schema-a805969e.cjs.js → schema-28b70f3e.cjs.js} +4 -4
  38. package/dist/cjs/{tasks-7770ecc3.cjs.js → tasks-ba198fb1.cjs.js} +3 -4
  39. package/dist/cjs/{test-d54a7f33.cjs.js → test-130c28c6.cjs.js} +3 -3
  40. package/dist/cjs/{validate-a9880467.cjs.js → validate-48f9f572.cjs.js} +4 -4
  41. package/dist/index.cjs.js +1 -1
  42. package/package.json +38 -12
  43. package/templates/default-backend-plugin/package.json.hbs +1 -1
  44. package/templates/default-plugin/package.json.hbs +1 -1
@@ -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-ebaeac2b.cjs.js');
4
+ var packageRoles = require('./packageRoles-f485bb0b.cjs.js');
5
+ var index = require('./index-477a1b06.cjs.js');
6
+ var buildBackend = require('./buildBackend-c6ecd150.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-274b954a.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-7f6ce640.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-73d8c4fd.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-0584f4a4.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-438ca541.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.2";
50
50
 
51
- var version$9 = "0.19.0-next.1";
51
+ var version$9 = "0.19.0-next.2";
52
52
  var dependencies = {
53
53
  "@backstage/cli-common": "^0.1.9",
54
54
  "@backstage/config": "^1.0.1",
55
- "@backstage/config-loader": "^1.1.4-next.0",
55
+ "@backstage/config-loader": "^1.1.4-next.1",
56
56
  "@backstage/errors": "^1.1.0",
57
- "@backstage/release-manifests": "^0.0.6-next.0",
57
+ "@backstage/release-manifests": "^0.0.6-next.1",
58
58
  "@backstage/types": "^1.0.0",
59
59
  "@manypkg/get-packages": "^1.1.3",
60
60
  "@octokit/request": "^6.0.0",
@@ -148,13 +148,13 @@ var dependencies = {
148
148
  zod: "^3.11.6"
149
149
  };
150
150
  var devDependencies = {
151
- "@backstage/backend-common": "^0.15.1-next.1",
151
+ "@backstage/backend-common": "^0.15.1-next.2",
152
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",
153
+ "@backstage/core-app-api": "^1.1.0-next.2",
154
+ "@backstage/core-components": "^0.11.1-next.2",
155
+ "@backstage/core-plugin-api": "^1.0.6-next.2",
156
156
  "@backstage/dev-utils": "^1.0.6-next.1",
157
- "@backstage/test-utils": "^1.2.0-next.1",
157
+ "@backstage/test-utils": "^1.2.0-next.2",
158
158
  "@backstage/theme": "^0.2.16",
159
159
  "@types/diff": "^5.0.0",
160
160
  "@types/express": "^4.17.6",
@@ -174,26 +174,27 @@ var devDependencies = {
174
174
  "@types/yarnpkg__lockfile": "^1.1.4",
175
175
  del: "^6.0.0",
176
176
  "mock-fs": "^5.1.0",
177
- msw: "^0.45.0",
177
+ msw: "^0.47.0",
178
178
  nodemon: "^2.0.2",
179
- "ts-node": "^10.0.0"
179
+ "ts-node": "^10.0.0",
180
+ "type-fest": "^2.0.0"
180
181
  };
181
182
 
182
183
  var version$8 = "1.0.1";
183
184
 
184
- var version$7 = "1.1.0-next.1";
185
+ var version$7 = "1.1.0-next.2";
185
186
 
186
- var version$6 = "0.11.1-next.1";
187
+ var version$6 = "0.11.1-next.2";
187
188
 
188
- var version$5 = "1.0.6-next.1";
189
+ var version$5 = "1.0.6-next.2";
189
190
 
190
191
  var version$4 = "1.0.6-next.1";
191
192
 
192
- var version$3 = "1.2.0-next.1";
193
+ var version$3 = "1.2.0-next.2";
193
194
 
194
195
  var version$2 = "0.2.16";
195
196
 
196
- var version$1 = "1.6.0-next.1";
197
+ var version$1 = "1.6.0-next.2";
197
198
 
198
199
  const packageVersions = {
199
200
  "@backstage/backend-common": version$a,
@@ -258,7 +259,7 @@ function registerRepoCommand(program) {
258
259
  ).option(
259
260
  "--since <ref>",
260
261
  "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)));
262
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-1348e377.cjs.js'); }).then((m) => m.command)));
262
263
  command.command("lint").description("Lint all packages in the project").option(
263
264
  "--format <format>",
264
265
  "Lint report output format",
@@ -266,9 +267,10 @@ function registerRepoCommand(program) {
266
267
  ).option(
267
268
  "--since <ref>",
268
269
  "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)));
270
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-df95a247.cjs.js'); }).then((m) => m.command)));
271
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-314d90b0.cjs.js'); }).then((m) => m.command)));
270
272
  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))
273
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-91fc7b6c.cjs.js'); }).then((m) => m.command))
272
274
  );
273
275
  }
274
276
  function registerScriptCommand(program) {
@@ -276,7 +278,7 @@ function registerScriptCommand(program) {
276
278
  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
279
  "--inspect-brk",
278
280
  "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)));
281
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-a0a5df42.cjs.js'); }).then((m) => m.command)));
280
282
  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
283
  "--minify",
282
284
  "Minify the generated code. Does not apply to app or backend packages."
@@ -294,37 +296,37 @@ function registerScriptCommand(program) {
294
296
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
295
297
  (opt, opts) => opts ? [...opts, opt] : [opt],
296
298
  Array()
297
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-3a4a537f.cjs.js'); }).then((m) => m.command)));
299
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-438ca541.cjs.js'); }).then((m) => m.command)));
298
300
  command.command("lint [directories...]").option(
299
301
  "--format <format>",
300
302
  "Lint report output format",
301
303
  "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)));
304
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-4260c3e6.cjs.js'); }).then((m) => m.default)));
305
+ 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-130c28c6.cjs.js'); }).then((m) => m.default)));
306
+ 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-37c5344c.cjs.js'); }).then((m) => m.command)));
307
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-6c2e6474.cjs.js'); }).then((m) => m.default)));
308
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-c1ade706.cjs.js'); }).then((m) => m.pre)));
309
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-c1ade706.cjs.js'); }).then((m) => m.post)));
308
310
  }
309
311
  function registerMigrateCommand(program) {
310
312
  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)));
313
+ 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-4afa588d.cjs.js'); }).then((m) => m.default)));
312
314
  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))
315
+ lazy(() => Promise.resolve().then(function () { return require('./packageScripts-926909d2.cjs.js'); }).then((m) => m.command))
314
316
  );
315
317
  command.command("package-lint-configs").description(
316
318
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
317
319
  ).action(
318
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-ff7728bc.cjs.js'); }).then((m) => m.command))
320
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-dd31914f.cjs.js'); }).then((m) => m.command))
319
321
  );
320
322
  command.command("react-router-deps").description(
321
323
  "Migrates the react-router dependencies for all packages to be peer dependencies"
322
324
  ).action(
323
- lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-2399528b.cjs.js'); }).then((m) => m.command))
325
+ lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-b22fb782.cjs.js'); }).then((m) => m.command))
324
326
  );
325
327
  }
326
328
  function registerCommands(program) {
327
- program.command("create").storeOptionsAsProperties(false).description(
329
+ program.command("new").storeOptionsAsProperties(false).description(
328
330
  "Open up an interactive guide to creating new things in your app"
329
331
  ).option(
330
332
  "--select <name>",
@@ -337,41 +339,60 @@ function registerCommands(program) {
337
339
  ).option("--scope <scope>", "The scope to use for new packages").option(
338
340
  "--npm-registry <URL>",
339
341
  "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(
342
+ ).option(
343
+ "--baseVersion <version>",
344
+ "The version to use for any new packages (default: 0.1.0)"
345
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-2e629087.cjs.js'); }).then((m) => m.default)));
346
+ program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
347
+ "Open up an interactive guide to creating new things in your app [DEPRECATED]"
348
+ ).option(
349
+ "--select <name>",
350
+ "Select the thing you want to be creating upfront"
351
+ ).option(
352
+ "--option <name>=<value>",
353
+ "Pre-fill options for the creation process",
354
+ (opt, arr) => [...arr, opt],
355
+ []
356
+ ).option("--scope <scope>", "The scope to use for new packages").option(
357
+ "--npm-registry <URL>",
358
+ "The package registry to use for new packages"
359
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-2e629087.cjs.js'); }).then((m) => m.default)));
360
+ program.command("create-plugin", { hidden: true }).option(
342
361
  "--backend",
343
362
  "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))
363
+ ).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(
364
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-bbb0c1ce.cjs.js'); }).then((m) => m.default))
346
365
  );
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)));
366
+ program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
367
+ "Diff an existing plugin with the creation template [DEPRECATED]"
368
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-ebba1180.cjs.js'); }).then((m) => m.default)));
348
369
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
349
370
  "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)));
371
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-130c28c6.cjs.js'); }).then((m) => m.default)));
351
372
  program.command("config:docs").option(
352
373
  "--package <name>",
353
374
  "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)));
375
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-aae92f2e.cjs.js'); }).then((m) => m.default)));
355
376
  program.command("config:print").option(
356
377
  "--package <name>",
357
378
  "Only load config schema that applies to the given package"
358
379
  ).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
380
  "--format <format>",
360
381
  "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)));
382
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-71f20339.cjs.js'); }).then((m) => m.default)));
362
383
  program.command("config:check").option(
363
384
  "--package <name>",
364
385
  "Only load config schema that applies to the given package"
365
386
  ).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
387
  "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)));
388
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-48f9f572.cjs.js'); }).then((m) => m.default)));
368
389
  program.command("config:schema").option(
369
390
  "--package <name>",
370
391
  "Only output config schema that applies to the given package"
371
392
  ).option(
372
393
  "--format <format>",
373
394
  "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)));
395
+ ).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-28b70f3e.cjs.js'); }).then((m) => m.default)));
375
396
  registerRepoCommand(program);
376
397
  registerScriptCommand(program);
377
398
  registerMigrateCommand(program);
@@ -382,16 +403,16 @@ function registerCommands(program) {
382
403
  "--release <version|next|main>",
383
404
  "Bump to a specific Backstage release line or version",
384
405
  "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)));
406
+ ).description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-03bb3d5a.cjs.js'); }).then((m) => m.default)));
407
+ 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-c098b94a.cjs.js'); }).then((m) => m.default)));
408
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-6c2e6474.cjs.js'); }).then((m) => m.default)));
409
+ 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-5a2c7a44.cjs.js'); }).then((m) => m.default)));
410
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-26e52421.cjs.js'); }).then((m) => m.default)));
411
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-d8c0e2b2.cjs.js'); }).then((m) => m.default)));
391
412
  program.command("install [plugin-id]", { hidden: true }).option(
392
413
  "--from <packageJsonFilePath>",
393
414
  "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)));
415
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-0cefc510.cjs.js'); }).then((m) => m.default)));
395
416
  }
396
417
  function lazy(getActionFunc) {
397
418
  return async (...args) => {
@@ -435,4 +456,4 @@ exports.devDependencies = devDependencies;
435
456
  exports.paths = paths;
436
457
  exports.version = version;
437
458
  exports.version$1 = version$9;
438
- //# sourceMappingURL=index-82587726.cjs.js.map
459
+ //# sourceMappingURL=index-477a1b06.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-82587726.cjs.js');
4
+ var index = require('./index-477a1b06.cjs.js');
5
5
  var webpack = require('webpack');
6
- var paths = require('./paths-820ff228.cjs.js');
6
+ var paths = require('./paths-73d8c4fd.cjs.js');
7
7
  require('yn');
8
8
  require('path');
9
9
  require('react-dev-utils/FileSizeReporter');
@@ -17,18 +17,18 @@ 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-274b954a.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-0584f4a4.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
+ var lint = require('./lint-c098b94a.cjs.js');
31
+ var packageRoles = require('./packageRoles-f485bb0b.cjs.js');
32
32
  require('commander');
33
33
  require('semver');
34
34
  require('@backstage/errors');
@@ -37,7 +37,7 @@ require('child_process');
37
37
  require('util');
38
38
  require('@backstage/config-loader');
39
39
  require('@backstage/config');
40
- require('./PackageGraph-424871dc.cjs.js');
40
+ require('./PackageGraph-7f6ce640.cjs.js');
41
41
  require('@yarnpkg/parsers');
42
42
  require('@yarnpkg/lockfile');
43
43
  require('lodash/partition');
@@ -105,7 +105,10 @@ async function serveBundle(options) {
105
105
  historyApiFallback: {
106
106
  disableDotRule: true
107
107
  },
108
- https: url.protocol === "https:",
108
+ https: url.protocol === "https:" ? {
109
+ cert: options.fullConfig.getString("app.https.certificate.cert"),
110
+ key: options.fullConfig.getString("app.https.certificate.key")
111
+ } : false,
109
112
  host,
110
113
  port,
111
114
  proxy: pkg.proxy,
@@ -241,4 +244,4 @@ async function command(opts) {
241
244
  }
242
245
 
243
246
  exports.command = command;
244
- //# sourceMappingURL=index-d4a2dd72.cjs.js.map
247
+ //# sourceMappingURL=index-a0a5df42.cjs.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-82587726.cjs.js');
3
+ var index = require('./index-477a1b06.cjs.js');
4
4
  var os = require('os');
5
- var run = require('./run-0ac37ebd.cjs.js');
5
+ var run = require('./run-274b954a.cjs.js');
6
6
  var Lockfile = require('./Lockfile-72b7072e.cjs.js');
7
7
  require('minimatch');
8
8
  require('@manypkg/get-packages');
@@ -57,4 +57,4 @@ var info = async () => {
57
57
  };
58
58
 
59
59
  exports["default"] = info;
60
- //# sourceMappingURL=info-696f22bf.cjs.js.map
60
+ //# sourceMappingURL=info-d8c0e2b2.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-fab3e760.cjs.js');
8
- var index = require('./index-82587726.cjs.js');
7
+ var packages = require('./packages-c8abe608.cjs.js');
8
+ var index = require('./index-477a1b06.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-274b954a.cjs.js');
13
13
  require('minimatch');
14
14
  require('@manypkg/get-packages');
15
15
  require('commander');
@@ -267,4 +267,4 @@ var install = async (pluginId, cmd) => {
267
267
  };
268
268
 
269
269
  exports["default"] = install;
270
- //# sourceMappingURL=install-acc8eb12.cjs.js.map
270
+ //# sourceMappingURL=install-0cefc510.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-477a1b06.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-4260c3e6.cjs.js.map
@@ -3,9 +3,9 @@
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');
6
+ require('./run-274b954a.cjs.js');
7
7
  require('chalk');
8
- var index = require('./index-82587726.cjs.js');
8
+ var index = require('./index-477a1b06.cjs.js');
9
9
  var partition = require('lodash/partition');
10
10
  require('fs-extra');
11
11
  require('semver');
@@ -104,4 +104,4 @@ function logArray(arr, header, each) {
104
104
  exports["default"] = lint;
105
105
  exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
106
106
  exports.includedFilter = includedFilter;
107
- //# sourceMappingURL=lint-20a7382f.cjs.js.map
107
+ //# sourceMappingURL=lint-c098b94a.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-7f6ce640.cjs.js');
6
6
  var parallel = require('./parallel-a8f6219c.cjs.js');
7
- var index = require('./index-82587726.cjs.js');
7
+ var index = require('./index-477a1b06.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-df95a247.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-477a1b06.cjs.js');
7
+ var PackageGraph = require('./PackageGraph-7f6ce640.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-91fc7b6c.cjs.js.map
@@ -7,12 +7,12 @@ 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-82587726.cjs.js');
11
- var tasks = require('./tasks-7770ecc3.cjs.js');
10
+ var index = require('./index-477a1b06.cjs.js');
11
+ var tasks = require('./tasks-ba198fb1.cjs.js');
12
12
  var Lockfile = require('./Lockfile-72b7072e.cjs.js');
13
13
  require('minimatch');
14
14
  require('@manypkg/get-packages');
15
- require('./run-0ac37ebd.cjs.js');
15
+ require('./run-274b954a.cjs.js');
16
16
  var partition = require('lodash/partition');
17
17
  var errors = require('@backstage/errors');
18
18
  require('commander');
@@ -100,7 +100,8 @@ async function executePluginPackageTemplate(ctx, options) {
100
100
  index.paths.resolveOwn("templates", options.templateName),
101
101
  tempDir,
102
102
  options.values,
103
- index.createPackageVersionProvider(lockfile)
103
+ index.createPackageVersionProvider(lockfile),
104
+ ctx.isMonoRepo
104
105
  );
105
106
  const pkgJsonPath = path.resolve(tempDir, "package.json");
106
107
  if (await fs__default["default"].pathExists(pkgJsonPath)) {
@@ -429,6 +430,17 @@ FactoryRegistry.factoryMap = new Map(
429
430
  Object.values(factories).map((factory) => [factory.name, factory])
430
431
  );
431
432
 
433
+ async function isMonoRepo() {
434
+ var _a;
435
+ const rootPackageJsonPath = index.paths.resolveTargetRoot("package.json");
436
+ try {
437
+ const pkg = await fs__default["default"].readJson(rootPackageJsonPath);
438
+ return Boolean((_a = pkg == null ? void 0 : pkg.workspaces) == null ? void 0 : _a.packages);
439
+ } catch (error) {
440
+ return false;
441
+ }
442
+ }
443
+
432
444
  function parseOptions(optionStrings) {
433
445
  const options = {};
434
446
  for (const str of optionStrings) {
@@ -443,7 +455,7 @@ function parseOptions(optionStrings) {
443
455
  }
444
456
  return options;
445
457
  }
446
- var create = async (opts) => {
458
+ var _new = async (opts) => {
447
459
  var _a;
448
460
  const factory = await FactoryRegistry.interactiveSelect(opts.select);
449
461
  const providedOptions = parseOptions(opts.option);
@@ -451,32 +463,13 @@ var create = async (opts) => {
451
463
  factory,
452
464
  providedOptions
453
465
  );
454
- let isMonoRepo = false;
455
- try {
456
- const rootPackageJson = await fs__default["default"].readJson(
457
- index.paths.resolveTargetRoot("package.json")
458
- );
459
- if (rootPackageJson.workspaces) {
460
- isMonoRepo = true;
461
- }
462
- } catch (error) {
463
- errors.assertError(error);
464
- if (error.code !== "ENOENT") {
465
- throw error;
466
- }
467
- }
468
466
  let defaultVersion = "0.1.0";
469
- try {
470
- const rootLernaJson = await fs__default["default"].readJson(
471
- index.paths.resolveTargetRoot("lerna.json")
472
- );
473
- if (rootLernaJson.version) {
474
- defaultVersion = rootLernaJson.version;
475
- }
476
- } catch (error) {
477
- errors.assertError(error);
478
- if (error.code !== "ENOENT") {
479
- throw error;
467
+ if (opts.baseVersion) {
468
+ defaultVersion = opts.baseVersion;
469
+ } else {
470
+ const lernaVersion = await fs__default["default"].readJson(index.paths.resolveTargetRoot("lerna.json")).then((pkg) => pkg.version).catch(() => void 0);
471
+ if (lernaVersion) {
472
+ defaultVersion = lernaVersion;
480
473
  }
481
474
  }
482
475
  const tempDirs = new Array();
@@ -488,7 +481,7 @@ var create = async (opts) => {
488
481
  let modified = false;
489
482
  try {
490
483
  await factory.create(options, {
491
- isMonoRepo,
484
+ isMonoRepo: await isMonoRepo(),
492
485
  defaultVersion,
493
486
  scope: (_a = opts.scope) == null ? void 0 : _a.replace(/^@/, ""),
494
487
  npmRegistry: opts.npmRegistry,
@@ -528,5 +521,5 @@ var create = async (opts) => {
528
521
  }
529
522
  };
530
523
 
531
- exports["default"] = create;
532
- //# sourceMappingURL=create-86c41604.cjs.js.map
524
+ exports["default"] = _new;
525
+ //# sourceMappingURL=new-2e629087.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-82587726.cjs.js');
4
+ var index = require('./index-477a1b06.cjs.js');
5
5
  var path = require('path');
6
6
  require('commander');
7
7
  require('chalk');
@@ -75,4 +75,4 @@ const post = async () => {
75
75
 
76
76
  exports.post = post;
77
77
  exports.pre = pre;
78
- //# sourceMappingURL=pack-b4b51d9e.cjs.js.map
78
+ //# sourceMappingURL=pack-c1ade706.cjs.js.map
@@ -2,10 +2,10 @@
2
2
 
3
3
  var fs = require('fs-extra');
4
4
  var path = require('path');
5
- var PackageGraph = require('./PackageGraph-424871dc.cjs.js');
6
- var run = require('./run-0ac37ebd.cjs.js');
5
+ var PackageGraph = require('./PackageGraph-7f6ce640.cjs.js');
6
+ var run = require('./run-274b954a.cjs.js');
7
7
  require('@manypkg/get-packages');
8
- require('./index-82587726.cjs.js');
8
+ require('./index-477a1b06.cjs.js');
9
9
  require('commander');
10
10
  require('chalk');
11
11
  require('semver');
@@ -80,4 +80,4 @@ async function command() {
80
80
  }
81
81
 
82
82
  exports.command = command;
83
- //# sourceMappingURL=packageLintConfigs-ff7728bc.cjs.js.map
83
+ //# sourceMappingURL=packageLintConfigs-dd31914f.cjs.js.map