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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/cjs/{Lockfile-bc3a8337.cjs.js → Lockfile-eced6070.cjs.js} +1 -65
  3. package/dist/cjs/{build-34419958.cjs.js → build-dc637c43.cjs.js} +16 -23
  4. package/dist/cjs/{buildBackend-6315da87.cjs.js → buildBackend-48fa438b.cjs.js} +8 -7
  5. package/dist/cjs/{buildWorkspace-e1dd2931.cjs.js → buildWorkspace-bc01ac87.cjs.js} +7 -15
  6. package/dist/cjs/{bump-ba095aea.cjs.js → bump-5bd8d76e.cjs.js} +9 -9
  7. package/dist/cjs/{clean-117c06e8.cjs.js → clean-16c34ac8.cjs.js} +7 -14
  8. package/dist/cjs/{clean-10f71978.cjs.js → clean-400943ae.cjs.js} +2 -2
  9. package/dist/cjs/{codeowners-ec774f58.cjs.js → codeowners-7125db8b.cjs.js} +2 -2
  10. package/dist/cjs/{config-b630462b.cjs.js → config-cf13fcb5.cjs.js} +5 -4
  11. package/dist/cjs/{createDistWorkspace-53c29e53.cjs.js → createDistWorkspace-ff351433.cjs.js} +19 -18
  12. package/dist/cjs/{createPlugin-260d865c.cjs.js → createPlugin-9dd2b8b0.cjs.js} +5 -5
  13. package/dist/cjs/{diff-a63619b7.cjs.js → diff-b9310329.cjs.js} +2 -2
  14. package/dist/cjs/{docs-aebd654b.cjs.js → docs-2fed969c.cjs.js} +4 -13
  15. package/dist/cjs/{entryPoints-5e73783d.cjs.js → entryPoints-0cc55995.cjs.js} +1 -1
  16. package/dist/cjs/{fix-33ec227b.cjs.js → fix-c32997bb.cjs.js} +4 -13
  17. package/dist/cjs/{index-44665fb9.cjs.js → index-a4ecaef6.cjs.js} +2 -2
  18. package/dist/cjs/{index-ca8e3b96.cjs.js → index-b4601a25.cjs.js} +48 -46
  19. package/dist/cjs/{index-9ec09897.cjs.js → index-d0e82a3e.cjs.js} +29 -28
  20. package/dist/cjs/{index-62a9824e.cjs.js → index-e788983d.cjs.js} +15 -16
  21. package/dist/cjs/{info-b05d5cf7.cjs.js → info-b0f86ac4.cjs.js} +4 -4
  22. package/dist/cjs/{install-3f29c0fc.cjs.js → install-157c4d68.cjs.js} +4 -4
  23. package/dist/cjs/{lint-39049bc2.cjs.js → lint-63cb9027.cjs.js} +7 -8
  24. package/dist/cjs/{lint-6eacc0e3.cjs.js → lint-74d30823.cjs.js} +8 -17
  25. package/dist/cjs/{lint-02158235.cjs.js → lint-81716a04.cjs.js} +2 -2
  26. package/dist/cjs/{list-deprecations-6f3e6ecc.cjs.js → list-deprecations-7794807f.cjs.js} +4 -13
  27. package/dist/cjs/{new-22b86d62.cjs.js → new-9002c3e3.cjs.js} +7 -17
  28. package/dist/cjs/{pack-889d7ba2.cjs.js → pack-c14e0e8a.cjs.js} +4 -4
  29. package/dist/cjs/{packageExports-833dbc8f.cjs.js → packageExports-50d8546d.cjs.js} +3 -18
  30. package/dist/cjs/{packageLintConfigs-8fe7a3aa.cjs.js → packageLintConfigs-e755a908.cjs.js} +6 -12
  31. package/dist/cjs/{packageRole-8cd65354.cjs.js → packageRole-4a3dc7b6.cjs.js} +5 -6
  32. package/dist/cjs/{packageScripts-c4254268.cjs.js → packageScripts-c6721fac.cjs.js} +5 -22
  33. package/dist/cjs/{packages-a37412df.cjs.js → packages-edc691e5.cjs.js} +3 -3
  34. package/dist/cjs/{paths-8b62e6d3.cjs.js → paths-b16e8b79.cjs.js} +4 -4
  35. package/dist/cjs/{print-fefcaeda.cjs.js → print-47215164.cjs.js} +4 -13
  36. package/dist/cjs/{productionPack-fdf62126.cjs.js → productionPack-d569941a.cjs.js} +2 -2
  37. package/dist/cjs/{reactRouterDeps-2735b871.cjs.js → reactRouterDeps-a2bb1d62.cjs.js} +4 -21
  38. package/dist/cjs/role-55ce5ba5.cjs.js +25 -0
  39. package/dist/cjs/{run-7b3a246f.cjs.js → run-fd7a8645.cjs.js} +2 -2
  40. package/dist/cjs/{schema-aa8288ac.cjs.js → schema-61040063.cjs.js} +4 -13
  41. package/dist/cjs/{test-fdfd38cf.cjs.js → test-0ee48913.cjs.js} +11 -18
  42. package/dist/cjs/{test-8a770121.cjs.js → test-98272529.cjs.js} +3 -3
  43. package/dist/cjs/{validate-0f9243f2.cjs.js → validate-84db961e.cjs.js} +4 -13
  44. package/dist/index.cjs.js +1 -1
  45. package/package.json +12 -10
  46. package/dist/cjs/PackageGraph-2eb22088.cjs.js +0 -250
  47. package/dist/cjs/packageRoles-2426a6db.cjs.js +0 -160
