@backstage/cli 0.22.1-next.1 → 0.22.1

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 (43) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/cjs/{Lockfile-938c566f.cjs.js → Lockfile-bc3a8337.cjs.js} +9 -1
  3. package/dist/cjs/{PackageGraph-e4a85c4d.cjs.js → PackageGraph-9c1f3f72.cjs.js} +12 -4
  4. package/dist/cjs/{build-72f57fb2.cjs.js → build-093db9f3.cjs.js} +10 -10
  5. package/dist/cjs/{buildBackend-36c8290a.cjs.js → buildBackend-911dda33.cjs.js} +6 -6
  6. package/dist/cjs/{buildWorkspace-5e02082c.cjs.js → buildWorkspace-96605ac7.cjs.js} +7 -7
  7. package/dist/cjs/{bump-42e71238.cjs.js → bump-e8d6d3bd.cjs.js} +11 -7
  8. package/dist/cjs/{clean-a219a37d.cjs.js → clean-85e25208.cjs.js} +5 -5
  9. package/dist/cjs/{clean-2ac983d7.cjs.js → clean-cd6854d8.cjs.js} +2 -2
  10. package/dist/cjs/{config-d26b405e.cjs.js → config-62bb4ea7.cjs.js} +4 -3
  11. package/dist/cjs/{createDistWorkspace-4bd2d45a.cjs.js → createDistWorkspace-da23980b.cjs.js} +9 -5
  12. package/dist/cjs/{createPlugin-e104082c.cjs.js → createPlugin-02e6bee8.cjs.js} +5 -5
  13. package/dist/cjs/{diff-86f9ea11.cjs.js → diff-b48845a2.cjs.js} +4 -2
  14. package/dist/cjs/{docs-c1f1c262.cjs.js → docs-ff201242.cjs.js} +6 -6
  15. package/dist/cjs/{fix-7082192e.cjs.js → fix-e0da88ac.cjs.js} +5 -5
  16. package/dist/cjs/{index-974785be.cjs.js → index-38bbb265.cjs.js} +14 -10
  17. package/dist/cjs/{index-808e4fa2.cjs.js → index-6e86804c.cjs.js} +10 -10
  18. package/dist/cjs/{index-562926a1.cjs.js → index-74078d76.cjs.js} +44 -45
  19. package/dist/cjs/{index-e527017d.cjs.js → index-de0f3045.cjs.js} +2 -2
  20. package/dist/cjs/{info-bb829f95.cjs.js → info-7f1ffc44.cjs.js} +4 -4
  21. package/dist/cjs/{install-be4e0a83.cjs.js → install-7f02e807.cjs.js} +4 -4
  22. package/dist/cjs/{lint-0cc52557.cjs.js → lint-062da215.cjs.js} +2 -2
  23. package/dist/cjs/{lint-d772d2c7.cjs.js → lint-b32310ae.cjs.js} +7 -5
  24. package/dist/cjs/{lint-08b0b478.cjs.js → lint-deed504e.cjs.js} +5 -5
  25. package/dist/cjs/{list-deprecations-8597bd28.cjs.js → list-deprecations-19378770.cjs.js} +5 -5
  26. package/dist/cjs/{new-cdb5be7e.cjs.js → new-7e1efa5e.cjs.js} +9 -8
  27. package/dist/cjs/{pack-a27dca19.cjs.js → pack-290ef021.cjs.js} +2 -2
  28. package/dist/cjs/{packageLintConfigs-4f1f7d89.cjs.js → packageLintConfigs-32ed7915.cjs.js} +5 -5
  29. package/dist/cjs/{packageRole-344aa0cc.cjs.js → packageRole-cac99750.cjs.js} +3 -3
  30. package/dist/cjs/{packageRoles-535f8c22.cjs.js → packageRoles-d6149b3b.cjs.js} +2 -2
  31. package/dist/cjs/{packageScripts-98519b35.cjs.js → packageScripts-ae8d4a17.cjs.js} +6 -6
  32. package/dist/cjs/{packages-be9bab6b.cjs.js → packages-d04ad2d1.cjs.js} +3 -3
  33. package/dist/cjs/{paths-c8b3d46e.cjs.js → paths-c8ad4c7c.cjs.js} +13 -3
  34. package/dist/cjs/{print-3766107b.cjs.js → print-15befe36.cjs.js} +6 -6
  35. package/dist/cjs/{reactRouterDeps-04fed8ad.cjs.js → reactRouterDeps-e72a2697.cjs.js} +6 -6
  36. package/dist/cjs/{run-c2b38189.cjs.js → run-e3701fe6.cjs.js} +2 -2
  37. package/dist/cjs/{schema-9a7be715.cjs.js → schema-68bb0efb.cjs.js} +6 -6
  38. package/dist/cjs/{tasks-7bdbae98.cjs.js → tasks-a6767e54.cjs.js} +2 -2
  39. package/dist/cjs/{test-e19ae612.cjs.js → test-b69f4c29.cjs.js} +8 -6
  40. package/dist/cjs/{test-1fc47a8d.cjs.js → test-cce16d1f.cjs.js} +6 -4
  41. package/dist/cjs/{validate-2c241b25.cjs.js → validate-2fe4e966.cjs.js} +6 -6
  42. package/dist/index.cjs.js +1 -1
  43. package/package.json +11 -12
