@backstage/cli 0.25.1 → 0.25.2-next.0

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 (45) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/{build-9bc2427f.cjs.js → build-bfd4a3bd.cjs.js} +7 -7
  3. package/dist/cjs/{buildBackend-1c2c26f2.cjs.js → buildBackend-46a3a0cb.cjs.js} +47 -14
  4. package/dist/cjs/{buildWorkspace-d64480ab.cjs.js → buildWorkspace-da50d1fe.cjs.js} +4 -4
  5. package/dist/cjs/{bump-2107c4ba.cjs.js → bump-92d0fa1b.cjs.js} +5 -5
  6. package/dist/cjs/{clean-8d5edd0f.cjs.js → clean-207c87d4.cjs.js} +2 -2
  7. package/dist/cjs/{clean-3a445858.cjs.js → clean-f3cf23b0.cjs.js} +2 -2
  8. package/dist/cjs/{codeowners-a75bd392.cjs.js → codeowners-af8fa550.cjs.js} +2 -2
  9. package/dist/cjs/{config-49d4900d.cjs.js → config-f31e89ab.cjs.js} +2 -2
  10. package/dist/cjs/{createDistWorkspace-d32f2b07.cjs.js → createDistWorkspace-e7d0553b.cjs.js} +3 -3
  11. package/dist/cjs/{createPlugin-2aa971e0.cjs.js → createPlugin-dcf9bf0f.cjs.js} +4 -4
  12. package/dist/cjs/{diff-0e622b58.cjs.js → diff-e863f7e0.cjs.js} +2 -2
  13. package/dist/cjs/{docs-641699b2.cjs.js → docs-04032737.cjs.js} +3 -3
  14. package/dist/cjs/{fix-2454d405.cjs.js → fix-b95f78f4.cjs.js} +2 -2
  15. package/dist/cjs/{index-c4b4f85b.cjs.js → index-34c9711f.cjs.js} +8 -8
  16. package/dist/cjs/{index-28e1e685.cjs.js → index-382b09bd.cjs.js} +2 -2
  17. package/dist/cjs/{index-f60e95c6.cjs.js → index-954e39fd.cjs.js} +41 -41
  18. package/dist/cjs/{index-912f8b03.cjs.js → index-b6524933.cjs.js} +3 -3
  19. package/dist/cjs/{index-e728c8be.cjs.js → index-d1a9df44.cjs.js} +30 -10
  20. package/dist/cjs/{info-73d78aaa.cjs.js → info-91bf4b8c.cjs.js} +3 -3
  21. package/dist/cjs/{install-2cf6edfd.cjs.js → install-3f6807aa.cjs.js} +4 -4
  22. package/dist/cjs/{lint-98b1aeb1.cjs.js → lint-5721d95a.cjs.js} +3 -3
  23. package/dist/cjs/{lint-0a6b656f.cjs.js → lint-ada8372d.cjs.js} +2 -2
  24. package/dist/cjs/{lint-71f0aa9f.cjs.js → lint-b00958db.cjs.js} +2 -2
  25. package/dist/cjs/{list-deprecations-f3307aa4.cjs.js → list-deprecations-e5cf0b4b.cjs.js} +2 -2
  26. package/dist/cjs/{new-7c0d6df3.cjs.js → new-d1a0a906.cjs.js} +4 -4
  27. package/dist/cjs/{pack-3f751f83.cjs.js → pack-efd4293b.cjs.js} +2 -2
  28. package/dist/cjs/{packageDetection-7835e3a7.cjs.js → packageDetection-f4659cc8.cjs.js} +18 -6
  29. package/dist/cjs/{packageExports-c26db210.cjs.js → packageExports-14ed2839.cjs.js} +3 -3
  30. package/dist/cjs/{packageLintConfigs-1547364c.cjs.js → packageLintConfigs-060fcadc.cjs.js} +3 -3
  31. package/dist/cjs/{packageRole-ce77a869.cjs.js → packageRole-edeebd1a.cjs.js} +2 -2
  32. package/dist/cjs/{packages-5317f4f0.cjs.js → packages-2e269009.cjs.js} +3 -3
  33. package/dist/cjs/{print-e9782d62.cjs.js → print-c82ee274.cjs.js} +3 -3
  34. package/dist/cjs/{role-fc8e446b.cjs.js → role-52049678.cjs.js} +2 -2
  35. package/dist/cjs/{run-92501f36.cjs.js → run-560577f5.cjs.js} +2 -2
  36. package/dist/cjs/{schema-35c10c90.cjs.js → schema-c8d8c7a7.cjs.js} +3 -3
  37. package/dist/cjs/{test-e1f394b4.cjs.js → test-40a87a31.cjs.js} +3 -3
  38. package/dist/cjs/{test-216e5476.cjs.js → test-4ef8d09d.cjs.js} +3 -3
  39. package/dist/cjs/{validate-df4d28d5.cjs.js → validate-9346b901.cjs.js} +3 -3
  40. package/dist/index.cjs.js +1 -1
  41. package/package.json +8 -8
  42. package/templates/default-backend-module/src/index.ts.hbs +1 -1
  43. package/templates/default-plugin/package.json.hbs +3 -3
  44. package/templates/default-react-plugin-package/package.json.hbs +3 -3
  45. package/templates/web-library-package/package.json.hbs +1 -1
