@backstage/cli 0.22.0 → 0.22.1-next.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 (44) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/cjs/{Lockfile-6785964d.cjs.js → Lockfile-938c566f.cjs.js} +103 -39
  3. package/dist/cjs/{PackageGraph-35080f04.cjs.js → PackageGraph-e4a85c4d.cjs.js} +75 -2
  4. package/dist/cjs/{build-6db0ae91.cjs.js → build-72f57fb2.cjs.js} +17 -11
  5. package/dist/cjs/{buildBackend-2fdc1e48.cjs.js → buildBackend-36c8290a.cjs.js} +9 -10
  6. package/dist/cjs/{buildWorkspace-c4e4771f.cjs.js → buildWorkspace-5e02082c.cjs.js} +11 -6
  7. package/dist/cjs/{bump-43bc9dcd.cjs.js → bump-42e71238.cjs.js} +12 -8
  8. package/dist/cjs/{clean-8cd08be0.cjs.js → clean-2ac983d7.cjs.js} +2 -2
  9. package/dist/cjs/{clean-d3df90dc.cjs.js → clean-a219a37d.cjs.js} +11 -5
  10. package/dist/cjs/{config-fc8cc849.cjs.js → config-d26b405e.cjs.js} +3 -3
  11. package/dist/cjs/{createDistWorkspace-13b34403.cjs.js → createDistWorkspace-4bd2d45a.cjs.js} +5 -5
  12. package/dist/cjs/{createPlugin-8f62909c.cjs.js → createPlugin-e104082c.cjs.js} +5 -5
  13. package/dist/cjs/{diff-609c262e.cjs.js → diff-86f9ea11.cjs.js} +2 -2
  14. package/dist/cjs/{docs-9f4d4ded.cjs.js → docs-c1f1c262.cjs.js} +10 -4
  15. package/dist/cjs/{fix-cfb2ffce.cjs.js → fix-7082192e.cjs.js} +9 -3
  16. package/dist/cjs/{index-4e26060c.cjs.js → index-562926a1.cjs.js} +43 -43
  17. package/dist/cjs/{index-333db2fa.cjs.js → index-808e4fa2.cjs.js} +15 -10
  18. package/dist/cjs/{index-cdb72ce4.cjs.js → index-974785be.cjs.js} +14 -13
  19. package/dist/cjs/{index-9eebe054.cjs.js → index-e527017d.cjs.js} +3 -3
  20. package/dist/cjs/{info-0c3a7339.cjs.js → info-bb829f95.cjs.js} +4 -4
  21. package/dist/cjs/{install-eee6ee94.cjs.js → install-be4e0a83.cjs.js} +4 -4
  22. package/dist/cjs/{lint-5d424da2.cjs.js → lint-08b0b478.cjs.js} +15 -6
  23. package/dist/cjs/{lint-c8d362f8.cjs.js → lint-0cc52557.cjs.js} +2 -2
  24. package/dist/cjs/{lint-0f6dd002.cjs.js → lint-d772d2c7.cjs.js} +13 -7
  25. package/dist/cjs/{list-deprecations-cdadcfa3.cjs.js → list-deprecations-8597bd28.cjs.js} +9 -3
  26. package/dist/cjs/{new-9709921a.cjs.js → new-cdb5be7e.cjs.js} +5 -5
  27. package/dist/cjs/{pack-1ce96731.cjs.js → pack-a27dca19.cjs.js} +2 -2
  28. package/dist/cjs/{packageLintConfigs-d8779304.cjs.js → packageLintConfigs-4f1f7d89.cjs.js} +9 -4
  29. package/dist/cjs/{packageRole-29141e47.cjs.js → packageRole-344aa0cc.cjs.js} +3 -3
  30. package/dist/cjs/{packageRoles-4d56e8b9.cjs.js → packageRoles-535f8c22.cjs.js} +2 -2
  31. package/dist/cjs/{packageScripts-6d8f1d57.cjs.js → packageScripts-98519b35.cjs.js} +10 -4
  32. package/dist/cjs/{packages-304263af.cjs.js → packages-be9bab6b.cjs.js} +3 -3
  33. package/dist/cjs/{paths-33a42e3d.cjs.js → paths-c8b3d46e.cjs.js} +16 -4
  34. package/dist/cjs/{print-9bd34b93.cjs.js → print-3766107b.cjs.js} +10 -4
  35. package/dist/cjs/{reactRouterDeps-3d0b4f0c.cjs.js → reactRouterDeps-04fed8ad.cjs.js} +10 -4
  36. package/dist/cjs/{run-420a9288.cjs.js → run-c2b38189.cjs.js} +2 -2
  37. package/dist/cjs/{schema-9b018e12.cjs.js → schema-9a7be715.cjs.js} +10 -4
  38. package/dist/cjs/{tasks-5c60f1f6.cjs.js → tasks-7bdbae98.cjs.js} +2 -2
  39. package/dist/cjs/{test-117b4e3e.cjs.js → test-1fc47a8d.cjs.js} +3 -3
  40. package/dist/cjs/{test-b0fa05af.cjs.js → test-e19ae612.cjs.js} +13 -7
  41. package/dist/cjs/{validate-17b11c65.cjs.js → validate-2c241b25.cjs.js} +10 -4
  42. package/dist/index.cjs.js +1 -1
  43. package/package.json +10 -10
  44. package/templates/default-plugin/src/components/ExampleComponent/ExampleComponent.test.tsx.hbs +1 -7