@@ -1,22 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var createDistWorkspace = require('./createDistWorkspace-4bd2d45a.cjs.js');
4
- var packageRoles = require('./packageRoles-535f8c22.cjs.js');
5
- var index = require('./index-562926a1.cjs.js');
6
- var buildBackend = require('./buildBackend-36c8290a.cjs.js');
3
+ var createDistWorkspace = require('./createDistWorkspace-da23980b.cjs.js');
4
+ var packageRoles = require('./packageRoles-d6149b3b.cjs.js');
5
+ var index = require('./index-74078d76.cjs.js');
6
+ var buildBackend = require('./buildBackend-911dda33.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-c2b38189.cjs.js');
13
+ require('./run-e3701fe6.cjs.js');
14
14
  require('child_process');
15
15
  require('util');
16
16
  require('@backstage/errors');
17
- require('./PackageGraph-e4a85c4d.cjs.js');
17
+ require('./PackageGraph-9c1f3f72.cjs.js');
18
18
  require('@manypkg/get-packages');
19
- require('./Lockfile-938c566f.cjs.js');
19
+ require('./Lockfile-bc3a8337.cjs.js');
20
20
  require('semver');
21
21
  require('@yarnpkg/parsers');
22
22
  require('@yarnpkg/lockfile');
@@ -45,7 +45,7 @@ require('html-webpack-plugin');
45
45
  require('react-dev-utils/ModuleScopePlugin');
46
46
  require('run-script-webpack-plugin');
47
47
  require('webpack-node-externals');
48
- require('./paths-c8b3d46e.cjs.js');
48
+ require('./paths-c8ad4c7c.cjs.js');
49
49
  require('mini-css-extract-plugin');
50
50
  require('@pmmmwh/react-refresh-webpack-plugin');
51
51
  require('eslint-webpack-plugin');
@@ -55,7 +55,7 @@ require('react-dev-utils/FileSizeReporter');
55
55
  require('react-dev-utils/formatWebpackMessages');
56
56
  require('webpack-dev-server');
57
57
  require('react-dev-utils/openBrowser');
58
- require('./config-d26b405e.cjs.js');
58
+ require('./config-62bb4ea7.cjs.js');
59
59
  require('@backstage/config-loader');
60
60
  require('@backstage/config');
61
61
 
@@ -93,4 +93,4 @@ async function command(opts) {
93
93
  }
94
94
 
95
95
  exports.command = command;