@@ -53,13 +53,13 @@ class NotFoundError extends CustomError {
53
53
 
54
54
  const paths = cliCommon.findPaths(__dirname);
55
55
 
56
- var version$c = "0.20.1";
56
+ var version$c = "0.21.0-next.0";
57
57
 
58
- var version$b = "0.6.9";
58
+ var version$b = "0.6.10-next.0";
59
59
 
60
- var version$a = "0.2.10";
60
+ var version$a = "0.3.0-next.0";
61
61
 
62
- var version$9 = "0.25.1";
62
+ var version$9 = "0.25.2-next.0";
63
63
  var dependencies = {
64
64
  "@backstage/catalog-model": "workspace:^",
65
65
  "@backstage/cli-common": "workspace:^",
@@ -213,11 +213,11 @@ var version$6 = "0.13.10";
213
213
 
214
214
  var version$5 = "1.8.2";
215
215
 
216
- var version$4 = "1.0.26";
216
+ var version$4 = "1.0.27-next.0";
217
217
 
218
- var version$3 = "1.4.7";
218
+ var version$3 = "1.5.0-next.0";
219
219
 
220
- var version$2 = "0.2.10";
220
+ var version$2 = "0.3.0-next.0";
221
221
 
222
222
  var version$1 = "0.5.0";
223
223
 
@@ -283,7 +283,7 @@ const configOption = [
283
283
  Array()
284
284
  ];
285
285
  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-912f8b03.cjs.js'); }).then((m) => m.command)));
286
+ program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-b6524933.cjs.js'); }).then((m) => m.command)));
287
287
  }
288
288
  function registerRepoCommand(program) {
289
289
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
@@ -295,7 +295,7 @@ function registerRepoCommand(program) {
295
295
  ).option(
296
296
  "--since <ref>",
297
297
  "Only build packages and their dev dependents that changed since the specified ref"
298
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-9bc2427f.cjs.js'); }).then((m) => m.command)));
298
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-bfd4a3bd.cjs.js'); }).then((m) => m.command)));
299
299
  command.command("lint").description("Lint all packages in the project").option(
300
300
  "--format <format>",
301
301
  "Lint report output format",
@@ -303,14 +303,14 @@ function registerRepoCommand(program) {
303
303
  ).option(
304
304
  "--since <ref>",
305
305
  "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-71f0aa9f.cjs.js'); }).then((m) => m.command)));
306
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-b00958db.cjs.js'); }).then((m) => m.command)));
307
307
  command.command("fix").description("Automatically fix packages in the project").option(
308
308
  "--check",
309
309
  "Fail if any packages would have been changed by the command"
310
- ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-2454d405.cjs.js'); }).then((m) => m.command)));
311
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-3a445858.cjs.js'); }).then((m) => m.command)));
310
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-b95f78f4.cjs.js'); }).then((m) => m.command)));
311
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-f3cf23b0.cjs.js'); }).then((m) => m.command)));
312
312
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
313
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-f3307aa4.cjs.js'); }).then((m) => m.command))
313
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-e5cf0b4b.cjs.js'); }).then((m) => m.command))
314
314
  );
315
315
  command.command("test").allowUnknownOption(true).option(
316
316
  "--since <ref>",
@@ -318,14 +318,14 @@ function registerRepoCommand(program) {
318
318
  ).option(
319
319
  "--jest-help",
320
320
  "Show help for Jest CLI options, which are passed through"
321
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-216e5476.cjs.js'); }).then((m) => m.command)));
321
+ ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-4ef8d09d.cjs.js'); }).then((m) => m.command)));
322
322
  }
323
323
  function registerScriptCommand(program) {
324
324
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
325
325
  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 [host]", "Enable debugger in Node.js environments").option(
326
326
  "--inspect-brk [host]",
327
327
  "Enable debugger in Node.js environments, breaking before code starts"
328
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-e728c8be.cjs.js'); }).then((m) => m.command)));
328
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-d1a9df44.cjs.js'); }).then((m) => m.command)));
329
329
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
330
330
  "--minify",
331
331
  "Minify the generated code. Does not apply to app or backend packages."
@@ -340,30 +340,30 @@ function registerScriptCommand(program) {
340
340
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
341
341
  (opt, opts) => opts ? [...opts, opt] : [opt],
342
342
  Array()
343
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-c4b4f85b.cjs.js'); }).then((m) => m.command)));
343
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-34c9711f.cjs.js'); }).then((m) => m.command)));
344
344
  command.command("lint [directories...]").option(
345
345
  "--format <format>",
346
346
  "Lint report output format",
347
347
  "eslint-formatter-friendly"
348
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-0a6b656f.cjs.js'); }).then((m) => m.default)));
349
- 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-e1f394b4.cjs.js'); }).then((m) => m.default)));
350
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-8d5edd0f.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-3f751f83.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-3f751f83.cjs.js'); }).then((m) => m.post)));
348
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-ada8372d.cjs.js'); }).then((m) => m.default)));
349
+ 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-40a87a31.cjs.js'); }).then((m) => m.default)));
350
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-207c87d4.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-efd4293b.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-efd4293b.cjs.js'); }).then((m) => m.post)));
353
353
  }
354
354
  function registerMigrateCommand(program) {
355
355
  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-ce77a869.cjs.js'); }).then((m) => m.default)));
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-edeebd1a.cjs.js'); }).then((m) => m.default)));
357
357
  command.command("package-scripts").description("Set package scripts according to each package role").action(
358
358
  lazy(() => Promise.resolve().then(function () { return require('./packageScripts-bb7b6de2.cjs.js'); }).then((m) => m.command))
359
359
  );
360
360
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
361
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-c26db210.cjs.js'); }).then((m) => m.command))
361
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-14ed2839.cjs.js'); }).then((m) => m.command))
362
362
  );
363
363
  command.command("package-lint-configs").description(
364
364
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
365
365
  ).action(
366
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-1547364c.cjs.js'); }).then((m) => m.command))
366
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-060fcadc.cjs.js'); }).then((m) => m.command))
367
367
  );
368
368
  command.command("react-router-deps").description(
369
369
  "Migrates the react-router dependencies for all packages to be peer dependencies"
@@ -388,7 +388,7 @@ function registerCommands(program) {
388
388
  ).option(
389
389
  "--baseVersion <version>",
390
390
  "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-7c0d6df3.cjs.js'); }).then((m) => m.default)));
391
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-d1a0a906.cjs.js'); }).then((m) => m.default)));
392
392
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
393
393
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
394
394
  ).option(
@@ -402,30 +402,30 @@ function registerCommands(program) {
402
402
  ).option("--scope <scope>", "The scope to use for new packages").option(
403
403
  "--npm-registry <URL>",
404
404
  "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-7c0d6df3.cjs.js'); }).then((m) => m.default)));
405
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-d1a0a906.cjs.js'); }).then((m) => m.default)));
406
406
  program.command("create-plugin", { hidden: true }).option(
407
407
  "--backend",
408
408
  "Create plugin with the backend dependencies as default"
409
409
  ).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-2aa971e0.cjs.js'); }).then((m) => m.default))
410
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-dcf9bf0f.cjs.js'); }).then((m) => m.default))
411
411
  );
412
412
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
413
413
  "Diff an existing plugin with the creation template [DEPRECATED]"
414
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-0e622b58.cjs.js'); }).then((m) => m.default)));
414
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-e863f7e0.cjs.js'); }).then((m) => m.default)));
415
415
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
416
416
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
417
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-e1f394b4.cjs.js'); }).then((m) => m.default)));
417
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-40a87a31.cjs.js'); }).then((m) => m.default)));
418
418
  program.command("config:docs").option(
419
419
  "--package <name>",
420
420
  "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-641699b2.cjs.js'); }).then((m) => m.default)));
421
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-04032737.cjs.js'); }).then((m) => m.default)));
422
422
  program.command("config:print").option(
423
423
  "--package <name>",
424
424
  "Only load config schema that applies to the given package"
425
425
  ).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
426
  "--format <format>",
427
427
  "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-e9782d62.cjs.js'); }).then((m) => m.default)));
428
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-c82ee274.cjs.js'); }).then((m) => m.default)));
429
429
  program.command("config:check").option(
430
430
  "--package <name>",
431
431
  "Only load config schema that applies to the given package"
@@ -434,14 +434,14 @@ function registerCommands(program) {
434
434
  "Enable strict config validation, forbidding errors and unknown keys"
435
435
  ).option(...configOption).description(
436
436
  "Validate that the given configuration loads and matches schema"
437
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-df4d28d5.cjs.js'); }).then((m) => m.default)));
437
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-9346b901.cjs.js'); }).then((m) => m.default)));
438
438
  program.command("config:schema").option(
439
439
  "--package <name>",
440
440
  "Only output config schema that applies to the given package"
441
441
  ).option(
442
442
  "--format <format>",
443
443
  "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-35c10c90.cjs.js'); }).then((m) => m.default)));
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-c8d8c7a7.cjs.js'); }).then((m) => m.default)));
445
445
  registerRepoCommand(program);
446
446
  registerScriptCommand(program);
447
447
  registerMigrateCommand(program);
@@ -453,19 +453,19 @@ function registerCommands(program) {
453
453
  "--release <version|next|main>",
454
454
  "Bump to a specific Backstage release line or version",
455
455
  "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-2107c4ba.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-98b1aeb1.cjs.js'); }).then((m) => m.default)));
458
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-8d5edd0f.cjs.js'); }).then((m) => m.default)));
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-92d0fa1b.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-5721d95a.cjs.js'); }).then((m) => m.default)));
458
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-207c87d4.cjs.js'); }).then((m) => m.default)));
459
459
  program.command("build-workspace <workspace-dir> [packages...]").option(
460
460
  "--alwaysYarnPack",
461
461
  "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-d64480ab.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-28e1e685.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-73d78aaa.cjs.js'); }).then((m) => m.default)));
462
+ ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-da50d1fe.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-382b09bd.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-91bf4b8c.cjs.js'); }).then((m) => m.default)));
465
465
  program.command("install [plugin-id]", { hidden: true }).option(
466
466
  "--from <packageJsonFilePath>",
467
467
  "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-2cf6edfd.cjs.js'); }).then((m) => m.default)));
468
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-3f6807aa.cjs.js'); }).then((m) => m.default)));
469
469
  }
470
470
  function lazy(getActionFunc) {
471
471
  return async (...args) => {
@@ -509,4 +509,4 @@ exports.devDependencies = devDependencies;
509
509
  exports.paths = paths;
510
510
  exports.version = version;
511
511
  exports.version$1 = version$9;
512
- //# sourceMappingURL=index-f60e95c6.cjs.js.map
512
+ //# sourceMappingURL=index-954e39fd.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-49d4900d.cjs.js');
12
+ var config = require('./config-f31e89ab.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-f60e95c6.cjs.js');
27
+ require('./index-954e39fd.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-912f8b03.cjs.js.map
1211
+ //# sourceMappingURL=index-b6524933.cjs.js.map
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var role = require('./role-fc8e446b.cjs.js');
3
+ var role = require('./role-52049678.cjs.js');
4
4
  var fs = require('fs-extra');
5
- var index = require('./index-f60e95c6.cjs.js');
5
+ var index = require('./index-954e39fd.cjs.js');
6
6
  var webpack = require('webpack');
7
- var packageDetection = require('./packageDetection-7835e3a7.cjs.js');
7
+ var packageDetection = require('./packageDetection-f4659cc8.cjs.js');
8
8
  require('yn');
9
9
  var path = require('path');
10
10
  require('react-dev-utils/FileSizeReporter');
@@ -18,7 +18,7 @@ require('run-script-webpack-plugin');
18
18
  require('@manypkg/get-packages');
19
19
  require('webpack-node-externals');
20
20
  require('lodash/pickBy');
21
- require('./run-92501f36.cjs.js');
21
+ require('./run-560577f5.cjs.js');
22
22
  require('mini-css-extract-plugin');
23
23
  require('@pmmmwh/react-refresh-webpack-plugin');
24
24
  var chalk = require('chalk');
@@ -40,8 +40,8 @@ var errors = require('@backstage/errors');
40
40
  var debounce = require('lodash/debounce');
41
41
  var url = require('url');
42
42
  var spawn = require('cross-spawn');
43
- var lint = require('./lint-98b1aeb1.cjs.js');
44
- var config = require('./config-49d4900d.cjs.js');
43
+ var lint = require('./lint-5721d95a.cjs.js');
44
+ var config = require('./config-f31e89ab.cjs.js');
45
45
  var Lockfile = require('./Lockfile-eced6070.cjs.js');
46
46
  require('commander');
47
47
  require('./entryPoints-0cc55995.cjs.js');
@@ -191,7 +191,7 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
191
191
  viteServer == null ? void 0 : viteServer.restart();
192
192
  }
193
193
  });
194
- const config$1 = await packageDetection.createConfig(paths, {
194
+ const commonConfigOptions = {
195
195
  ...options,
196
196
  checksEnabled: options.checksEnabled,
197
197
  isDev: true,
@@ -199,7 +199,10 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
199
199
  frontendConfig,
200
200
  getFrontendAppConfigs: () => {
201
201
  return latestFrontendAppConfigs;
202
- },
202
+ }
203
+ };
204
+ const config$1 = await packageDetection.createConfig(paths, {
205
+ ...commonConfigOptions,
203
206
  additionalEntryPoints: detectedModulesEntryPoint
204
207
  });
205
208
  if (process.env.EXPERIMENTAL_VITE) {
@@ -240,7 +243,24 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
240
243
  root: paths.targetPath
241
244
  });
242
245
  } else {
243
- const compiler = webpack__default["default"](config$1);
246
+ const publicPaths = await packageDetection.resolveOptionalBundlingPaths({
247
+ entry: "src/index-public-experimental",
248
+ dist: "dist/public"
249
+ });
250
+ if (publicPaths) {
251
+ console.log(
252
+ chalk__default["default"].yellow(
253
+ `\u26A0\uFE0F WARNING: The app /public entry point is an experimental feature that may receive immediate breaking changes.`
254
+ )
255
+ );
256
+ }
257
+ const compiler = publicPaths ? webpack__default["default"]([
258
+ config$1,
259
+ await packageDetection.createConfig(publicPaths, {
260
+ ...commonConfigOptions,
261
+ publicSubPath: "/public"
262
+ })
263
+ ]) : webpack__default["default"](config$1);
244
264
  webpackServer = new WebpackDevServer__default["default"](
245
265
  {
246
266
  hot: !process.env.CI,
@@ -646,4 +666,4 @@ async function command(opts) {
646
666
  }
647
667
 
648
668
  exports.command = command;
649
- //# sourceMappingURL=index-e728c8be.cjs.js.map
669
+ //# sourceMappingURL=index-d1a9df44.cjs.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-f60e95c6.cjs.js');
3
+ var index = require('./index-954e39fd.cjs.js');
4
4
  var os = require('os');
5
- var run = require('./run-92501f36.cjs.js');
5
+ var run = require('./run-560577f5.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-73d78aaa.cjs.js.map
61
+ //# sourceMappingURL=info-91bf4b8c.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-5317f4f0.cjs.js');
8
- var index = require('./index-f60e95c6.cjs.js');
7
+ var packages = require('./packages-2e269009.cjs.js');
8
+ var index = require('./index-954e39fd.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-92501f36.cjs.js');
12
+ var run = require('./run-560577f5.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-2cf6edfd.cjs.js.map
271
+ //# sourceMappingURL=install-3f6807aa.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-92501f36.cjs.js');
9
- var index = require('./index-f60e95c6.cjs.js');
8
+ require('./run-560577f5.cjs.js');
9
+ var index = require('./index-954e39fd.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-98b1aeb1.cjs.js.map
115
+ //# sourceMappingURL=lint-5721d95a.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-f60e95c6.cjs.js');
3
+ var index = require('./index-954e39fd.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-0a6b656f.cjs.js.map
36
+ //# sourceMappingURL=lint-ada8372d.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-f60e95c6.cjs.js');
6
+ var index = require('./index-954e39fd.cjs.js');
7
7
  var parallel = require('./parallel-2d9d247e.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-71f0aa9f.cjs.js.map
91
+ //# sourceMappingURL=lint-b00958db.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-f60e95c6.cjs.js');
7
+ var index = require('./index-954e39fd.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-f3307aa4.cjs.js.map
79
+ //# sourceMappingURL=list-deprecations-e5cf0b4b.cjs.js.map
@@ -7,14 +7,14 @@ var chalk = require('chalk');
7
7
  var inquirer = require('inquirer');
8
8
  var camelCase = require('lodash/camelCase');
9
9
  var upperFirst = require('lodash/upperFirst');
10
- var index = require('./index-f60e95c6.cjs.js');
11
- var codeowners = require('./codeowners-a75bd392.cjs.js');
10
+ var index = require('./index-954e39fd.cjs.js');
11
+ var codeowners = require('./codeowners-af8fa550.cjs.js');
12
12
  var tasks = require('./tasks-84de240c.cjs.js');
13
13
  var Lockfile = require('./Lockfile-eced6070.cjs.js');
14
14
  require('minimatch');
15
15
  require('@manypkg/get-packages');
16
16
  require('./yarn-6cd89e16.cjs.js');
17
- require('./run-92501f36.cjs.js');
17
+ require('./run-560577f5.cjs.js');
18
18
  var partition = require('lodash/partition');
19
19
  var cliNode = require('@backstage/cli-node');
20
20
  var errors = require('@backstage/errors');
@@ -736,4 +736,4 @@ var _new = async (opts) => {
736
736
  };
737
737
 
738
738
  exports["default"] = _new;
739
- //# sourceMappingURL=new-7c0d6df3.cjs.js.map
739
+ //# sourceMappingURL=new-d1a0a906.cjs.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var productionPack = require('./productionPack-8b9ac9b7.cjs.js');
4
- var index = require('./index-f60e95c6.cjs.js');
4
+ var index = require('./index-954e39fd.cjs.js');
5
5
  require('fs-extra');
6
6
  require('npm-packlist');
7
7
  require('path');
@@ -21,4 +21,4 @@ const post = async () => {
21
21
 
22
22
  exports.post = post;
23
23
  exports.pre = pre;
24
- //# sourceMappingURL=pack-3f751f83.cjs.js.map
24
+ //# sourceMappingURL=pack-efd4293b.cjs.js.map
@@ -8,13 +8,13 @@ var HtmlWebpackPlugin = require('html-webpack-plugin');
8
8
  var cliCommon = require('@backstage/cli-common');
9
9
  var ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
10
10
  var runScriptWebpackPlugin = require('run-script-webpack-plugin');
11
- var index = require('./index-f60e95c6.cjs.js');
11
+ var index = require('./index-954e39fd.cjs.js');
12
12
  var fs = require('fs-extra');
13
13
  var getPackages = require('@manypkg/get-packages');
14
14
  var nodeExternals = require('webpack-node-externals');
15
15
  var pickBy = require('lodash/pickBy');
16
16
  var entryPoints = require('./entryPoints-0cc55995.cjs.js');
17
- var run = require('./run-92501f36.cjs.js');
17
+ var run = require('./run-560577f5.cjs.js');
18
18
  var MiniCssExtractPlugin = require('mini-css-extract-plugin');
19
19
  var svgrTemplate = require('./svgrTemplate-3549ea1c.cjs.js');
20
20
  var ReactRefreshPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
@@ -346,13 +346,16 @@ async function readBuildInfo() {
346
346
  }
347
347
  async function createConfig(paths, options) {
348
348
  var _a;
349
- const { checksEnabled, isDev, frontendConfig } = options;
349
+ const { checksEnabled, isDev, frontendConfig, publicSubPath = "" } = options;
350
350
  const { plugins, loaders } = transforms(options);
351
351
  const { packages } = await getPackages.getPackages(index.paths.targetDir);
352
352
  const externalPkgs = packages.filter((p) => !cliCommon.isChildPath(paths.root, p.dir));
353
353
  const baseUrl = frontendConfig.getString("app.baseUrl");
354
354
  const validBaseUrl = new URL(baseUrl);
355
- const publicPath = validBaseUrl.pathname.replace(/\/$/, "");
355
+ let publicPath = validBaseUrl.pathname.replace(/\/$/, "");
356
+ if (publicSubPath) {
357
+ publicPath = `${publicPath}${publicSubPath}`.replace("//", "/");
358
+ }
356
359
  if (checksEnabled) {
357
360
  plugins.push(
358
361
  new ForkTsCheckerWebpackPlugin__default["default"]({
@@ -580,6 +583,7 @@ function nodeExternalsWithResolve(options) {
580
583
  }
581
584
 
582
585
  function resolveBundlingPaths(options) {
586
+ var _a;
583
587
  const { entry, targetDir = index.paths.targetDir } = options;
584
588
  const resolveTargetModule = (pathString) => {
585
589
  for (const ext of ["mjs", "js", "ts", "tsx", "jsx"]) {
@@ -607,7 +611,7 @@ function resolveBundlingPaths(options) {
607
611
  targetPublic,
608
612
  targetPath: path.resolve(targetDir, "."),
609
613
  targetRunFile: runFileExists ? targetRunFile : void 0,
610
- targetDist: path.resolve(targetDir, "dist"),
614
+ targetDist: path.resolve(targetDir, (_a = options.dist) != null ? _a : "dist"),
611
615
  targetAssets: path.resolve(targetDir, "assets"),
612
616
  targetSrc: path.resolve(targetDir, "src"),
613
617
  targetDev: path.resolve(targetDir, "dev"),
@@ -618,6 +622,13 @@ function resolveBundlingPaths(options) {
618
622
  root: index.paths.targetRoot
619
623
  };
620
624
  }
625
+ async function resolveOptionalBundlingPaths(options) {
626
+ const resolvedPaths = resolveBundlingPaths(options);
627
+ if (await fs__default["default"].pathExists(resolvedPaths.targetEntry)) {
628
+ return resolvedPaths;
629
+ }
630
+ return void 0;
631
+ }
621
632
 
622
633
  const DETECTED_MODULES_MODULE_NAME = "__backstage-autodetected-plugins__";
623
634
  function readPackageDetectionConfig(config$1) {
@@ -724,4 +735,5 @@ exports.createDetectedModulesEntryPoint = createDetectedModulesEntryPoint;
724
735
  exports.hasReactDomClient = hasReactDomClient;
725
736
  exports.resolveBaseUrl = resolveBaseUrl;
726
737
  exports.resolveBundlingPaths = resolveBundlingPaths;
727
- //# sourceMappingURL=packageDetection-7835e3a7.cjs.js.map
738
+ exports.resolveOptionalBundlingPaths = resolveOptionalBundlingPaths;
739
+ //# sourceMappingURL=packageDetection-f4659cc8.cjs.js.map
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var fix = require('./fix-2454d405.cjs.js');
3
+ var fix = require('./fix-b95f78f4.cjs.js');
4
4
  require('@backstage/cli-node');
5
5
  require('fs-extra');
6
6
  require('path');
7
- require('./index-f60e95c6.cjs.js');
7
+ require('./index-954e39fd.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('semver');
@@ -23,4 +23,4 @@ async function command() {
23
23
  }
24
24
 
25
25
  exports.command = command;
26
- //# sourceMappingURL=packageExports-c26db210.cjs.js.map
26
+ //# sourceMappingURL=packageExports-14ed2839.cjs.js.map
@@ -3,9 +3,9 @@
3
3
  var fs = require('fs-extra');
4
4
  var path = require('path');
5
5
  var cliNode = require('@backstage/cli-node');
6
- var run = require('./run-92501f36.cjs.js');
6
+ var run = require('./run-560577f5.cjs.js');
7
7
  require('child_process');
8
- require('./index-f60e95c6.cjs.js');
8
+ require('./index-954e39fd.cjs.js');
9
9
  require('commander');
10
10
  require('chalk');
11
11
  require('semver');
@@ -79,4 +79,4 @@ async function command() {
79
79
  }
80
80
 
81
81
  exports.command = command;
82
- //# sourceMappingURL=packageLintConfigs-1547364c.cjs.js.map
82
+ //# sourceMappingURL=packageLintConfigs-060fcadc.cjs.js.map
@@ -4,7 +4,7 @@ var fs = require('fs-extra');
4
4
  var path = require('path');
5
5
  var getPackages = require('@manypkg/get-packages');
6
6
  var cliNode = require('@backstage/cli-node');
7
- var index = require('./index-f60e95c6.cjs.js');
7
+ var index = require('./index-954e39fd.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('semver');
@@ -55,4 +55,4 @@ var packageRole = async () => {
55
55
  };
56
56
 
57
57
  exports["default"] = packageRole;
58
- //# sourceMappingURL=packageRole-ce77a869.cjs.js.map
58
+ //# sourceMappingURL=packageRole-edeebd1a.cjs.js.map
@@ -2,9 +2,9 @@
2
2
 
3
3
  var minimatch = require('minimatch');
4
4
  var getPackages = require('@manypkg/get-packages');
5
- var index = require('./index-f60e95c6.cjs.js');
5
+ var index = require('./index-954e39fd.cjs.js');
6
6
  var yarn = require('./yarn-6cd89e16.cjs.js');
7
- var run = require('./run-92501f36.cjs.js');
7
+ var run = require('./run-560577f5.cjs.js');
8
8
 
9
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
10
 
@@ -80,4 +80,4 @@ async function mapDependencies(targetDir, pattern) {
80
80
 
81
81
  exports.fetchPackageInfo = fetchPackageInfo;
82
82
  exports.mapDependencies = mapDependencies;
83
- //# sourceMappingURL=packages-5317f4f0.cjs.js.map
83
+ //# sourceMappingURL=packages-2e269009.cjs.js.map