@@ -6,9 +6,9 @@ var path = require('path');
6
6
  var os = require('os');
7
7
  var tar = require('tar');
8
8
  var partition = require('lodash/partition');
9
- var index = require('./index-4e26060c.cjs.js');
10
- var run = require('./run-420a9288.cjs.js');
11
- var PackageGraph = require('./PackageGraph-35080f04.cjs.js');
9
+ var index = require('./index-562926a1.cjs.js');
10
+ var run = require('./run-c2b38189.cjs.js');
11
+ var PackageGraph = require('./PackageGraph-e4a85c4d.cjs.js');
12
12
  var rollup = require('rollup');
13
13
  var commonjs = require('@rollup/plugin-commonjs');
14
14
  var resolve = require('@rollup/plugin-node-resolve');
@@ -21,7 +21,7 @@ var yaml = require('@rollup/plugin-yaml');
21
21
  var rollupPluginutils = require('rollup-pluginutils');
22
22
  var svgrTemplate = require('./svgrTemplate-550efce6.cjs.js');
23
23
  var parallel = require('./parallel-a8f6219c.cjs.js');
24
- var packageRoles = require('./packageRoles-4d56e8b9.cjs.js');
24
+ var packageRoles = require('./packageRoles-535f8c22.cjs.js');
25
25
  var npmPackList = require('npm-packlist');
26
26
 
27
27
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -736,4 +736,4 @@ exports.buildPackage = buildPackage;
736
736
  exports.buildPackages = buildPackages;
737
737
  exports.createDistWorkspace = createDistWorkspace;
738
738
  exports.getOutputsForRole = getOutputsForRole;
739
- //# sourceMappingURL=createDistWorkspace-13b34403.cjs.js.map
739
+ //# sourceMappingURL=createDistWorkspace-4bd2d45a.cjs.js.map
@@ -10,13 +10,13 @@ var camelCase = require('lodash/camelCase');
10
10
  var upperFirst = require('lodash/upperFirst');
11
11
  var os = require('os');
12
12
  var errors = require('@backstage/errors');
13
- var tasks = require('./tasks-5c60f1f6.cjs.js');
14
- var index = require('./index-4e26060c.cjs.js');
15
- var Lockfile = require('./Lockfile-6785964d.cjs.js');
13
+ var tasks = require('./tasks-7bdbae98.cjs.js');
14
+ var index = require('./index-562926a1.cjs.js');
15
+ var Lockfile = require('./Lockfile-938c566f.cjs.js');
16
16
  require('minimatch');
17
17
  require('@manypkg/get-packages');
18
18
  require('./yarn-6cd89e16.cjs.js');
19
- require('./run-420a9288.cjs.js');
19
+ require('./run-c2b38189.cjs.js');
20
20
  require('handlebars');
21
21
  require('ora');
22
22
  require('recursive-readdir');
@@ -275,4 +275,4 @@ exports.addPluginExtensionToApp = addPluginExtensionToApp;
275
275
  exports.capitalize = capitalize;
276
276
  exports["default"] = createPlugin;
277
277
  exports.movePlugin = movePlugin;
278
- //# sourceMappingURL=createPlugin-8f62909c.cjs.js.map
278
+ //# sourceMappingURL=createPlugin-e104082c.cjs.js.map
@@ -7,7 +7,7 @@ var path = require('path');
7
7
  var inquirer = require('inquirer');