@@ -1,24 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-ca8e3b96.cjs.js');
3
+ var index = require('./index-b4601a25.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-2eb22088.cjs.js');
8
+ var cliNode = require('@backstage/cli-node');
9
9
  require('commander');
10
10
  require('chalk');
11
11
  require('semver');
12
12
  require('@backstage/errors');
13
- require('@manypkg/get-packages');
14
- require('child_process');
15
- require('util');
16
- require('./Lockfile-bc3a8337.cjs.js');
17
- require('@yarnpkg/parsers');
18
- require('@yarnpkg/lockfile');
19
- require('minimatch');
20
- require('./yarn-6cd89e16.cjs.js');
21
- require('./run-7b3a246f.cjs.js');
22
13
 
23
14
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
24
15
 
@@ -39,7 +30,7 @@ async function command() {
39
30
  "Adding dependencies to the workspace root is not supported"
40
31
  );
41
32
  }
42
- const packages = await PackageGraph.PackageGraph.listTargetPackages();
33
+ const packages = await cliNode.PackageGraph.listTargetPackages();
43
34
  const localPackageVersions = new Map(
44
35
  packages.map((p) => [p.packageJson.name, p.packageJson.version])
45
36
  );
@@ -129,4 +120,4 @@ async function command() {
129
120
  }
130
121
 
131
122
  exports.command = command;