96
- //# sourceMappingURL=index-808e4fa2.cjs.js.map
96
+ //# sourceMappingURL=index-6e86804c.cjs.js.map
@@ -46,9 +46,9 @@ class NotFoundError extends CustomError {
46
46
 
47
47
  const paths = cliCommon.findPaths(__dirname);
48
48
 
49
- var version$a = "0.18.0-next.0";
49
+ var version$a = "0.18.0";
50
50
 
51
- var version$9 = "0.22.1-next.1";
51
+ var version$9 = "0.22.1";
52
52
  var dependencies = {
53
53
  "@backstage/cli-common": "workspace:^",
54
54
  "@backstage/config": "workspace:^",
@@ -176,25 +176,24 @@ var devDependencies = {
176
176
  "mock-fs": "^5.1.0",
177
177
  msw: "^0.49.0",
178
178
  nodemon: "^2.0.2",
179
- "ts-node": "^10.0.0",
180
- "type-fest": "^2.0.0"
179
+ "ts-node": "^10.0.0"
181
180
  };
182
181
 
183
- var version$8 = "1.0.6-next.0";
182
+ var version$8 = "1.0.6";
184
183
 
185
- var version$7 = "1.3.1-next.0";
184
+ var version$7 = "1.4.0";
186
185
 
187
- var version$6 = "0.12.3-next.1";
186
+ var version$6 = "0.12.3";
188
187
 
189
- var version$5 = "1.2.1-next.0";
188
+ var version$5 = "1.3.0";
190
189
 
191
- var version$4 = "1.0.11-next.1";
190
+ var version$4 = "1.0.11";
192
191
 
193
- var version$3 = "1.2.4-next.0";
192
+ var version$3 = "1.2.4";
194
193
 
195
194
  var version$2 = "0.2.16";
196
195
 
197
- var version$1 = "1.10.0-next.1";
196
+ var version$1 = "1.10.0";
198
197
 
199
198
  const packageVersions = {
200
199
  "@backstage/backend-common": version$a,
@@ -265,7 +264,7 @@ function registerRepoCommand(program) {
265
264
  ).option(
266
265
  "--since <ref>",
267
266
  "Only build packages and their dev dependents that changed since the specified ref"
268
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-72f57fb2.cjs.js'); }).then((m) => m.command)));
267
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-093db9f3.cjs.js'); }).then((m) => m.command)));
269
268
  command.command("lint").description("Lint all packages in the project").option(
270
269
  "--format <format>",
271
270
  "Lint report output format",
@@ -273,10 +272,10 @@ function registerRepoCommand(program) {
273
272
  ).option(
274
273
  "--since <ref>",
275
274
  "Only lint packages that changed since the specified ref"
276
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-08b0b478.cjs.js'); }).then((m) => m.command)));
277
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-a219a37d.cjs.js'); }).then((m) => m.command)));
275
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-deed504e.cjs.js'); }).then((m) => m.command)));
276
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-85e25208.cjs.js'); }).then((m) => m.command)));
278
277
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
279
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-8597bd28.cjs.js'); }).then((m) => m.command))
278
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-19378770.cjs.js'); }).then((m) => m.command))
280
279
  );
281
280
  command.command("test").allowUnknownOption(true).option(
282
281
  "--since <ref>",
@@ -284,14 +283,14 @@ function registerRepoCommand(program) {
284
283
  ).option(
285
284
  "--jest-help",
286
285
  "Show help for Jest CLI options, which are passed through"
287
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-e19ae612.cjs.js'); }).then((m) => m.command)));
286
+ ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-b69f4c29.cjs.js'); }).then((m) => m.command)));
288
287
  }
289
288
  function registerScriptCommand(program) {
290
289
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
291
290
  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(
292
291
  "--inspect-brk",
293
292
  "Enable debugger in Node.js environments, breaking before code starts"
294
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-974785be.cjs.js'); }).then((m) => m.command)));
293
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-38bbb265.cjs.js'); }).then((m) => m.command)));
295
294
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
296
295
  "--minify",
297
296
  "Minify the generated code. Does not apply to app or backend packages."
@@ -309,33 +308,33 @@ function registerScriptCommand(program) {
309
308
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
310
309
  (opt, opts) => opts ? [...opts, opt] : [opt],
311
310
  Array()
312
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-808e4fa2.cjs.js'); }).then((m) => m.command)));
311
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-6e86804c.cjs.js'); }).then((m) => m.command)));
313
312
  command.command("lint [directories...]").option(
314
313
  "--format <format>",
315
314
  "Lint report output format",
316
315
  "eslint-formatter-friendly"
317
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-0cc52557.cjs.js'); }).then((m) => m.default)));
318
- 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-1fc47a8d.cjs.js'); }).then((m) => m.default)));
319
- 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-7082192e.cjs.js'); }).then((m) => m.command)));
320
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-2ac983d7.cjs.js'); }).then((m) => m.default)));
321
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-a27dca19.cjs.js'); }).then((m) => m.pre)));
322
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-a27dca19.cjs.js'); }).then((m) => m.post)));
316
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-062da215.cjs.js'); }).then((m) => m.default)));
317
+ 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-cce16d1f.cjs.js'); }).then((m) => m.default)));
318
+ 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-e0da88ac.cjs.js'); }).then((m) => m.command)));
319
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-cd6854d8.cjs.js'); }).then((m) => m.default)));
320
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-290ef021.cjs.js'); }).then((m) => m.pre)));
321
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-290ef021.cjs.js'); }).then((m) => m.post)));
323
322
  }
324
323
  function registerMigrateCommand(program) {
325
324
  const command = program.command("migrate [command]").description("Migration utilities");
326
- 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-344aa0cc.cjs.js'); }).then((m) => m.default)));
325
+ 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-cac99750.cjs.js'); }).then((m) => m.default)));
327
326
  command.command("package-scripts").description("Set package scripts according to each package role").action(
328
- lazy(() => Promise.resolve().then(function () { return require('./packageScripts-98519b35.cjs.js'); }).then((m) => m.command))
327
+ lazy(() => Promise.resolve().then(function () { return require('./packageScripts-ae8d4a17.cjs.js'); }).then((m) => m.command))
329
328
  );
330
329
  command.command("package-lint-configs").description(
331
330
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
332
331
  ).action(
333
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-4f1f7d89.cjs.js'); }).then((m) => m.command))
332
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-32ed7915.cjs.js'); }).then((m) => m.command))
334
333
  );
335
334
  command.command("react-router-deps").description(
336
335
  "Migrates the react-router dependencies for all packages to be peer dependencies"
337
336
  ).action(
338
- lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-04fed8ad.cjs.js'); }).then((m) => m.command))
337
+ lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-e72a2697.cjs.js'); }).then((m) => m.command))
339
338
  );
340
339
  }
341
340
  function registerCommands(program) {
@@ -355,7 +354,7 @@ function registerCommands(program) {
355
354
  ).option(
356
355
  "--baseVersion <version>",
357
356
  "The version to use for any new packages (default: 0.1.0)"
358
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-cdb5be7e.cjs.js'); }).then((m) => m.default)));
357
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-7e1efa5e.cjs.js'); }).then((m) => m.default)));
359
358
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
360
359
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
361
360
  ).option(
@@ -369,43 +368,43 @@ function registerCommands(program) {
369
368
  ).option("--scope <scope>", "The scope to use for new packages").option(
370
369
  "--npm-registry <URL>",
371
370
  "The package registry to use for new packages"
372
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-cdb5be7e.cjs.js'); }).then((m) => m.default)));
371
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-7e1efa5e.cjs.js'); }).then((m) => m.default)));
373
372
  program.command("create-plugin", { hidden: true }).option(
374
373
  "--backend",
375
374
  "Create plugin with the backend dependencies as default"
376
375
  ).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(
377
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-e104082c.cjs.js'); }).then((m) => m.default))
376
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-02e6bee8.cjs.js'); }).then((m) => m.default))
378
377
  );
379
378
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
380
379
  "Diff an existing plugin with the creation template [DEPRECATED]"
381
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-86f9ea11.cjs.js'); }).then((m) => m.default)));
380
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-b48845a2.cjs.js'); }).then((m) => m.default)));
382
381
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
383
382
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
384
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-1fc47a8d.cjs.js'); }).then((m) => m.default)));
383
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-cce16d1f.cjs.js'); }).then((m) => m.default)));
385
384
  program.command("config:docs").option(
386
385
  "--package <name>",
387
386
  "Only include the schema that applies to the given package"
388
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-c1f1c262.cjs.js'); }).then((m) => m.default)));
387
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-ff201242.cjs.js'); }).then((m) => m.default)));
389
388
  program.command("config:print").option(
390
389
  "--package <name>",
391
390
  "Only load config schema that applies to the given package"
392
391
  ).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(
393
392
  "--format <format>",
394
393
  "Format to print the configuration in, either json or yaml [yaml]"
395
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-3766107b.cjs.js'); }).then((m) => m.default)));
394
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-15befe36.cjs.js'); }).then((m) => m.default)));
396
395
  program.command("config:check").option(
397
396
  "--package <name>",
398
397
  "Only load config schema that applies to the given package"
399
398
  ).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(
400
399
  "Validate that the given configuration loads and matches schema"
401
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-2c241b25.cjs.js'); }).then((m) => m.default)));
400
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-2fe4e966.cjs.js'); }).then((m) => m.default)));
402
401
  program.command("config:schema").option(
403
402
  "--package <name>",
404
403
  "Only output config schema that applies to the given package"
405
404
  ).option(
406
405
  "--format <format>",
407
406
  "Format to print the schema in, either json or yaml [yaml]"
408
- ).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-9a7be715.cjs.js'); }).then((m) => m.default)));
407
+ ).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-68bb0efb.cjs.js'); }).then((m) => m.default)));
409
408
  registerRepoCommand(program);
410
409
  registerScriptCommand(program);
411
410
  registerMigrateCommand(program);
@@ -416,16 +415,16 @@ function registerCommands(program) {
416
415
  "--release <version|next|main>",
417
416
  "Bump to a specific Backstage release line or version",
418
417
  "main"
419
- ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-42e71238.cjs.js'); }).then((m) => m.default)));
420
- 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-d772d2c7.cjs.js'); }).then((m) => m.default)));
421
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-2ac983d7.cjs.js'); }).then((m) => m.default)));
422
- 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-5e02082c.cjs.js'); }).then((m) => m.default)));
423
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-e527017d.cjs.js'); }).then((m) => m.default)));
424
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-bb829f95.cjs.js'); }).then((m) => m.default)));
418
+ ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-e8d6d3bd.cjs.js'); }).then((m) => m.default)));
419
+ 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-b32310ae.cjs.js'); }).then((m) => m.default)));
420
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-cd6854d8.cjs.js'); }).then((m) => m.default)));
421
+ 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-96605ac7.cjs.js'); }).then((m) => m.default)));
422
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-de0f3045.cjs.js'); }).then((m) => m.default)));
423
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-7f1ffc44.cjs.js'); }).then((m) => m.default)));
425
424
  program.command("install [plugin-id]", { hidden: true }).option(
426
425
  "--from <packageJsonFilePath>",
427
426
  "Install from a local package.json containing the installation recipe"
428
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-be4e0a83.cjs.js'); }).then((m) => m.default)));
427
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-7f02e807.cjs.js'); }).then((m) => m.default)));
429
428
  }
430
429
  function lazy(getActionFunc) {
431
430
  return async (...args) => {
@@ -469,4 +468,4 @@ exports.devDependencies = devDependencies;
469
468
  exports.paths = paths;
470
469
  exports.version = version;
471
470
  exports.version$1 = version$9;
472
- //# sourceMappingURL=index-562926a1.cjs.js.map
471
+ //# sourceMappingURL=index-74078d76.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-562926a1.cjs.js');
7
+ var index$1 = require('./index-74078d76.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-e527017d.cjs.js.map
225
+ //# sourceMappingURL=index-de0f3045.cjs.js.map
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-562926a1.cjs.js');
3
+ var index = require('./index-74078d76.cjs.js');
4
4
  var os = require('os');
5
- var run = require('./run-c2b38189.cjs.js');
6
- var Lockfile = require('./Lockfile-938c566f.cjs.js');
5
+ var run = require('./run-e3701fe6.cjs.js');
6
+ var Lockfile = require('./Lockfile-bc3a8337.cjs.js');
7
7
  require('minimatch');
8
8
  require('@manypkg/get-packages');
9
9
  require('chalk');
@@ -58,4 +58,4 @@ var info = async () => {
58
58
  };
59
59
 
60
60
  exports["default"] = info;
61
- //# sourceMappingURL=info-bb829f95.cjs.js.map
61
+ //# sourceMappingURL=info-7f1ffc44.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-be9bab6b.cjs.js');
8
- var index = require('./index-562926a1.cjs.js');
7
+ var packages = require('./packages-d04ad2d1.cjs.js');
8
+ var index = require('./index-74078d76.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-c2b38189.cjs.js');
12
+ var run = require('./run-e3701fe6.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-be4e0a83.cjs.js.map
271
+ //# sourceMappingURL=install-7f02e807.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-562926a1.cjs.js');
3
+ var index = require('./index-74078d76.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-0cc52557.cjs.js.map
36
+ //# sourceMappingURL=lint-062da215.cjs.js.map
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var Lockfile = require('./Lockfile-938c566f.cjs.js');
3
+ var Lockfile = require('./Lockfile-bc3a8337.cjs.js');
4
4
  require('minimatch');
5
5
  require('@manypkg/get-packages');
6
6
  require('chalk');
7
7
  require('./yarn-6cd89e16.cjs.js');
8
- require('./run-c2b38189.cjs.js');
9
- var index = require('./index-562926a1.cjs.js');
8
+ require('./run-e3701fe6.cjs.js');
9
+ var index = require('./index-74078d76.cjs.js');
10
10
  var partition = require('lodash/partition');
11
- var PackageGraph = require('./PackageGraph-e4a85c4d.cjs.js');
11
+ var PackageGraph = require('./PackageGraph-9c1f3f72.cjs.js');
12
12
  require('fs-extra');
13
13
  require('semver');
14
14
  require('@yarnpkg/parsers');
@@ -32,6 +32,8 @@ const FORBID_DUPLICATES = [
32
32
  ];
33
33
  const ALLOW_DUPLICATES = [
34
34
  /^@backstage\/core-plugin-api$/,
35
+ // Duplicates of libraries are OK
36
+ // TODO(Rugvip): Check this using package role instead
35
37
  /^@backstage\/plugin-.*-react$/,
36
38
  /^@backstage\/plugin-.*-node$/,
37
39
  /^@backstage\/plugin-.*-common$/
@@ -111,4 +113,4 @@ function logArray(arr, header, each) {
111
113
  exports["default"] = lint;
112
114
  exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
113
115
  exports.includedFilter = includedFilter;
114
- //# sourceMappingURL=lint-d772d2c7.cjs.js.map
116
+ //# sourceMappingURL=lint-b32310ae.cjs.js.map
@@ -2,21 +2,21 @@
2
2
 
3
3
  var chalk = require('chalk');
4
4
  var path = require('path');
5
- var PackageGraph = require('./PackageGraph-e4a85c4d.cjs.js');
5
+ var PackageGraph = require('./PackageGraph-9c1f3f72.cjs.js');
6
6
  var parallel = require('./parallel-a8f6219c.cjs.js');
7
- var index = require('./index-562926a1.cjs.js');
7
+ var index = require('./index-74078d76.cjs.js');
8
8
  require('@manypkg/get-packages');
9
9
  require('@backstage/errors');
10
10
  require('child_process');
11
11
  require('util');
12
- require('./Lockfile-938c566f.cjs.js');
12
+ require('./Lockfile-bc3a8337.cjs.js');
13
13
  require('fs-extra');
14
14
  require('semver');
15
15
  require('@yarnpkg/parsers');
16
16
  require('@yarnpkg/lockfile');
17
17
  require('minimatch');
18
18
  require('./yarn-6cd89e16.cjs.js');
19
- require('./run-c2b38189.cjs.js');
19
+ require('./run-e3701fe6.cjs.js');
20
20
  require('os');
21
21
  require('worker_threads');
22
22
  require('commander');
@@ -97,4 +97,4 @@ async function command(opts) {
97
97
  }
98
98
 
99
99
  exports.command = command;
100
- //# sourceMappingURL=lint-08b0b478.cjs.js.map
100
+ //# sourceMappingURL=lint-deed504e.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-562926a1.cjs.js');
7
- var PackageGraph = require('./PackageGraph-e4a85c4d.cjs.js');
6
+ var index = require('./index-74078d76.cjs.js');
7
+ var PackageGraph = require('./PackageGraph-9c1f3f72.cjs.js');
8
8
  require('commander');
9
9
  require('fs-extra');
10
10
  require('semver');
@@ -13,12 +13,12 @@ require('@backstage/errors');
13
13
  require('@manypkg/get-packages');
14
14
  require('child_process');
15
15
  require('util');
16
- require('./Lockfile-938c566f.cjs.js');
16
+ require('./Lockfile-bc3a8337.cjs.js');
17
17
  require('@yarnpkg/parsers');
18
18
  require('@yarnpkg/lockfile');
19
19
  require('minimatch');
20
20
  require('./yarn-6cd89e16.cjs.js');
21
- require('./run-c2b38189.cjs.js');
21
+ require('./run-e3701fe6.cjs.js');
22
22
 
23
23
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
24
24
 
@@ -85,4 +85,4 @@ async function command(opts) {
85
85
  }
86
86
 
87
87
  exports.command = command;
88
- //# sourceMappingURL=list-deprecations-8597bd28.cjs.js.map
88
+ //# sourceMappingURL=list-deprecations-19378770.cjs.js.map
@@ -7,13 +7,13 @@ 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-562926a1.cjs.js');
11
- var tasks = require('./tasks-7bdbae98.cjs.js');
12
- var Lockfile = require('./Lockfile-938c566f.cjs.js');
10
+ var index = require('./index-74078d76.cjs.js');
11
+ var tasks = require('./tasks-a6767e54.cjs.js');
12
+ var Lockfile = require('./Lockfile-bc3a8337.cjs.js');
13
13
  require('minimatch');
14
14
  require('@manypkg/get-packages');
15
15
  require('./yarn-6cd89e16.cjs.js');
16
- require('./run-c2b38189.cjs.js');
16
+ require('./run-e3701fe6.cjs.js');
17
17
  var partition = require('lodash/partition');
18
18
  var errors = require('@backstage/errors');
19
19
  require('commander');
@@ -208,11 +208,12 @@ const backendPlugin = createFactory({
208
208
  }),
209
209
  optionsPrompts: [pluginIdPrompt(), ownerPrompt()],
210
210
  async create(options, ctx) {
211
- const id = `${options.id}-backend`;
212
- const name = ctx.scope ? `@${ctx.scope}/plugin-${id}` : `backstage-plugin-${id}`;
211
+ const { id } = options;
212
+ const pluginId = `${id}-backend`;
213
+ const name = ctx.scope ? `@${ctx.scope}/plugin-${pluginId}` : `backstage-plugin-${pluginId}`;
213
214
  tasks.Task.log();
214
215
  tasks.Task.log(`Creating backend plugin ${chalk__default["default"].cyan(name)}`);
215
- const targetDir = ctx.isMonoRepo ? index.paths.resolveTargetRoot("plugins", id) : index.paths.resolveTargetRoot(`backstage-plugin-${id}`);
216
+ const targetDir = ctx.isMonoRepo ? index.paths.resolveTargetRoot("plugins", pluginId) : index.paths.resolveTargetRoot(`backstage-plugin-${pluginId}`);
216
217
  await executePluginPackageTemplate(ctx, {
217
218
  targetDir,
218
219
  templateName: "default-backend-plugin",
@@ -559,4 +560,4 @@ var _new = async (opts) => {
559
560
  };
560
561
 
561
562
  exports["default"] = _new;
562
- //# sourceMappingURL=new-cdb5be7e.cjs.js.map
563
+ //# sourceMappingURL=new-7e1efa5e.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-562926a1.cjs.js');
4
+ var index = require('./index-74078d76.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-a27dca19.cjs.js.map
78
+ //# sourceMappingURL=pack-290ef021.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-e4a85c4d.cjs.js');
6
- var run = require('./run-c2b38189.cjs.js');
5
+ var PackageGraph = require('./PackageGraph-9c1f3f72.cjs.js');
6
+ var run = require('./run-e3701fe6.cjs.js');
7
7
  require('@manypkg/get-packages');
8
- require('./index-562926a1.cjs.js');
8
+ require('./index-74078d76.cjs.js');
9
9
  require('commander');
10
10
  require('chalk');
11
11
  require('semver');
@@ -13,7 +13,7 @@ require('@backstage/cli-common');
13
13
  require('@backstage/errors');
14
14
  require('child_process');
15
15
  require('util');
16
- require('./Lockfile-938c566f.cjs.js');
16
+ require('./Lockfile-bc3a8337.cjs.js');
17
17
  require('@yarnpkg/parsers');
18
18
  require('@yarnpkg/lockfile');
19
19
  require('minimatch');
@@ -85,4 +85,4 @@ async function command() {
85
85
  }
86
86
 
87
87
  exports.command = command;
88
- //# sourceMappingURL=packageLintConfigs-4f1f7d89.cjs.js.map
88
+ //# sourceMappingURL=packageLintConfigs-32ed7915.cjs.js.map
@@ -3,8 +3,8 @@
3
3
  var fs = require('fs-extra');
4
4
  var path = require('path');
5
5
  var getPackages = require('@manypkg/get-packages');
6
- var index = require('./index-562926a1.cjs.js');
7
- var packageRoles = require('./packageRoles-535f8c22.cjs.js');
6
+ var index = require('./index-74078d76.cjs.js');
7
+ var packageRoles = require('./packageRoles-d6149b3b.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('semver');
@@ -56,4 +56,4 @@ var packageRole = async () => {
56
56
  };
57
57
 
58
58
  exports["default"] = packageRole;
59
- //# sourceMappingURL=packageRole-344aa0cc.cjs.js.map
59
+ //# sourceMappingURL=packageRole-cac99750.cjs.js.map
@@ -2,7 +2,7 @@
2
2
 
3
3
  var zod = require('zod');
4
4
  var fs = require('fs-extra');
5
- var index = require('./index-562926a1.cjs.js');
5
+ var index = require('./index-74078d76.cjs.js');
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -157,4 +157,4 @@ exports.detectRoleFromPackage = detectRoleFromPackage;
157
157
  exports.findRoleFromCommand = findRoleFromCommand;
158
158
  exports.getRoleFromPackage = getRoleFromPackage;
159
159
  exports.getRoleInfo = getRoleInfo;
160
- //# sourceMappingURL=packageRoles-535f8c22.cjs.js.map
160
+ //# sourceMappingURL=packageRoles-d6149b3b.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-e4a85c4d.cjs.js');
6
- var packageRoles = require('./packageRoles-535f8c22.cjs.js');
5
+ var PackageGraph = require('./PackageGraph-9c1f3f72.cjs.js');
6
+ var packageRoles = require('./packageRoles-d6149b3b.cjs.js');
7
7
  require('@manypkg/get-packages');
8
- require('./index-562926a1.cjs.js');
8
+ require('./index-74078d76.cjs.js');
9
9
  require('commander');
10
10
  require('chalk');
11
11
  require('semver');
@@ -13,12 +13,12 @@ require('@backstage/cli-common');
13
13
  require('@backstage/errors');
14
14
  require('child_process');
15
15
  require('util');
16
- require('./Lockfile-938c566f.cjs.js');
16
+ require('./Lockfile-bc3a8337.cjs.js');
17
17
  require('@yarnpkg/parsers');
18
18
  require('@yarnpkg/lockfile');
19
19
  require('minimatch');
20
20
  require('./yarn-6cd89e16.cjs.js');
21
- require('./run-c2b38189.cjs.js');
21
+ require('./run-e3701fe6.cjs.js');
22
22
  require('zod');
23
23
 
24
24
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -101,4 +101,4 @@ async function command() {
101
101
  }
102
102
 
103
103
  exports.command = command;
104
- //# sourceMappingURL=packageScripts-98519b35.cjs.js.map
104
+ //# sourceMappingURL=packageScripts-ae8d4a17.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-562926a1.cjs.js');
5
+ var index = require('./index-74078d76.cjs.js');
6
6
  var yarn = require('./yarn-6cd89e16.cjs.js');
7
- var run = require('./run-c2b38189.cjs.js');
7
+ var run = require('./run-e3701fe6.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-be9bab6b.cjs.js.map
83
+ //# sourceMappingURL=packages-d04ad2d1.cjs.js.map