8
8
  var handlebars = require('handlebars');
9
9
  var recursive = require('recursive-readdir');
10
- var index = require('./index-4e26060c.cjs.js');
10
+ var index = require('./index-562926a1.cjs.js');
11
11
  require('commander');
12
12
  require('semver');
13
13
  require('@backstage/cli-common');
@@ -432,4 +432,4 @@ async function readPluginData() {
432
432
  }
433
433
 
434
434
  exports["default"] = diff;
435
- //# sourceMappingURL=diff-609c262e.cjs.js.map
435
+ //# sourceMappingURL=diff-86f9ea11.cjs.js.map
@@ -2,9 +2,9 @@
2
2
 
3
3
  var configLoader = require('@backstage/config-loader');
4
4
  var openBrowser = require('react-dev-utils/openBrowser');
5
- var config = require('./config-fc8cc849.cjs.js');
5
+ var config = require('./config-d26b405e.cjs.js');
6
6
  require('@backstage/config');
7
- require('./index-4e26060c.cjs.js');
7
+ require('./index-562926a1.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('fs-extra');
@@ -12,10 +12,16 @@ require('semver');
12
12
  require('@backstage/cli-common');
13
13
  require('@backstage/errors');
14
14
  require('@manypkg/get-packages');
15
- require('./PackageGraph-35080f04.cjs.js');
15
+ require('./PackageGraph-e4a85c4d.cjs.js');
16
16
  require('path');
17
17
  require('child_process');
18
18
  require('util');
19
+ require('./Lockfile-938c566f.cjs.js');
20
+ require('@yarnpkg/parsers');
21
+ require('@yarnpkg/lockfile');
22
+ require('minimatch');
23
+ require('./yarn-6cd89e16.cjs.js');
24
+ require('./run-c2b38189.cjs.js');
19
25
 
20
26
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
21
27
 
@@ -37,4 +43,4 @@ var docs = async (opts) => {
37
43
  };
38
44
 
39
45
  exports["default"] = docs;
40
- //# sourceMappingURL=docs-9f4d4ded.cjs.js.map
46
+ //# sourceMappingURL=docs-c1f1c262.cjs.js.map
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-4e26060c.cjs.js');
3
+ var index = require('./index-562926a1.cjs.js');
4
4
  var eslint = require('eslint');
5
5
  var path = require('path');
6
6
  var fs = require('fs-extra');
7
7
  var cliCommon = require('@backstage/cli-common');
8
- var PackageGraph = require('./PackageGraph-35080f04.cjs.js');
8
+ var PackageGraph = require('./PackageGraph-e4a85c4d.cjs.js');
9
9
  require('commander');
10
10
  require('chalk');
11
11
  require('semver');
@@ -13,6 +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');
17
+ require('@yarnpkg/parsers');
18
+ require('@yarnpkg/lockfile');
19
+ require('minimatch');
20
+ require('./yarn-6cd89e16.cjs.js');
21
+ require('./run-c2b38189.cjs.js');
16
22
 
17
23
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
18
24
 
@@ -123,4 +129,4 @@ async function command() {
123
129
  }
124
130
 
125
131
  exports.command = command;
126
- //# sourceMappingURL=fix-cfb2ffce.cjs.js.map
132
+ //# sourceMappingURL=fix-7082192e.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.17.0";
49
+ var version$a = "0.18.0-next.0";
50
50
 
51
- var version$9 = "0.22.0";
51
+ var version$9 = "0.22.1-next.1";
52
52
  var dependencies = {
53
53
  "@backstage/cli-common": "workspace:^",
54
54
  "@backstage/config": "workspace:^",
@@ -180,21 +180,21 @@ var devDependencies = {
180
180
  "type-fest": "^2.0.0"
181
181
  };
182
182
 
183
- var version$8 = "1.0.5";
183
+ var version$8 = "1.0.6-next.0";
184
184
 
185
- var version$7 = "1.3.0";
185
+ var version$7 = "1.3.1-next.0";
186
186
 
187
- var version$6 = "0.12.1";
187
+ var version$6 = "0.12.3-next.1";
188
188
 
189
- var version$5 = "1.2.0";
189
+ var version$5 = "1.2.1-next.0";
190
190
 
191
- var version$4 = "1.0.9";
191
+ var version$4 = "1.0.11-next.1";
192
192
 
193
- var version$3 = "1.2.3";
193
+ var version$3 = "1.2.4-next.0";
194
194
 
195
195
  var version$2 = "0.2.16";
196
196
 
197
- var version$1 = "1.9.0";
197
+ var version$1 = "1.10.0-next.1";
198
198
 
199
199
  const packageVersions = {
200
200
  "@backstage/backend-common": version$a,
@@ -265,7 +265,7 @@ function registerRepoCommand(program) {
265
265
  ).option(
266
266
  "--since <ref>",
267
267
  "Only build packages and their dev dependents that changed since the specified ref"
268
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-6db0ae91.cjs.js'); }).then((m) => m.command)));
268
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-72f57fb2.cjs.js'); }).then((m) => m.command)));
269
269
  command.command("lint").description("Lint all packages in the project").option(
270
270
  "--format <format>",
271
271
  "Lint report output format",
@@ -273,10 +273,10 @@ function registerRepoCommand(program) {
273
273
  ).option(
274
274
  "--since <ref>",
275
275
  "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-5d424da2.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-d3df90dc.cjs.js'); }).then((m) => m.command)));
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)));
278
278
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
279
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-cdadcfa3.cjs.js'); }).then((m) => m.command))
279
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-8597bd28.cjs.js'); }).then((m) => m.command))
280
280
  );
281
281
  command.command("test").allowUnknownOption(true).option(
282
282
  "--since <ref>",
@@ -284,14 +284,14 @@ function registerRepoCommand(program) {
284
284
  ).option(
285
285
  "--jest-help",
286
286
  "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-b0fa05af.cjs.js'); }).then((m) => m.command)));
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)));
288
288
  }
