@backstage/cli 0.22.13-next.1 → 0.22.13-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 +41 -0
  2. package/dist/cjs/{build-76b15a06.cjs.js → build-78388961.cjs.js} +12 -11
  3. package/dist/cjs/{buildBackend-283ffbc8.cjs.js → buildBackend-8736c629.cjs.js} +27 -21
  4. package/dist/cjs/{buildWorkspace-cedbf031.cjs.js → buildWorkspace-a2607a91.cjs.js} +4 -4
  5. package/dist/cjs/{bump-708dac69.cjs.js → bump-c5d60f43.cjs.js} +16 -8
  6. package/dist/cjs/{clean-6356e25d.cjs.js → clean-91ae62e6.cjs.js} +2 -2
  7. package/dist/cjs/{clean-1aaa5dcc.cjs.js → clean-9950e487.cjs.js} +2 -2
  8. package/dist/cjs/{codeowners-efe171a9.cjs.js → codeowners-8362998c.cjs.js} +2 -2
  9. package/dist/cjs/{config-290dd5ed.cjs.js → config-55bfc714.cjs.js} +2 -2
  10. package/dist/cjs/{createDistWorkspace-c346fd51.cjs.js → createDistWorkspace-1ba1fe48.cjs.js} +4 -4
  11. package/dist/cjs/{createPlugin-27af5bae.cjs.js → createPlugin-2f17e093.cjs.js} +4 -4
  12. package/dist/cjs/{diff-cd4e9ad8.cjs.js → diff-cac578d9.cjs.js} +2 -2
  13. package/dist/cjs/{docs-9448babf.cjs.js → docs-48000b62.cjs.js} +3 -3
  14. package/dist/cjs/fix-2f2dbbb0.cjs.js +164 -0
  15. package/dist/cjs/{index-09e90df3.cjs.js → index-7e5b10f7.cjs.js} +51 -47
  16. package/dist/cjs/{index-da23605b.cjs.js → index-94a03a2f.cjs.js} +40 -27
  17. package/dist/cjs/{index-975af630.cjs.js → index-a2e2cf2f.cjs.js} +3 -3
  18. package/dist/cjs/{index-b2c81265.cjs.js → index-b0c49033.cjs.js} +2 -2
  19. package/dist/cjs/{index-c387d4d5.cjs.js → index-bbe1f825.cjs.js} +11 -10
  20. package/dist/cjs/{info-0364325b.cjs.js → info-13b7e688.cjs.js} +3 -3
  21. package/dist/cjs/{install-2485aa61.cjs.js → install-48fd5304.cjs.js} +4 -4
  22. package/dist/cjs/{lint-e6cec9b6.cjs.js → lint-0b781ed2.cjs.js} +3 -3
  23. package/dist/cjs/{lint-917790d8.cjs.js → lint-56fc5cb1.cjs.js} +2 -2
  24. package/dist/cjs/{lint-386043e2.cjs.js → lint-8f9213c3.cjs.js} +2 -2
  25. package/dist/cjs/{list-deprecations-f8f78153.cjs.js → list-deprecations-80b0c602.cjs.js} +2 -2
  26. package/dist/cjs/{new-18ecf30e.cjs.js → new-fdce3244.cjs.js} +4 -4
  27. package/dist/cjs/{pack-3f153380.cjs.js → pack-264b3d20.cjs.js} +2 -2
  28. package/dist/cjs/{paths-2025d6cf.cjs.js → packageDetection-016e697b.cjs.js} +86 -4
  29. package/dist/cjs/packageExports-5463bc0b.cjs.js +26 -0
  30. package/dist/cjs/{packageLintConfigs-e3b55179.cjs.js → packageLintConfigs-900ce7db.cjs.js} +3 -3
  31. package/dist/cjs/{packageRole-cae1e697.cjs.js → packageRole-80c1fea2.cjs.js} +2 -2
  32. package/dist/cjs/{packages-d848e293.cjs.js → packages-765a06af.cjs.js} +3 -3
  33. package/dist/cjs/{print-cf6d66c2.cjs.js → print-fefdb61a.cjs.js} +3 -3
  34. package/dist/cjs/{role-60999681.cjs.js → role-fdcbbb6d.cjs.js} +2 -2
  35. package/dist/cjs/{run-6c65eb73.cjs.js → run-45053fbf.cjs.js} +2 -2
  36. package/dist/cjs/{schema-d36cc873.cjs.js → schema-afd42266.cjs.js} +3 -3
  37. package/dist/cjs/{test-6c6867eb.cjs.js → test-67368ae8.cjs.js} +3 -3
  38. package/dist/cjs/{test-50c331d2.cjs.js → test-b4317534.cjs.js} +3 -3
  39. package/dist/cjs/{validate-8b6ad47a.cjs.js → validate-c3642673.cjs.js} +3 -3
  40. package/dist/index.cjs.js +1 -1
  41. package/package.json +21 -20
  42. package/templates/default-common-plugin-package/package.json.hbs +1 -0
  43. package/templates/default-plugin/package.json.hbs +1 -1
  44. package/templates/default-react-plugin-package/package.json.hbs +1 -0
  45. package/templates/web-library-package/package.json.hbs +1 -0
  46. package/dist/cjs/fix-3606e4b3.cjs.js +0 -123
  47. package/dist/cjs/packageExports-50d8546d.cjs.js +0 -93