132
- //# sourceMappingURL=fix-33ec227b.cjs.js.map
123
+ //# sourceMappingURL=fix-c32997bb.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-ca8e3b96.cjs.js');
7
+ var index$1 = require('./index-b4601a25.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-44665fb9.cjs.js.map
225
+ //# sourceMappingURL=index-a4ecaef6.cjs.js.map
@@ -46,11 +46,12 @@ class NotFoundError extends CustomError {
46
46
 
47
47
  const paths = cliCommon.findPaths(__dirname);
48
48
 
49
- var version$a = "0.18.4-next.1";
49
+ var version$a = "0.18.4-next.2";
50
50
 
51
- var version$9 = "0.22.6-next.1";
51
+ var version$9 = "0.22.6-next.3";
52
52
  var dependencies = {
53
53
  "@backstage/cli-common": "workspace:^",
54
+ "@backstage/cli-node": "workspace:^",
54
55
  "@backstage/config": "workspace:^",
55
56
  "@backstage/config-loader": "workspace:^",
56
57
  "@backstage/errors": "workspace:^",
@@ -75,8 +76,8 @@ var dependencies = {
75
76
  "@svgr/plugin-svgo": "6.5.x",
76
77
  "@svgr/rollup": "6.5.x",
77
78
  "@svgr/webpack": "6.5.x",
78
- "@swc/core": "^1.3.9",
79
- "@swc/helpers": "^0.4.7",
79
+ "@swc/core": "^1.3.46",
80
+ "@swc/helpers": "^0.5.0",
80
81
  "@swc/jest": "^0.2.22",
81
82
  "@types/jest": "^29.0.0",
82
83
  "@types/webpack-env": "^1.15.2",
@@ -181,24 +182,25 @@ var devDependencies = {
181
182
  "mock-fs": "^5.1.0",
182
183
  msw: "^1.0.0",
183
184
  nodemon: "^2.0.2",
184
- "ts-node": "^10.0.0"
185
+ "ts-node": "^10.0.0",
186
+ "type-fest": "^2.19.0"
185
187
  };
186
188
 
187
189
  var version$8 = "1.0.7";
188
190
 
189
- var version$7 = "1.7.0-next.1";
191
+ var version$7 = "1.7.0-next.3";
190
192
 
191
- var version$6 = "0.12.6-next.1";
193
+ var version$6 = "0.13.0-next.3";
192
194
 
193
- var version$5 = "1.5.1-next.0";
195
+ var version$5 = "1.5.1-next.1";
194
196
 
195
- var version$4 = "1.0.14-next.1";
197
+ var version$4 = "1.0.14-next.3";
196
198
 
197
- var version$3 = "1.3.0-next.1";
199
+ var version$3 = "1.3.0-next.3";
198
200
 
199
201
  var version$2 = "0.2.19-next.0";
200
202
 
201
- var version$1 = "1.13.0-next.1";
203
+ var version$1 = "1.13.0-next.3";
202
204
 
203
205
  const packageVersions = {
204
206
  "@backstage/backend-common": version$a,
@@ -272,7 +274,7 @@ function registerRepoCommand(program) {
272
274
  ).option(
273
275
  "--since <ref>",
274
276
  "Only build packages and their dev dependents that changed since the specified ref"
275
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-34419958.cjs.js'); }).then((m) => m.command)));
277
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-dc637c43.cjs.js'); }).then((m) => m.command)));
276
278
  command.command("lint").description("Lint all packages in the project").option(
277
279
  "--format <format>",
278
280
  "Lint report output format",
@@ -280,10 +282,10 @@ function registerRepoCommand(program) {
280
282
  ).option(
281
283
  "--since <ref>",
282
284
  "Only lint packages that changed since the specified ref"
283
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-6eacc0e3.cjs.js'); }).then((m) => m.command)));
284
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-117c06e8.cjs.js'); }).then((m) => m.command)));
285
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-74d30823.cjs.js'); }).then((m) => m.command)));
286
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-16c34ac8.cjs.js'); }).then((m) => m.command)));
285
287
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
286
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-6f3e6ecc.cjs.js'); }).then((m) => m.command))
288
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-7794807f.cjs.js'); }).then((m) => m.command))
287
289
  );
288
290
  command.command("test").allowUnknownOption(true).option(
289
291
  "--since <ref>",
@@ -291,14 +293,14 @@ function registerRepoCommand(program) {
291
293
  ).option(
292
294
  "--jest-help",
293
295
  "Show help for Jest CLI options, which are passed through"
294
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-fdfd38cf.cjs.js'); }).then((m) => m.command)));
296
+ ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-0ee48913.cjs.js'); }).then((m) => m.command)));
295
297
  }
296
298
  function registerScriptCommand(program) {
297
299
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
298
300
  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(
299
301
  "--inspect-brk",
300
302
  "Enable debugger in Node.js environments, breaking before code starts"
301
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-62a9824e.cjs.js'); }).then((m) => m.command)));
303
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-e788983d.cjs.js'); }).then((m) => m.command)));
302
304
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
303
305
  "--minify",
304
306
  "Minify the generated code. Does not apply to app or backend packages."
@@ -316,36 +318,36 @@ function registerScriptCommand(program) {
316
318
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
317
319
  (opt, opts) => opts ? [...opts, opt] : [opt],
318
320
  Array()
319
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-9ec09897.cjs.js'); }).then((m) => m.command)));
321
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-d0e82a3e.cjs.js'); }).then((m) => m.command)));
320
322
  command.command("lint [directories...]").option(
321
323
  "--format <format>",
322
324
  "Lint report output format",
323
325
  "eslint-formatter-friendly"
324
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-02158235.cjs.js'); }).then((m) => m.default)));
325
- 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-8a770121.cjs.js'); }).then((m) => m.default)));
326
- 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-33ec227b.cjs.js'); }).then((m) => m.command)));
327
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-10f71978.cjs.js'); }).then((m) => m.default)));
328
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-889d7ba2.cjs.js'); }).then((m) => m.pre)));
329
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-889d7ba2.cjs.js'); }).then((m) => m.post)));
326
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-81716a04.cjs.js'); }).then((m) => m.default)));
327
+ 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-98272529.cjs.js'); }).then((m) => m.default)));
328
+ 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-c32997bb.cjs.js'); }).then((m) => m.command)));
329
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-400943ae.cjs.js'); }).then((m) => m.default)));
330
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-c14e0e8a.cjs.js'); }).then((m) => m.pre)));
331
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-c14e0e8a.cjs.js'); }).then((m) => m.post)));
330
332
  }
331
333
  function registerMigrateCommand(program) {
332
334
  const command = program.command("migrate [command]").description("Migration utilities");
333
- 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-8cd65354.cjs.js'); }).then((m) => m.default)));
335
+ 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-4a3dc7b6.cjs.js'); }).then((m) => m.default)));
334
336
  command.command("package-scripts").description("Set package scripts according to each package role").action(
335
- lazy(() => Promise.resolve().then(function () { return require('./packageScripts-c4254268.cjs.js'); }).then((m) => m.command))
337
+ lazy(() => Promise.resolve().then(function () { return require('./packageScripts-c6721fac.cjs.js'); }).then((m) => m.command))
336
338
  );
337
339
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
338
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-833dbc8f.cjs.js'); }).then((m) => m.command))
340
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-50d8546d.cjs.js'); }).then((m) => m.command))
339
341
  );
340
342
  command.command("package-lint-configs").description(
341
343
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
342
344
  ).action(
343
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-8fe7a3aa.cjs.js'); }).then((m) => m.command))
345
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-e755a908.cjs.js'); }).then((m) => m.command))
344
346
  );
345
347
  command.command("react-router-deps").description(
346
348
  "Migrates the react-router dependencies for all packages to be peer dependencies"
347
349
  ).action(
348
- lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-2735b871.cjs.js'); }).then((m) => m.command))
350
+ lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-a2bb1d62.cjs.js'); }).then((m) => m.command))
349
351
  );
350
352
  }
351
353
  function registerCommands(program) {
@@ -365,7 +367,7 @@ function registerCommands(program) {
365
367
  ).option(
366
368
  "--baseVersion <version>",
367
369
  "The version to use for any new packages (default: 0.1.0)"
368
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-22b86d62.cjs.js'); }).then((m) => m.default)));
370
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-9002c3e3.cjs.js'); }).then((m) => m.default)));
369
371
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
370
372
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
371
373
  ).option(
@@ -379,43 +381,43 @@ function registerCommands(program) {
379
381
  ).option("--scope <scope>", "The scope to use for new packages").option(
380
382
  "--npm-registry <URL>",
381
383
  "The package registry to use for new packages"
382
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-22b86d62.cjs.js'); }).then((m) => m.default)));
384
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-9002c3e3.cjs.js'); }).then((m) => m.default)));
383
385
  program.command("create-plugin", { hidden: true }).option(
384
386
  "--backend",
385
387
  "Create plugin with the backend dependencies as default"
386
388
  ).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(
387
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-260d865c.cjs.js'); }).then((m) => m.default))
389
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-9dd2b8b0.cjs.js'); }).then((m) => m.default))
388
390
  );
389
391
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
390
392
  "Diff an existing plugin with the creation template [DEPRECATED]"
391
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-a63619b7.cjs.js'); }).then((m) => m.default)));
393
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-b9310329.cjs.js'); }).then((m) => m.default)));
392
394
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
393
395
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
394
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-8a770121.cjs.js'); }).then((m) => m.default)));
396
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-98272529.cjs.js'); }).then((m) => m.default)));
395
397
  program.command("config:docs").option(
396
398
  "--package <name>",
397
399
  "Only include the schema that applies to the given package"
398
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-aebd654b.cjs.js'); }).then((m) => m.default)));
400
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-2fed969c.cjs.js'); }).then((m) => m.default)));
399
401
  program.command("config:print").option(
400
402
  "--package <name>",
401
403
  "Only load config schema that applies to the given package"
402
404
  ).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(
403
405
  "--format <format>",
404
406
  "Format to print the configuration in, either json or yaml [yaml]"
405
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-fefcaeda.cjs.js'); }).then((m) => m.default)));
407
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-47215164.cjs.js'); }).then((m) => m.default)));
406
408
  program.command("config:check").option(
407
409
  "--package <name>",
408
410
  "Only load config schema that applies to the given package"
409
411
  ).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(
410
412
  "Validate that the given configuration loads and matches schema"
411
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-0f9243f2.cjs.js'); }).then((m) => m.default)));
413
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-84db961e.cjs.js'); }).then((m) => m.default)));
412
414
  program.command("config:schema").option(
413
415
  "--package <name>",
414
416
  "Only output config schema that applies to the given package"
415
417
  ).option(
416
418
  "--format <format>",
417
419
  "Format to print the schema in, either json or yaml [yaml]"
418
- ).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-aa8288ac.cjs.js'); }).then((m) => m.default)));
420
+ ).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-61040063.cjs.js'); }).then((m) => m.default)));
419
421
  registerRepoCommand(program);
420
422
  registerScriptCommand(program);
421
423
  registerMigrateCommand(program);
@@ -427,16 +429,16 @@ function registerCommands(program) {
427
429
  "--release <version|next|main>",
428
430
  "Bump to a specific Backstage release line or version",
429
431
  "main"
430
- ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-ba095aea.cjs.js'); }).then((m) => m.default)));
431
- 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-39049bc2.cjs.js'); }).then((m) => m.default)));
432
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-10f71978.cjs.js'); }).then((m) => m.default)));
433
- 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-e1dd2931.cjs.js'); }).then((m) => m.default)));
434
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-44665fb9.cjs.js'); }).then((m) => m.default)));
435
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-b05d5cf7.cjs.js'); }).then((m) => m.default)));
432
+ ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-5bd8d76e.cjs.js'); }).then((m) => m.default)));
433
+ 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-63cb9027.cjs.js'); }).then((m) => m.default)));
434
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-400943ae.cjs.js'); }).then((m) => m.default)));
435
+ 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-bc01ac87.cjs.js'); }).then((m) => m.default)));
436
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-a4ecaef6.cjs.js'); }).then((m) => m.default)));
437
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-b0f86ac4.cjs.js'); }).then((m) => m.default)));
436
438
  program.command("install [plugin-id]", { hidden: true }).option(
437
439
  "--from <packageJsonFilePath>",
438
440
  "Install from a local package.json containing the installation recipe"
439
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-3f29c0fc.cjs.js'); }).then((m) => m.default)));
441
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-157c4d68.cjs.js'); }).then((m) => m.default)));
440
442
  }
441
443
  function lazy(getActionFunc) {
442
444
  return async (...args) => {
@@ -480,4 +482,4 @@ exports.devDependencies = devDependencies;
480
482
  exports.paths = paths;
481
483
  exports.version = version;
482
484
  exports.version$1 = version$9;
483
- //# sourceMappingURL=index-ca8e3b96.cjs.js.map
485
+ //# sourceMappingURL=index-b4601a25.cjs.js.map
@@ -1,27 +1,21 @@
1
1
  'use strict';
2
2
 
3
- var createDistWorkspace = require('./createDistWorkspace-53c29e53.cjs.js');
4
- var packageRoles = require('./packageRoles-2426a6db.cjs.js');
5
- var index = require('./index-ca8e3b96.cjs.js');
6
- var buildBackend = require('./buildBackend-6315da87.cjs.js');
3
+ var createDistWorkspace = require('./createDistWorkspace-ff351433.cjs.js');
4
+ var role = require('./role-55ce5ba5.cjs.js');
5
+ var cliNode = require('@backstage/cli-node');
6
+ var index = require('./index-b4601a25.cjs.js');
7
+ var buildBackend = require('./buildBackend-48fa438b.cjs.js');
8
+ var config = require('./config-cf13fcb5.cjs.js');
7
9
  require('chalk');
8
10
  require('fs-extra');
9
11
  require('path');
10
12
  require('os');
11
13
  require('tar');
12
14
  require('lodash/partition');
13
- require('./run-7b3a246f.cjs.js');
15
+ require('./run-fd7a8645.cjs.js');
14
16
  require('child_process');
15
17
  require('util');
16
18
  require('@backstage/errors');
17
- require('./PackageGraph-2eb22088.cjs.js');
18
- require('@manypkg/get-packages');
19
- require('./Lockfile-bc3a8337.cjs.js');
20
- require('semver');
21
- require('@yarnpkg/parsers');
22
- require('@yarnpkg/lockfile');
23
- require('minimatch');
24
- require('./yarn-6cd89e16.cjs.js');
25
19
  require('rollup');
26
20
  require('@rollup/plugin-commonjs');
27
21
  require('@rollup/plugin-node-resolve');
@@ -33,13 +27,13 @@ require('@rollup/plugin-json');
33
27
  require('@rollup/plugin-yaml');
34
28
  require('rollup-pluginutils');
35
29
  require('./svgrTemplate-550efce6.cjs.js');
36
- require('./entryPoints-5e73783d.cjs.js');
30
+ require('./entryPoints-0cc55995.cjs.js');
37
31
  require('./parallel-a8f6219c.cjs.js');
38
32
  require('worker_threads');
39
- require('./productionPack-fdf62126.cjs.js');
33
+ require('./productionPack-d569941a.cjs.js');
40
34
  require('npm-packlist');
41
- require('zod');
42
35
  require('commander');
36
+ require('semver');
43
37
  require('@backstage/cli-common');
44
38
  require('webpack');
45
39
  require('fork-ts-checker-webpack-plugin');
@@ -47,7 +41,8 @@ require('html-webpack-plugin');
47
41
  require('react-dev-utils/ModuleScopePlugin');
48
42
  require('run-script-webpack-plugin');
49
43
  require('webpack-node-externals');
50
- require('./paths-8b62e6d3.cjs.js');
44
+ require('@manypkg/get-packages');
45
+ require('./paths-b16e8b79.cjs.js');
51
46
  require('mini-css-extract-plugin');
52
47
  require('@pmmmwh/react-refresh-webpack-plugin');
53
48
  require('eslint-webpack-plugin');
@@ -57,26 +52,32 @@ require('react-dev-utils/FileSizeReporter');
57
52
  require('react-dev-utils/formatWebpackMessages');
58
53
  require('webpack-dev-server');
59
54
  require('react-dev-utils/openBrowser');
60
- require('./config-b630462b.cjs.js');
61
55
  require('@backstage/config-loader');
62
56
  require('@backstage/config');
63
57
 
64
58
  async function command(opts) {
65
- const role = await packageRoles.findRoleFromCommand(opts);
66
- if (role === "frontend") {
67
- return buildBackend.buildFrontend({
68
- targetDir: index.paths.targetDir,
69
- configPaths: opts.config,
70
- writeStats: Boolean(opts.stats)
59
+ const role$1 = await role.findRoleFromCommand(opts);
60
+ if (role$1 === "frontend" || role$1 === "backend") {
61
+ const configPaths = opts.config.map((arg) => {
62
+ if (config.isValidUrl(arg)) {
63
+ return arg;
64
+ }
65
+ return index.paths.resolveTarget(arg);
71
66
  });
72
- }
73
- if (role === "backend") {
67
+ if (role$1 === "frontend") {
68
+ return buildBackend.buildFrontend({
69
+ targetDir: index.paths.targetDir,
70
+ configPaths,
71
+ writeStats: Boolean(opts.stats)
72
+ });
73
+ }
74
74
  return buildBackend.buildBackend({
75
75
  targetDir: index.paths.targetDir,
76
+ configPaths,
76
77
  skipBuildDependencies: Boolean(opts.skipBuildDependencies)
77
78
  });
78
79
  }
79
- const roleInfo = packageRoles.getRoleInfo(role);
80
+ const roleInfo = cliNode.PackageRoles.getRoleInfo(role$1);
80
81
  const outputs = /* @__PURE__ */ new Set();
81
82
  if (roleInfo.output.includes("cjs")) {
82
83
  outputs.add(createDistWorkspace.Output.cjs);
@@ -95,4 +96,4 @@ async function command(opts) {
95
96
  }
96
97
 
97
98
  exports.command = command;
98
- //# sourceMappingURL=index-9ec09897.cjs.js.map
99
+ //# sourceMappingURL=index-d0e82a3e.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-ca8e3b96.cjs.js');
4
+ var index = require('./index-b4601a25.cjs.js');
5
5
  var webpack = require('webpack');
6
- var paths = require('./paths-8b62e6d3.cjs.js');
6
+ var paths = require('./paths-b16e8b79.cjs.js');
7
7
  require('yn');
8
8
  var path = require('path');
9
9
  require('react-dev-utils/FileSizeReporter');
@@ -17,7 +17,7 @@ require('@backstage/cli-common');
17
17
  require('@manypkg/get-packages');
18
18
  require('mini-css-extract-plugin');
19
19
  require('@pmmmwh/react-refresh-webpack-plugin');
20
- require('./run-7b3a246f.cjs.js');
20
+ require('./run-fd7a8645.cjs.js');
21
21
  require('eslint-webpack-plugin');
22
22
  require('lodash/pickBy');
23
23
  var chalk = require('chalk');
@@ -29,17 +29,17 @@ var errors = require('@backstage/errors');
29
29
  var debounce = require('lodash/debounce');
30
30
  var spawn = require('cross-spawn');
31
31
  var uniq = require('lodash/uniq');
32
- var config = require('./config-b630462b.cjs.js');
33
- var Lockfile = require('./Lockfile-bc3a8337.cjs.js');
32
+ var config = require('./config-cf13fcb5.cjs.js');
33
+ var cliNode = require('@backstage/cli-node');
34
+ var Lockfile = require('./Lockfile-eced6070.cjs.js');
34
35
  require('minimatch');
35
36
  require('./yarn-6cd89e16.cjs.js');
36
- var lint = require('./lint-39049bc2.cjs.js');
37
- var PackageGraph = require('./PackageGraph-2eb22088.cjs.js');
38
- var packageRoles = require('./packageRoles-2426a6db.cjs.js');
37
+ var lint = require('./lint-63cb9027.cjs.js');
38
+ var role = require('./role-55ce5ba5.cjs.js');
39
39
  require('commander');
40
40
  require('semver');
41
41
  require('./svgrTemplate-550efce6.cjs.js');
42
- require('./entryPoints-5e73783d.cjs.js');
42
+ require('./entryPoints-0cc55995.cjs.js');
43
43
  require('child_process');
44
44
  require('util');
45
45
  require('@backstage/config-loader');
@@ -47,7 +47,6 @@ require('@backstage/config');
47
47
  require('@yarnpkg/parsers');
48
48
  require('@yarnpkg/lockfile');
49
49
  require('lodash/partition');
50
- require('zod');
51
50
 
52
51
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
53
52
 
@@ -383,8 +382,8 @@ async function startFrontend(options) {
383
382
  const lockfile = await Lockfile.Lockfile.load(index.paths.resolveTargetRoot("yarn.lock"));
384
383
  const result = lockfile.analyze({
385
384
  filter: lint.includedFilter,
386
- localPackages: PackageGraph.PackageGraph.fromPackages(
387
- await PackageGraph.PackageGraph.listTargetPackages()
385
+ localPackages: cliNode.PackageGraph.fromPackages(
386
+ await cliNode.PackageGraph.listTargetPackages()
388
387
  )
389
388
  });
390
389
  const problemPackages = [...result.newVersions, ...result.newRanges].map(({ name: name2 }) => name2).filter(lint.forbiddenDuplicatesFilter);
@@ -439,14 +438,14 @@ async function startFrontend(options) {
439
438
  }
440
439
 
441
440
  async function command(opts) {
442
- const role = await packageRoles.findRoleFromCommand(opts);
441
+ const role$1 = await role.findRoleFromCommand(opts);
443
442
  const options = {
444
443
  configPaths: opts.config,
445
444
  checksEnabled: Boolean(opts.check),
446
445
  inspectEnabled: Boolean(opts.inspect),
447
446
  inspectBrkEnabled: Boolean(opts.inspectBrk)
448
447
  };
449
- switch (role) {
448
+ switch (role$1) {
450
449
  case "backend":
451
450
  case "backend-plugin":
452
451
  case "backend-plugin-module":
@@ -464,10 +463,10 @@ async function command(opts) {
464
463
  return startFrontend({ entry: "dev/index", ...options });
465
464
  default:
466
465
  throw new Error(
467
- `Start command is not supported for package role '${role}'`
466
+ `Start command is not supported for package role '${role$1}'`
468
467
  );
469
468
  }
470
469
  }
471
470
 
472
471
  exports.command = command;
473
- //# sourceMappingURL=index-62a9824e.cjs.js.map
472
+ //# sourceMappingURL=index-e788983d.cjs.js.map
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-ca8e3b96.cjs.js');
3
+ var index = require('./index-b4601a25.cjs.js');
4
4
  var os = require('os');
5
- var run = require('./run-7b3a246f.cjs.js');
6
- var Lockfile = require('./Lockfile-bc3a8337.cjs.js');
5
+ var run = require('./run-fd7a8645.cjs.js');
6
+ var Lockfile = require('./Lockfile-eced6070.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-b05d5cf7.cjs.js.map
61
+ //# sourceMappingURL=info-b0f86ac4.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-a37412df.cjs.js');
8
- var index = require('./index-ca8e3b96.cjs.js');
7
+ var packages = require('./packages-edc691e5.cjs.js');
8
+ var index = require('./index-b4601a25.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-7b3a246f.cjs.js');
12
+ var run = require('./run-fd7a8645.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-3f29c0fc.cjs.js.map
271
+ //# sourceMappingURL=install-157c4d68.cjs.js.map
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var Lockfile = require('./Lockfile-bc3a8337.cjs.js');
3
+ var Lockfile = require('./Lockfile-eced6070.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-7b3a246f.cjs.js');
9
- var index = require('./index-ca8e3b96.cjs.js');
8
+ require('./run-fd7a8645.cjs.js');
9
+ var index = require('./index-b4601a25.cjs.js');
10
10
  var partition = require('lodash/partition');
11
- var PackageGraph = require('./PackageGraph-2eb22088.cjs.js');
11
+ var cliNode = require('@backstage/cli-node');
12
12
  require('fs-extra');
13
13
  require('semver');
14
14
  require('@yarnpkg/parsers');
@@ -18,7 +18,6 @@ require('child_process');
18
18
  require('util');
19
19
  require('commander');
20
20
  require('@backstage/cli-common');
21
- require('path');
22
21
 
23
22
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
24
23
 
@@ -46,8 +45,8 @@ var lint = async (cmd) => {
46
45
  const lockfile = await Lockfile.Lockfile.load(lockfilePath);
47
46
  const result = lockfile.analyze({
48
47
  filter: includedFilter,
49
- localPackages: PackageGraph.PackageGraph.fromPackages(
50
- await PackageGraph.PackageGraph.listTargetPackages()
48
+ localPackages: cliNode.PackageGraph.fromPackages(
49
+ await cliNode.PackageGraph.listTargetPackages()
51
50
  )
52
51
  });
53
52
  logArray(
@@ -113,4 +112,4 @@ function logArray(arr, header, each) {
113
112
  exports["default"] = lint;
114
113
  exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
115
114
  exports.includedFilter = includedFilter;
116
- //# sourceMappingURL=lint-39049bc2.cjs.js.map
115
+ //# sourceMappingURL=lint-63cb9027.cjs.js.map