289
289
  function registerScriptCommand(program) {
290
290
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
291
291
  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
292
  "--inspect-brk",
293
293
  "Enable debugger in Node.js environments, breaking before code starts"
294
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-cdb72ce4.cjs.js'); }).then((m) => m.command)));
294
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-974785be.cjs.js'); }).then((m) => m.command)));
295
295
  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
296
  "--minify",
297
297
  "Minify the generated code. Does not apply to app or backend packages."
@@ -309,33 +309,33 @@ function registerScriptCommand(program) {
309
309
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
310
310
  (opt, opts) => opts ? [...opts, opt] : [opt],
311
311
  Array()
312
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-333db2fa.cjs.js'); }).then((m) => m.command)));
312
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-808e4fa2.cjs.js'); }).then((m) => m.command)));
313
313
  command.command("lint [directories...]").option(
314
314
  "--format <format>",
315
315
  "Lint report output format",
316
316
  "eslint-formatter-friendly"
317
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-c8d362f8.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-117b4e3e.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-cfb2ffce.cjs.js'); }).then((m) => m.command)));
320
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-8cd08be0.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-1ce96731.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-1ce96731.cjs.js'); }).then((m) => m.post)));
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)));
323
323
  }
324
324
  function registerMigrateCommand(program) {
325
325
  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-29141e47.cjs.js'); }).then((m) => m.default)));
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)));
327
327
  command.command("package-scripts").description("Set package scripts according to each package role").action(
328
- lazy(() => Promise.resolve().then(function () { return require('./packageScripts-6d8f1d57.cjs.js'); }).then((m) => m.command))
328
+ lazy(() => Promise.resolve().then(function () { return require('./packageScripts-98519b35.cjs.js'); }).then((m) => m.command))
329
329
  );
330
330
  command.command("package-lint-configs").description(
331
331
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
332
332
  ).action(
333
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-d8779304.cjs.js'); }).then((m) => m.command))
333
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-4f1f7d89.cjs.js'); }).then((m) => m.command))
334
334
  );
335
335
  command.command("react-router-deps").description(
336
336
  "Migrates the react-router dependencies for all packages to be peer dependencies"
337
337
  ).action(
338
- lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-3d0b4f0c.cjs.js'); }).then((m) => m.command))
338
+ lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-04fed8ad.cjs.js'); }).then((m) => m.command))
339
339
  );
340
340
  }