@@ -53,13 +53,13 @@ class NotFoundError extends CustomError {
53
53
 
54
54
  const paths = cliCommon.findPaths(__dirname);
55
55
 
56
- var version$c = "0.19.5-next.1";
56
+ var version$c = "0.19.5-next.3";
57
57
 
58
- var version$b = "0.6.3-next.1";
58
+ var version$b = "0.6.3-next.3";
59
59
 
60
- var version$a = "0.2.3-next.1";
60
+ var version$a = "0.2.3-next.3";
61
61
 
62
- var version$9 = "0.22.13-next.1";
62
+ var version$9 = "0.22.13-next.3";
63
63
  var dependencies = {
64
64
  "@backstage/catalog-model": "workspace:^",
65
65
  "@backstage/cli-common": "workspace:^",
@@ -72,6 +72,7 @@ var dependencies = {
72
72
  "@backstage/release-manifests": "workspace:^",
73
73
  "@backstage/types": "workspace:^",
74
74
  "@esbuild-kit/cjs-loader": "^2.4.1",
75
+ "@esbuild-kit/esm-loader": "^2.5.5",
75
76
  "@manypkg/get-packages": "^1.1.3",
76
77
  "@octokit/graphql": "^5.0.0",
77
78
  "@octokit/graphql-schema": "^13.7.0",
@@ -153,7 +154,7 @@ var dependencies = {
153
154
  "rollup-plugin-esbuild": "^4.7.2",
154
155
  "rollup-plugin-postcss": "^4.0.0",
155
156
  "rollup-pluginutils": "^2.8.2",
156
- "run-script-webpack-plugin": "^0.1.0",
157
+ "run-script-webpack-plugin": "^0.2.0",
157
158
  semver: "^7.5.3",
158
159
  "style-loader": "^3.3.1",
159
160
  sucrase: "^3.20.2",
@@ -205,21 +206,21 @@ var devDependencies = {
205
206
  "type-fest": "^2.19.0"
206
207
  };
207
208
 
208
- var version$8 = "1.1.0-next.0";
209
+ var version$8 = "1.1.0-next.2";
209
210
 
210
- var version$7 = "1.10.0-next.1";
211
+ var version$7 = "1.10.0-next.3";
211
212
 
212
- var version$6 = "0.13.5-next.1";
213
+ var version$6 = "0.13.5-next.3";
213
214
 
214
- var version$5 = "1.6.0-next.1";
215
+ var version$5 = "1.6.0-next.3";
215
216
 
216
- var version$4 = "1.0.21-next.1";
217
+ var version$4 = "1.0.21-next.3";
217
218
 
218
- var version$3 = "1.4.3-next.1";
219
+ var version$3 = "1.4.3-next.3";
219
220
 
220
- var version$2 = "0.4.1";
221
+ var version$2 = "0.4.2-next.0";
221
222
 
222
- var version$1 = "1.16.6-next.1";
223
+ var version$1 = "1.17.0-next.3";
223
224
 
224
225
  const packageVersions = {
225
226
  "@backstage/backend-common": version$c,
@@ -283,7 +284,7 @@ const configOption = [
283
284
  Array()
284
285
  ];
285
286
  function registerOnboardCommand(program) {
286
- program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-975af630.cjs.js'); }).then((m) => m.command)));
287
+ program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-a2e2cf2f.cjs.js'); }).then((m) => m.command)));
287
288
  }
288
289
  function registerRepoCommand(program) {
289
290
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
@@ -295,7 +296,7 @@ function registerRepoCommand(program) {
295
296
  ).option(
296
297
  "--since <ref>",
297
298
  "Only build packages and their dev dependents that changed since the specified ref"
298
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-76b15a06.cjs.js'); }).then((m) => m.command)));
299
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-78388961.cjs.js'); }).then((m) => m.command)));
299
300
  command.command("lint").description("Lint all packages in the project").option(
300
301
  "--format <format>",
301
302
  "Lint report output format",
@@ -303,10 +304,14 @@ function registerRepoCommand(program) {
303
304
  ).option(
304
305
  "--since <ref>",
305
306
  "Only lint packages that changed since the specified ref"
306
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-386043e2.cjs.js'); }).then((m) => m.command)));
307
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-6356e25d.cjs.js'); }).then((m) => m.command)));
307
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-8f9213c3.cjs.js'); }).then((m) => m.command)));
308
+ command.command("fix").description("Automatically fix packages in the project").option(
309
+ "--check",
310
+ "Fail if any packages would have been changed by the command"
311
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-2f2dbbb0.cjs.js'); }).then((m) => m.command)));
312
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-91ae62e6.cjs.js'); }).then((m) => m.command)));
308
313
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
309
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-f8f78153.cjs.js'); }).then((m) => m.command))
314
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-80b0c602.cjs.js'); }).then((m) => m.command))
310
315
  );
311
316
  command.command("test").allowUnknownOption(true).option(
312
317
  "--since <ref>",
@@ -314,14 +319,14 @@ function registerRepoCommand(program) {
314
319
  ).option(
315
320
  "--jest-help",
316
321
  "Show help for Jest CLI options, which are passed through"
317
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-50c331d2.cjs.js'); }).then((m) => m.command)));
322
+ ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-b4317534.cjs.js'); }).then((m) => m.command)));
318
323
  }
319
324
  function registerScriptCommand(program) {
320
325
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
321
326
  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(
322
327
  "--inspect-brk",
323
328
  "Enable debugger in Node.js environments, breaking before code starts"
324
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-da23605b.cjs.js'); }).then((m) => m.command)));
329
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-94a03a2f.cjs.js'); }).then((m) => m.command)));
325
330
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
326
331
  "--minify",
327
332
  "Minify the generated code. Does not apply to app or backend packages."
@@ -339,31 +344,30 @@ function registerScriptCommand(program) {
339
344
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
340
345
  (opt, opts) => opts ? [...opts, opt] : [opt],
341
346
  Array()
342
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-c387d4d5.cjs.js'); }).then((m) => m.command)));
347
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-bbe1f825.cjs.js'); }).then((m) => m.command)));
343
348
  command.command("lint [directories...]").option(
344
349
  "--format <format>",
345
350
  "Lint report output format",
346
351
  "eslint-formatter-friendly"
347
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-917790d8.cjs.js'); }).then((m) => m.default)));
348
- 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-6c6867eb.cjs.js'); }).then((m) => m.default)));
349
- 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-3606e4b3.cjs.js'); }).then((m) => m.command)));
350
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-1aaa5dcc.cjs.js'); }).then((m) => m.default)));
351
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-3f153380.cjs.js'); }).then((m) => m.pre)));
352
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-3f153380.cjs.js'); }).then((m) => m.post)));
352
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-56fc5cb1.cjs.js'); }).then((m) => m.default)));
353
+ 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-67368ae8.cjs.js'); }).then((m) => m.default)));
354
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-9950e487.cjs.js'); }).then((m) => m.default)));
355
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-264b3d20.cjs.js'); }).then((m) => m.pre)));
356
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-264b3d20.cjs.js'); }).then((m) => m.post)));
353
357
  }
354
358
  function registerMigrateCommand(program) {
355
359
  const command = program.command("migrate [command]").description("Migration utilities");
356
- 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-cae1e697.cjs.js'); }).then((m) => m.default)));
360
+ 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-80c1fea2.cjs.js'); }).then((m) => m.default)));
357
361
  command.command("package-scripts").description("Set package scripts according to each package role").action(
358
362
  lazy(() => Promise.resolve().then(function () { return require('./packageScripts-c6721fac.cjs.js'); }).then((m) => m.command))
359
363
  );
360
364
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
361
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-50d8546d.cjs.js'); }).then((m) => m.command))
365
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-5463bc0b.cjs.js'); }).then((m) => m.command))
362
366
  );
363
367
  command.command("package-lint-configs").description(
364
368
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
365
369
  ).action(
366
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-e3b55179.cjs.js'); }).then((m) => m.command))
370
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-900ce7db.cjs.js'); }).then((m) => m.command))
367
371
  );
368
372
  command.command("react-router-deps").description(
369
373
  "Migrates the react-router dependencies for all packages to be peer dependencies"
@@ -388,7 +392,7 @@ function registerCommands(program) {
388
392
  ).option(
389
393
  "--baseVersion <version>",
390
394
  "The version to use for any new packages (default: 0.1.0)"
391
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-18ecf30e.cjs.js'); }).then((m) => m.default)));
395
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-fdce3244.cjs.js'); }).then((m) => m.default)));
392
396
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
393
397
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
394
398
  ).option(
@@ -402,30 +406,30 @@ function registerCommands(program) {
402
406
  ).option("--scope <scope>", "The scope to use for new packages").option(
403
407
  "--npm-registry <URL>",
404
408
  "The package registry to use for new packages"
405
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-18ecf30e.cjs.js'); }).then((m) => m.default)));
409
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-fdce3244.cjs.js'); }).then((m) => m.default)));
406
410
  program.command("create-plugin", { hidden: true }).option(
407
411
  "--backend",
408
412
  "Create plugin with the backend dependencies as default"
409
413
  ).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(
410
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-27af5bae.cjs.js'); }).then((m) => m.default))
414
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-2f17e093.cjs.js'); }).then((m) => m.default))
411
415
  );
412
416
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
413
417
  "Diff an existing plugin with the creation template [DEPRECATED]"
414
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-cd4e9ad8.cjs.js'); }).then((m) => m.default)));
418
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-cac578d9.cjs.js'); }).then((m) => m.default)));
415
419
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
416
420
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
417
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-6c6867eb.cjs.js'); }).then((m) => m.default)));
421
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-67368ae8.cjs.js'); }).then((m) => m.default)));
418
422
  program.command("config:docs").option(
419
423
  "--package <name>",
420
424
  "Only include the schema that applies to the given package"
421
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-9448babf.cjs.js'); }).then((m) => m.default)));
425
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-48000b62.cjs.js'); }).then((m) => m.default)));
422
426
  program.command("config:print").option(
423
427
  "--package <name>",
424
428
  "Only load config schema that applies to the given package"
425
429
  ).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(
426
430
  "--format <format>",
427
431
  "Format to print the configuration in, either json or yaml [yaml]"
428
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-cf6d66c2.cjs.js'); }).then((m) => m.default)));
432
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-fefdb61a.cjs.js'); }).then((m) => m.default)));
429
433
  program.command("config:check").option(
430
434
  "--package <name>",
431
435
  "Only load config schema that applies to the given package"
@@ -434,14 +438,14 @@ function registerCommands(program) {
434
438
  "Enable strict config validation, forbidding errors and unknown keys"
435
439
  ).option(...configOption).description(
436
440
  "Validate that the given configuration loads and matches schema"
437
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-8b6ad47a.cjs.js'); }).then((m) => m.default)));
441
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-c3642673.cjs.js'); }).then((m) => m.default)));
438
442
  program.command("config:schema").option(
439
443
  "--package <name>",
440
444
  "Only output config schema that applies to the given package"
441
445
  ).option(
442
446
  "--format <format>",
443
447
  "Format to print the schema in, either json or yaml [yaml]"
444
- ).option("--merge", "Print the config schemas merged", true).option("--no-merge", "Print the config schemas not merged").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-d36cc873.cjs.js'); }).then((m) => m.default)));
448
+ ).option("--merge", "Print the config schemas merged", true).option("--no-merge", "Print the config schemas not merged").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-afd42266.cjs.js'); }).then((m) => m.default)));
445
449
  registerRepoCommand(program);
446
450
  registerScriptCommand(program);
447
451
  registerMigrateCommand(program);
@@ -453,19 +457,19 @@ function registerCommands(program) {
453
457
  "--release <version|next|main>",
454
458
  "Bump to a specific Backstage release line or version",
455
459
  "main"
456
- ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-708dac69.cjs.js'); }).then((m) => m.default)));
457
- 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-e6cec9b6.cjs.js'); }).then((m) => m.default)));
458
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-1aaa5dcc.cjs.js'); }).then((m) => m.default)));
460
+ ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-c5d60f43.cjs.js'); }).then((m) => m.default)));
461
+ 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-0b781ed2.cjs.js'); }).then((m) => m.default)));
462
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-9950e487.cjs.js'); }).then((m) => m.default)));
459
463
  program.command("build-workspace <workspace-dir> [packages...]").option(
460
464
  "--alwaysYarnPack",
461
465
  "Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
462
- ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-cedbf031.cjs.js'); }).then((m) => m.default)));
463
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-b2c81265.cjs.js'); }).then((m) => m.default)));
464
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-0364325b.cjs.js'); }).then((m) => m.default)));
466
+ ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-a2607a91.cjs.js'); }).then((m) => m.default)));
467
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-b0c49033.cjs.js'); }).then((m) => m.default)));
468
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-13b7e688.cjs.js'); }).then((m) => m.default)));
465
469
  program.command("install [plugin-id]", { hidden: true }).option(
466
470
  "--from <packageJsonFilePath>",
467
471
  "Install from a local package.json containing the installation recipe"
468
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-2485aa61.cjs.js'); }).then((m) => m.default)));
472
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-48fd5304.cjs.js'); }).then((m) => m.default)));
469
473
  }
470
474
  function lazy(getActionFunc) {
471
475
  return async (...args) => {
@@ -509,4 +513,4 @@ exports.devDependencies = devDependencies;
509
513
  exports.paths = paths;
510
514
  exports.version = version;
511
515
  exports.version$1 = version$9;
512
- //# sourceMappingURL=index-09e90df3.cjs.js.map
516
+ //# sourceMappingURL=index-7e5b10f7.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-09e90df3.cjs.js');
4
+ var index = require('./index-7e5b10f7.cjs.js');
5
5
  var webpack = require('webpack');
6
- var paths = require('./paths-2025d6cf.cjs.js');
6
+ var packageDetection = require('./packageDetection-016e697b.cjs.js');
7
7
  require('yn');
8
8
  var path = require('path');
9
9
  require('react-dev-utils/FileSizeReporter');
@@ -17,31 +17,31 @@ 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-6c65eb73.cjs.js');
20
+ require('./run-45053fbf.cjs.js');
21
21
  require('eslint-webpack-plugin');
22
22
  require('lodash/pickBy');
23
23
  var chalk = require('chalk');
24
- var WebpackDevServer = require('webpack-dev-server');
25
- var openBrowser = require('react-dev-utils/openBrowser');
26
- var uniq = require('lodash/uniq');
27
- require('@backstage/config-loader');
28
- require('@backstage/config');
24
+ var chokidar = require('chokidar');
29
25
  var cliNode = require('@backstage/cli-node');
26
+ var uniq = require('lodash/uniq');
27
+ var openBrowser = require('react-dev-utils/openBrowser');
28
+ var WebpackDevServer = require('webpack-dev-server');
30
29
  require('semver');
31
30
  require('@yarnpkg/parsers');
32
31
  require('@yarnpkg/lockfile');
33
32
  require('minimatch');
34
33
  require('./yarn-6cd89e16.cjs.js');
35
34
  require('lodash/partition');
35
+ require('@backstage/config-loader');
36
+ require('@backstage/config');
36
37
  var url = require('url');
37
- var chokidar = require('chokidar');
38
38
  var errors = require('@backstage/errors');
39
39
  var debounce = require('lodash/debounce');
40
40
  var spawn = require('cross-spawn');
41
- var config = require('./config-290dd5ed.cjs.js');
41
+ var lint = require('./lint-0b781ed2.cjs.js');
42
+ var config = require('./config-55bfc714.cjs.js');
42
43
  var Lockfile = require('./Lockfile-eced6070.cjs.js');
43
- var lint = require('./lint-e6cec9b6.cjs.js');
44
- var role = require('./role-60999681.cjs.js');
44
+ var role = require('./role-fdcbbb6d.cjs.js');
45
45
  require('commander');
46
46
  require('./svgrTemplate-550efce6.cjs.js');
47
47
  require('./entryPoints-0cc55995.cjs.js');
@@ -53,15 +53,15 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
53
53
  var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
54
54
  var webpack__default = /*#__PURE__*/_interopDefaultLegacy(webpack);
55
55
  var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
56
- var WebpackDevServer__default = /*#__PURE__*/_interopDefaultLegacy(WebpackDevServer);
57
- var openBrowser__default = /*#__PURE__*/_interopDefaultLegacy(openBrowser);
58
56
  var uniq__default = /*#__PURE__*/_interopDefaultLegacy(uniq);
57
+ var openBrowser__default = /*#__PURE__*/_interopDefaultLegacy(openBrowser);
58
+ var WebpackDevServer__default = /*#__PURE__*/_interopDefaultLegacy(WebpackDevServer);
59
59
  var debounce__default = /*#__PURE__*/_interopDefaultLegacy(debounce);
60
60
  var spawn__default = /*#__PURE__*/_interopDefaultLegacy(spawn);
61
61
 
62
62
  async function serveBackend(options) {
63
- const paths$1 = paths.resolveBundlingPaths(options);
64
- const config = await paths.createBackendConfig(paths$1, {
63
+ const paths = packageDetection.resolveBundlingPaths(options);
64
+ const config = await packageDetection.createBackendConfig(paths, {
65
65
  ...options,
66
66
  isDev: true
67
67
  });
@@ -86,6 +86,8 @@ async function serveBackend(options) {
86
86
 
87
87
  async function serveBundle(options) {
88
88
  var _a, _b, _c;
89
+ const paths = packageDetection.resolveBundlingPaths(options);
90
+ const targetPkg = await fs__default["default"].readJson(paths.targetPackageJson);
89
91
  if (options.verifyVersions) {
90
92
  const lockfile = await Lockfile.Lockfile.load(
91
93
  index.paths.resolveTargetRoot("yarn.lock")
@@ -148,20 +150,26 @@ async function serveBundle(options) {
148
150
  );
149
151
  }
150
152
  const { frontendConfig, fullConfig } = cliConfig;
151
- const url = paths.resolveBaseUrl(frontendConfig);
153
+ const url = packageDetection.resolveBaseUrl(frontendConfig);
152
154
  const host = frontendConfig.getOptionalString("app.listen.host") || url.hostname;
153
155
  const port = frontendConfig.getOptionalNumber("app.listen.port") || Number(url.port) || (url.protocol === "https:" ? 443 : 80);
154
- const paths$1 = paths.resolveBundlingPaths(options);
155
- const pkgPath = paths$1.targetPackageJson;
156
- const pkg = await fs__default["default"].readJson(pkgPath);
157
- const config$1 = await paths.createConfig(paths$1, {
156
+ const detectedModulesEntryPoint = await packageDetection.createDetectedModulesEntryPoint({
157
+ config: fullConfig,
158
+ targetPath: paths.targetPath,
159
+ watch() {
160
+ server == null ? void 0 : server.invalidate();
161
+ }
162
+ });
163
+ const config$1 = await packageDetection.createConfig(paths, {
164
+ ...options,
158
165
  checksEnabled: options.checksEnabled,
159
166
  isDev: true,
160
167
  baseUrl: url,
161
168
  frontendConfig,
162
169
  getFrontendAppConfigs: () => {
163
170
  return latestFrontendAppConfigs;
164
- }
171
+ },
172
+ additionalEntryPoints: detectedModulesEntryPoint
165
173
  });
166
174
  const compiler = webpack__default["default"](config$1);
167
175
  server = new WebpackDevServer__default["default"](
@@ -171,9 +179,9 @@ async function serveBundle(options) {
171
179
  publicPath: (_a = config$1.output) == null ? void 0 : _a.publicPath,
172
180
  stats: "errors-warnings"
173
181
  },
174
- static: paths$1.targetPublic ? {
182
+ static: paths.targetPublic ? {
175
183
  publicPath: (_b = config$1.output) == null ? void 0 : _b.publicPath,
176
- directory: paths$1.targetPublic
184
+ directory: paths.targetPublic
177
185
  } : void 0,
178
186
  historyApiFallback: {
179
187
  // Paths with dots should still use the history fallback.
@@ -188,7 +196,7 @@ async function serveBundle(options) {
188
196
  } : false,
189
197
  host,
190
198
  port,
191
- proxy: pkg.proxy,
199
+ proxy: targetPkg.proxy,
192
200
  // When the dev server is behind a proxy, the host and public hostname differ
193
201
  allowedHosts: [url.hostname],
194
202
  client: {
@@ -359,7 +367,12 @@ class ServerDataStore {
359
367
  }
360
368
  }
361
369
 
362
- const loaderArgs = ["--require", require.resolve("@esbuild-kit/cjs-loader")];
370
+ const loaderArgs = [
371
+ "--require",
372
+ require.resolve("@esbuild-kit/cjs-loader"),
373
+ "--loader",
374
+ require.resolve("@esbuild-kit/esm-loader")
375
+ ];
363
376
  async function startBackendExperimental(options) {
364
377
  const envEnv = process.env;
365
378
  if (!envEnv.NODE_ENV) {
@@ -516,4 +529,4 @@ async function command(opts) {
516
529
  }
517
530
 
518
531
  exports.command = command;
519
- //# sourceMappingURL=index-da23605b.cjs.js.map
532
+ //# sourceMappingURL=index-94a03a2f.cjs.js.map
@@ -9,7 +9,7 @@ var yaml = require('yaml');
9
9
  var cliCommon = require('@backstage/cli-common');
10
10
  var path = require('path');
11
11
  var differ = require('diff');
12
- var config = require('./config-290dd5ed.cjs.js');
12
+ var config = require('./config-55bfc714.cjs.js');
13
13
  var catalogModel = require('@backstage/catalog-model');
14
14
  var z = require('zod');
15
15
  var integration = require('@backstage/integration');
@@ -24,7 +24,7 @@ require('child_process');
24
24
  require('@backstage/errors');
25
25
  require('@backstage/config-loader');
26
26
  require('@backstage/config');
27
- require('./index-09e90df3.cjs.js');
27
+ require('./index-7e5b10f7.cjs.js');
28
28
  require('commander');
29
29
  require('semver');
30
30
  require('@manypkg/get-packages');
@@ -1208,4 +1208,4 @@ async function command() {
1208
1208
  }
1209
1209
 
1210
1210
  exports.command = command;
1211
- //# sourceMappingURL=index-975af630.cjs.js.map
1211
+ //# sourceMappingURL=index-a2e2cf2f.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-09e90df3.cjs.js');
7
+ var index$1 = require('./index-7e5b10f7.cjs.js');
8
8
  var crypto = require('crypto');
9
9
  var openBrowser = require('react-dev-utils/openBrowser');
10
10
  var request = require('@octokit/request');
@@ -230,4 +230,4 @@ async function verifyGithubOrg(org) {
230
230
  }
231
231
 
232
232
  exports["default"] = index;
233
- //# sourceMappingURL=index-b2c81265.cjs.js.map
233
+ //# sourceMappingURL=index-b0c49033.cjs.js.map
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var createDistWorkspace = require('./createDistWorkspace-c346fd51.cjs.js');
4
- var role = require('./role-60999681.cjs.js');
3
+ var createDistWorkspace = require('./createDistWorkspace-1ba1fe48.cjs.js');
4
+ var role = require('./role-fdcbbb6d.cjs.js');
5
5
  var cliNode = require('@backstage/cli-node');
6
- var index = require('./index-09e90df3.cjs.js');
7
- var buildBackend = require('./buildBackend-283ffbc8.cjs.js');
8
- var config = require('./config-290dd5ed.cjs.js');
6
+ var index = require('./index-7e5b10f7.cjs.js');
7
+ var buildBackend = require('./buildBackend-8736c629.cjs.js');
8
+ var config = require('./config-55bfc714.cjs.js');
9
9
  require('chalk');
10
10
  require('fs-extra');
11
11
  require('path');
12
12
  require('os');
13
13
  require('tar');
14
14
  require('lodash/partition');
15
- require('./run-6c65eb73.cjs.js');
15
+ require('./run-45053fbf.cjs.js');
16
16
  require('child_process');
17
17
  require('util');
18
18
  require('@backstage/errors');
@@ -42,17 +42,18 @@ require('react-dev-utils/ModuleScopePlugin');
42
42
  require('run-script-webpack-plugin');
43
43
  require('webpack-node-externals');
44
44
  require('@manypkg/get-packages');
45
- require('./paths-2025d6cf.cjs.js');
45
+ require('./packageDetection-016e697b.cjs.js');
46
46
  require('mini-css-extract-plugin');
47
47
  require('@pmmmwh/react-refresh-webpack-plugin');
48
48
  require('eslint-webpack-plugin');
49
49
  require('lodash/pickBy');
50
50
  require('yn');
51
+ require('chokidar');
51
52
  require('react-dev-utils/FileSizeReporter');
52
53
  require('react-dev-utils/formatWebpackMessages');
53
- require('webpack-dev-server');
54
- require('react-dev-utils/openBrowser');
55
54
  require('lodash/uniq');
55
+ require('react-dev-utils/openBrowser');
56
+ require('webpack-dev-server');
56
57
  require('@yarnpkg/parsers');
57
58
  require('@yarnpkg/lockfile');
58
59
  require('minimatch');
@@ -101,4 +102,4 @@ async function command(opts) {
101
102
  }
102
103
 
103
104
  exports.command = command;
104
- //# sourceMappingURL=index-c387d4d5.cjs.js.map
105
+ //# sourceMappingURL=index-bbe1f825.cjs.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-09e90df3.cjs.js');
3
+ var index = require('./index-7e5b10f7.cjs.js');
4
4
  var os = require('os');
5
- var run = require('./run-6c65eb73.cjs.js');
5
+ var run = require('./run-45053fbf.cjs.js');
6
6
  var Lockfile = require('./Lockfile-eced6070.cjs.js');
7
7
  require('minimatch');
8
8
  require('@manypkg/get-packages');
@@ -58,4 +58,4 @@ var info = async () => {
58
58
  };
59
59
 
60
60
  exports["default"] = info;
61
- //# sourceMappingURL=info-0364325b.cjs.js.map
61
+ //# sourceMappingURL=info-13b7e688.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-d848e293.cjs.js');
8
- var index = require('./index-09e90df3.cjs.js');
7
+ var packages = require('./packages-765a06af.cjs.js');
8
+ var index = require('./index-7e5b10f7.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-6c65eb73.cjs.js');
12
+ var run = require('./run-45053fbf.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-2485aa61.cjs.js.map
271
+ //# sourceMappingURL=install-48fd5304.cjs.js.map
@@ -5,8 +5,8 @@ require('minimatch');
5
5
  require('@manypkg/get-packages');
6
6
  require('chalk');
7
7
  require('./yarn-6cd89e16.cjs.js');
8
- require('./run-6c65eb73.cjs.js');
9
- var index = require('./index-09e90df3.cjs.js');
8
+ require('./run-45053fbf.cjs.js');
9
+ var index = require('./index-7e5b10f7.cjs.js');
10
10
  var partition = require('lodash/partition');
11
11
  var cliNode = require('@backstage/cli-node');
12
12
  require('fs-extra');
@@ -112,4 +112,4 @@ function logArray(arr, header, each) {
112
112
  exports["default"] = lint;
113
113
  exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
114
114
  exports.includedFilter = includedFilter;
115
- //# sourceMappingURL=lint-e6cec9b6.cjs.js.map
115
+ //# sourceMappingURL=lint-0b781ed2.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-09e90df3.cjs.js');
3
+ var index = require('./index-7e5b10f7.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-917790d8.cjs.js.map
36
+ //# sourceMappingURL=lint-56fc5cb1.cjs.js.map
@@ -3,7 +3,7 @@
3
3
  var chalk = require('chalk');
4
4
  var path = require('path');
5
5
  var cliNode = require('@backstage/cli-node');
6
- var index = require('./index-09e90df3.cjs.js');
6
+ var index = require('./index-7e5b10f7.cjs.js');
7
7
  var parallel = require('./parallel-a8f6219c.cjs.js');
8
8
  require('commander');
9
9
  require('fs-extra');
@@ -88,4 +88,4 @@ async function command(opts) {
88
88
  }
89
89
 
90
90
  exports.command = command;
91
- //# sourceMappingURL=lint-386043e2.cjs.js.map
91
+ //# sourceMappingURL=lint-8f9213c3.cjs.js.map
@@ -4,7 +4,7 @@ var chalk = require('chalk');
4
4
  var eslint = require('eslint');
5
5
  var path = require('path');
6
6
  var cliNode = require('@backstage/cli-node');
7
- var index = require('./index-09e90df3.cjs.js');
7
+ var index = require('./index-7e5b10f7.cjs.js');
8
8
  require('commander');
9
9
  require('fs-extra');
10
10
  require('semver');
@@ -76,4 +76,4 @@ async function command(opts) {
76
76
  }
77
77
 
78
78
  exports.command = command;
79
- //# sourceMappingURL=list-deprecations-f8f78153.cjs.js.map
79
+ //# sourceMappingURL=list-deprecations-80b0c602.cjs.js.map