341
341
  function registerCommands(program) {
@@ -355,7 +355,7 @@ function registerCommands(program) {
355
355
  ).option(
356
356
  "--baseVersion <version>",
357
357
  "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-9709921a.cjs.js'); }).then((m) => m.default)));
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)));
359
359
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
360
360
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
361
361
  ).option(
@@ -369,43 +369,43 @@ function registerCommands(program) {
369
369
  ).option("--scope <scope>", "The scope to use for new packages").option(
370
370
  "--npm-registry <URL>",
371
371
  "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-9709921a.cjs.js'); }).then((m) => m.default)));
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)));
373
373
  program.command("create-plugin", { hidden: true }).option(
374
374
  "--backend",
375
375
  "Create plugin with the backend dependencies as default"
376
376
  ).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-8f62909c.cjs.js'); }).then((m) => m.default))
377
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-e104082c.cjs.js'); }).then((m) => m.default))
378
378
  );
379
379
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
380
380
  "Diff an existing plugin with the creation template [DEPRECATED]"
381
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-609c262e.cjs.js'); }).then((m) => m.default)));
381
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-86f9ea11.cjs.js'); }).then((m) => m.default)));
382
382
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
383
383
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
384
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-117b4e3e.cjs.js'); }).then((m) => m.default)));
384
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-1fc47a8d.cjs.js'); }).then((m) => m.default)));
385
385
  program.command("config:docs").option(
386
386
  "--package <name>",
387
387
  "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-9f4d4ded.cjs.js'); }).then((m) => m.default)));
388
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-c1f1c262.cjs.js'); }).then((m) => m.default)));
389
389
  program.command("config:print").option(
390
390
  "--package <name>",
391
391
  "Only load config schema that applies to the given package"
392
392
  ).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
393
  "--format <format>",
394
394
  "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-9bd34b93.cjs.js'); }).then((m) => m.default)));
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)));
396
396
  program.command("config:check").option(
397
397
  "--package <name>",
398
398
  "Only load config schema that applies to the given package"
399
399
  ).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
400
  "Validate that the given configuration loads and matches schema"
401
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-17b11c65.cjs.js'); }).then((m) => m.default)));
401
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-2c241b25.cjs.js'); }).then((m) => m.default)));
402
402
  program.command("config:schema").option(
403
403
  "--package <name>",
404
404
  "Only output config schema that applies to the given package"
405
405
  ).option(
406
406
  "--format <format>",
407
407
  "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-9b018e12.cjs.js'); }).then((m) => m.default)));
408
+ ).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-9a7be715.cjs.js'); }).then((m) => m.default)));
409
409
  registerRepoCommand(program);
410
410
  registerScriptCommand(program);
411
411
  registerMigrateCommand(program);
@@ -416,16 +416,16 @@ function registerCommands(program) {
416
416
  "--release <version|next|main>",
417
417
  "Bump to a specific Backstage release line or version",
418
418
  "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-43bc9dcd.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-0f6dd002.cjs.js'); }).then((m) => m.default)));
421
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-8cd08be0.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-c4e4771f.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-9eebe054.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-0c3a7339.cjs.js'); }).then((m) => m.default)));
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)));
425
425
  program.command("install [plugin-id]", { hidden: true }).option(
426
426
  "--from <packageJsonFilePath>",
427
427
  "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-eee6ee94.cjs.js'); }).then((m) => m.default)));
428
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-be4e0a83.cjs.js'); }).then((m) => m.default)));
429
429
  }
430
430
  function lazy(getActionFunc) {
431
431
  return async (...args) => {
@@ -469,4 +469,4 @@ exports.devDependencies = devDependencies;
469
469
  exports.paths = paths;
470
470
  exports.version = version;
471
471
  exports.version$1 = version$9;
472
- //# sourceMappingURL=index-4e26060c.cjs.js.map
472
+ //# sourceMappingURL=index-562926a1.cjs.js.map
@@ -1,21 +1,27 @@
1
1
  'use strict';
2
2
 
3
- var createDistWorkspace = require('./createDistWorkspace-13b34403.cjs.js');
4
- var packageRoles = require('./packageRoles-4d56e8b9.cjs.js');
5
- var index = require('./index-4e26060c.cjs.js');
6
- var buildBackend = require('./buildBackend-2fdc1e48.cjs.js');
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');
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-420a9288.cjs.js');
13
+ require('./run-c2b38189.cjs.js');
14
14
  require('child_process');
15
15
  require('util');
16
16
  require('@backstage/errors');
17
- require('./PackageGraph-35080f04.cjs.js');
17
+ require('./PackageGraph-e4a85c4d.cjs.js');
18
18
  require('@manypkg/get-packages');
19
+ require('./Lockfile-938c566f.cjs.js');
20
+ require('semver');
21
+ require('@yarnpkg/parsers');
22
+ require('@yarnpkg/lockfile');
23
+ require('minimatch');
24
+ require('./yarn-6cd89e16.cjs.js');
19
25
  require('rollup');
20
26
  require('@rollup/plugin-commonjs');
21
27
  require('@rollup/plugin-node-resolve');
@@ -32,7 +38,6 @@ require('worker_threads');
32
38
  require('npm-packlist');
33
39
  require('zod');
34
40
  require('commander');
35
- require('semver');
36
41
  require('@backstage/cli-common');
37
42
  require('webpack');
38
43
  require('fork-ts-checker-webpack-plugin');
@@ -40,7 +45,7 @@ require('html-webpack-plugin');
40
45
  require('react-dev-utils/ModuleScopePlugin');
41
46
  require('run-script-webpack-plugin');
42
47
  require('webpack-node-externals');
43
- require('./paths-33a42e3d.cjs.js');
48
+ require('./paths-c8b3d46e.cjs.js');
44
49
  require('mini-css-extract-plugin');
45
50
  require('@pmmmwh/react-refresh-webpack-plugin');
46
51
  require('eslint-webpack-plugin');
@@ -50,7 +55,7 @@ require('react-dev-utils/FileSizeReporter');
50
55
  require('react-dev-utils/formatWebpackMessages');
51
56
  require('webpack-dev-server');
52
57
  require('react-dev-utils/openBrowser');
53
- require('./config-fc8cc849.cjs.js');
58
+ require('./config-d26b405e.cjs.js');
54
59
  require('@backstage/config-loader');
55
60
  require('@backstage/config');
56
61
 
@@ -88,4 +93,4 @@ async function command(opts) {
88
93
  }
89
94
 
90
95
  exports.command = command;
91
- //# sourceMappingURL=index-333db2fa.cjs.js.map
96
+ //# sourceMappingURL=index-808e4fa2.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-4e26060c.cjs.js');
4
+ var index = require('./index-562926a1.cjs.js');
5
5
  var webpack = require('webpack');
6
- var paths = require('./paths-33a42e3d.cjs.js');
6
+ var paths = require('./paths-c8b3d46e.cjs.js');
7
7
  require('yn');
8
8
  require('path');
9
9
  require('react-dev-utils/FileSizeReporter');
@@ -17,19 +17,20 @@ 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-420a9288.cjs.js');
20
+ require('./run-c2b38189.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-fc8cc849.cjs.js');
28
- var Lockfile = require('./Lockfile-6785964d.cjs.js');
27
+ var config = require('./config-d26b405e.cjs.js');
28
+ var Lockfile = require('./Lockfile-938c566f.cjs.js');
29
29
  require('minimatch');
30
30
  require('./yarn-6cd89e16.cjs.js');
31
- var lint = require('./lint-0f6dd002.cjs.js');
32
- var packageRoles = require('./packageRoles-4d56e8b9.cjs.js');
31
+ var lint = require('./lint-d772d2c7.cjs.js');
32
+ var PackageGraph = require('./PackageGraph-e4a85c4d.cjs.js');
33
+ var packageRoles = require('./packageRoles-535f8c22.cjs.js');
33
34
  require('commander');
34
35
  require('semver');
35
36
  require('@backstage/errors');
@@ -38,7 +39,6 @@ require('child_process');
38
39
  require('util');
39
40
  require('@backstage/config-loader');
40
41
  require('@backstage/config');
41
- require('./PackageGraph-35080f04.cjs.js');
42
42
  require('@yarnpkg/parsers');
43
43
  require('@yarnpkg/lockfile');
44
44
  require('lodash/partition');
@@ -159,11 +159,12 @@ async function startFrontend(options) {
159
159
  if (options.verifyVersions) {
160
160
  const lockfile = await Lockfile.Lockfile.load(index.paths.resolveTargetRoot("yarn.lock"));
161
161
  const result = lockfile.analyze({
162
- filter: lint.includedFilter
162
+ filter: lint.includedFilter,
163
+ localPackages: PackageGraph.PackageGraph.fromPackages(
164
+ await PackageGraph.PackageGraph.listTargetPackages()
165
+ )
163
166
  });
164
- const problemPackages = [...result.newVersions, ...result.newRanges].map(
165
- ({ name: name2 }) => name2
166
- );
167
+ const problemPackages = [...result.newVersions, ...result.newRanges].map(({ name: name2 }) => name2).filter(lint.forbiddenDuplicatesFilter);
167
168
  if (problemPackages.length > 1) {
168
169
  console.log(
169
170
  chalk__default["default"].yellow(
@@ -246,4 +247,4 @@ async function command(opts) {
246
247
  }
247
248
 
248
249
  exports.command = command;
249
- //# sourceMappingURL=index-cdb72ce4.cjs.js.map
250
+ //# sourceMappingURL=index-974785be.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-4e26060c.cjs.js');
7
+ var index$1 = require('./index-562926a1.cjs.js');
8
8
  var crypto = require('crypto');
9
9
  var openBrowser = require('react-dev-utils/openBrowser');
10
10
  var request = require('@octokit/request');
@@ -34,7 +34,7 @@ const FORM_PAGE = `
34
34
  </form>
35
35
  <script>
36
36
  document.getElementById("form").submit()
37
- </script>
37
+ <\/script>
38
38
  </body>
39
39
  </html>
40
40
  `;
@@ -222,4 +222,4 @@ async function verifyGithubOrg(org) {
222
222
  }
223
223
 
224
224
  exports["default"] = index;
225
- //# sourceMappingURL=index-9eebe054.cjs.js.map
225
+ //# sourceMappingURL=index-e527017d.cjs.js.map
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-4e26060c.cjs.js');
3
+ var index = require('./index-562926a1.cjs.js');
4
4
  var os = require('os');
5
- var run = require('./run-420a9288.cjs.js');
6
- var Lockfile = require('./Lockfile-6785964d.cjs.js');
5
+ var run = require('./run-c2b38189.cjs.js');
6
+ var Lockfile = require('./Lockfile-938c566f.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-0c3a7339.cjs.js.map
61
+ //# sourceMappingURL=info-bb829f95.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-304263af.cjs.js');
8
- var index = require('./index-4e26060c.cjs.js');
7
+ var packages = require('./packages-be9bab6b.cjs.js');
8
+ var index = require('./index-562926a1.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-420a9288.cjs.js');
12
+ var run = require('./run-c2b38189.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-eee6ee94.cjs.js.map
271
+ //# sourceMappingURL=install-be4e0a83.cjs.js.map
@@ -2,18 +2,24 @@
2
2
 
3
3
  var chalk = require('chalk');
4
4
  var path = require('path');
5
- var PackageGraph = require('./PackageGraph-35080f04.cjs.js');
5
+ var PackageGraph = require('./PackageGraph-e4a85c4d.cjs.js');
6
6
  var parallel = require('./parallel-a8f6219c.cjs.js');
7
- var index = require('./index-4e26060c.cjs.js');
7
+ var index = require('./index-562926a1.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');
13
+ require('fs-extra');
14
+ require('semver');
15
+ require('@yarnpkg/parsers');
16
+ require('@yarnpkg/lockfile');
17
+ require('minimatch');
18
+ require('./yarn-6cd89e16.cjs.js');
19
+ require('./run-c2b38189.cjs.js');
12
20
  require('os');
13
21
  require('worker_threads');
14
22
  require('commander');
15
- require('fs-extra');
16
- require('semver');
17
23
  require('@backstage/cli-common');
18
24
 
19
25
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -29,7 +35,10 @@ async function command(opts) {
29
35
  let packages = await PackageGraph.PackageGraph.listTargetPackages();
30
36
  if (opts.since) {
31
37
  const graph = PackageGraph.PackageGraph.fromPackages(packages);
32
- packages = await graph.listChangedPackages({ ref: opts.since });
38
+ packages = await graph.listChangedPackages({
39
+ ref: opts.since,
40
+ analyzeLockfile: true
41
+ });
33
42
  }
34
43
  packages.sort((a, b) => depCount(b.packageJson) - depCount(a.packageJson));
35
44
  if (opts.format === "eslint-formatter-friendly") {
@@ -88,4 +97,4 @@ async function command(opts) {
88
97
  }
89
98
 
90
99
  exports.command = command;
91
- //# sourceMappingURL=lint-5d424da2.cjs.js.map
100
+ //# sourceMappingURL=lint-08b0b478.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-4e26060c.cjs.js');
3
+ var index = require('./index-562926a1.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-c8d362f8.cjs.js.map
36
+ //# sourceMappingURL=lint-0cc52557.cjs.js.map