@backstage/cli 0.25.3-next.2 → 0.26.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 (51) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/bin/backstage-cli +1 -9
  3. package/config/nodeTransform.cjs +45 -0
  4. package/dist/cjs/{build-8382b8d8.cjs.js → build-dd1760ba.cjs.js} +10 -8
  5. package/dist/cjs/{buildBackend-8dad4184.cjs.js → buildBackend-93008edd.cjs.js} +12 -10
  6. package/dist/cjs/{buildWorkspace-65108f13.cjs.js → buildWorkspace-537eb788.cjs.js} +5 -4
  7. package/dist/cjs/{bump-7eb29899.cjs.js → bump-aee0496e.cjs.js} +5 -5
  8. package/dist/cjs/{clean-da51bc11.cjs.js → clean-6ccda488.cjs.js} +2 -2
  9. package/dist/cjs/{clean-5afc7d48.cjs.js → clean-8a505ab4.cjs.js} +2 -2
  10. package/dist/cjs/{codeowners-20b953b3.cjs.js → codeowners-b305c16a.cjs.js} +2 -2
  11. package/dist/cjs/{config-56e0de04.cjs.js → config-9d068fb3.cjs.js} +2 -2
  12. package/dist/cjs/{createDistWorkspace-030a024c.cjs.js → createDistWorkspace-521b8e20.cjs.js} +8 -6
  13. package/dist/cjs/{createPlugin-204e49d9.cjs.js → createPlugin-5b733848.cjs.js} +4 -4
  14. package/dist/cjs/{diff-7d8597da.cjs.js → diff-ffcf1ddd.cjs.js} +2 -2
  15. package/dist/cjs/{docs-f78c80fc.cjs.js → docs-62f456dc.cjs.js} +3 -3
  16. package/dist/cjs/{fix-d22e0b11.cjs.js → fix-c9486e20.cjs.js} +2 -2
  17. package/dist/cjs/{index-09d2153b.cjs.js → index-14d17c46.cjs.js} +11 -9
  18. package/dist/cjs/{index-edd730f9.cjs.js → index-34be8e16.cjs.js} +2 -2
  19. package/dist/cjs/{index-9063098c.cjs.js → index-7a73b7d7.cjs.js} +27 -17
  20. package/dist/cjs/{index-9544d932.cjs.js → index-959685eb.cjs.js} +3 -3
  21. package/dist/cjs/{index-e1de5c59.cjs.js → index-f42e533f.cjs.js} +78 -65
  22. package/dist/cjs/{info-1f294f45.cjs.js → info-ecbe826f.cjs.js} +3 -3
  23. package/dist/cjs/{install-673dc92b.cjs.js → install-27e2fe5d.cjs.js} +4 -4
  24. package/dist/cjs/{lint-8300340a.cjs.js → lint-748f9c9d.cjs.js} +2 -2
  25. package/dist/cjs/{lint-b802a7cd.cjs.js → lint-813542b6.cjs.js} +2 -2
  26. package/dist/cjs/{lint-ba008767.cjs.js → lint-cadb3a1e.cjs.js} +3 -3
  27. package/dist/cjs/{list-deprecations-e2ee5969.cjs.js → list-deprecations-a9347f75.cjs.js} +2 -2
  28. package/dist/cjs/{new-c58b4036.cjs.js → new-7cca705d.cjs.js} +4 -4
  29. package/dist/cjs/{pack-50caa243.cjs.js → pack-7abdf1e1.cjs.js} +2 -2
  30. package/dist/cjs/{packageDetection-4743318d.cjs.js → packageDetection-8d19bd36.cjs.js} +6 -3
  31. package/dist/cjs/{packageExports-a1441001.cjs.js → packageExports-84600a62.cjs.js} +3 -3
  32. package/dist/cjs/{packageLintConfigs-d64c7abd.cjs.js → packageLintConfigs-f1239915.cjs.js} +3 -3
  33. package/dist/cjs/{packageRole-dac636ac.cjs.js → packageRole-b982f1e6.cjs.js} +2 -2
  34. package/dist/cjs/{packages-6d977cf6.cjs.js → packages-9e5204b8.cjs.js} +3 -3
  35. package/dist/cjs/{print-6b92e96e.cjs.js → print-33cb8274.cjs.js} +3 -3
  36. package/dist/cjs/{role-a4d0fea7.cjs.js → role-26dc0550.cjs.js} +2 -2
  37. package/dist/cjs/{run-d7eebc11.cjs.js → run-8f756fce.cjs.js} +2 -2
  38. package/dist/cjs/{schema-4835d534.cjs.js → schema-13e89347.cjs.js} +3 -3
  39. package/dist/cjs/{test-7743a73f.cjs.js → test-52dfdc79.cjs.js} +3 -3
  40. package/dist/cjs/{test-5db6618e.cjs.js → test-7076bd21.cjs.js} +3 -3
  41. package/dist/cjs/{validate-beb5d30e.cjs.js → validate-2e4a0b12.cjs.js} +3 -3
  42. package/dist/index.cjs.js +1 -1
  43. package/package.json +27 -23
  44. package/templates/default-backend-plugin/dev/index.ts +9 -0
  45. package/templates/default-backend-plugin/package.json.hbs +4 -0
  46. package/templates/default-backend-plugin/src/index.ts.hbs +2 -0
  47. package/templates/default-backend-plugin/src/plugin.ts.hbs +32 -0
  48. package/templates/default-backend-plugin/src/service/router.ts +3 -2
  49. package/templates/default-backend-plugin/src/index.ts +0 -1
  50. package/templates/default-backend-plugin/src/run.ts.hbs +0 -17
  51. package/templates/default-backend-plugin/src/service/standaloneServer.ts.hbs +0 -34
@@ -53,13 +53,13 @@ class NotFoundError extends CustomError {
53
53
 
54
54
  const paths = cliCommon.findPaths(__dirname);
55
55
 
56
- var version$c = "0.21.4-next.2";
56
+ var version$f = "0.21.4";
57
57
 
58
- var version$b = "0.6.14-next.2";
58
+ var version$e = "0.6.14";
59
59
 
60
- var version$a = "0.3.4-next.2";
60
+ var version$d = "0.3.4";
61
61
 
62
- var version$9 = "0.25.3-next.2";
62
+ var version$c = "0.26.0";
63
63
  var dependencies = {
64
64
  "@backstage/catalog-model": "workspace:^",
65
65
  "@backstage/cli-common": "workspace:^",
@@ -81,9 +81,9 @@ var dependencies = {
81
81
  "@rollup/plugin-json": "^6.0.0",
82
82
  "@rollup/plugin-node-resolve": "^15.0.0",
83
83
  "@rollup/plugin-yaml": "^4.0.0",
84
- "@spotify/eslint-config-base": "^14.0.0",
85
- "@spotify/eslint-config-react": "^14.0.0",
86
- "@spotify/eslint-config-typescript": "^14.0.0",
84
+ "@spotify/eslint-config-base": "^15.0.0",
85
+ "@spotify/eslint-config-react": "^15.0.0",
86
+ "@spotify/eslint-config-typescript": "^15.0.0",
87
87
  "@sucrase/webpack-loader": "^2.0.0",
88
88
  "@svgr/core": "6.5.x",
89
89
  "@svgr/plugin-jsx": "6.5.x",
@@ -143,7 +143,9 @@ var dependencies = {
143
143
  "node-libs-browser": "^2.2.1",
144
144
  "npm-packlist": "^5.0.0",
145
145
  ora: "^5.3.0",
146
+ "p-limit": "^3.1.0",
146
147
  "p-queue": "^6.6.2",
148
+ pirates: "^4.0.6",
147
149
  postcss: "^8.1.0",
148
150
  process: "^0.11.10",
149
151
  "react-dev-utils": "^12.0.0-next.60",
@@ -161,7 +163,6 @@ var dependencies = {
161
163
  "swc-loader": "^0.2.3",
162
164
  tar: "^6.1.12",
163
165
  "terser-webpack-plugin": "^5.1.3",
164
- tsx: "^4.0.0",
165
166
  util: "^0.12.3",
166
167
  webpack: "^5.70.0",
167
168
  "webpack-dev-server": "^4.7.3",
@@ -198,41 +199,53 @@ var devDependencies = {
198
199
  "@types/tar": "^6.1.1",
199
200
  "@types/terser-webpack-plugin": "^5.0.4",
200
201
  "@types/yarnpkg__lockfile": "^1.1.4",
202
+ "@vitejs/plugin-react": "^4.0.4",
201
203
  del: "^7.0.0",
202
204
  msw: "^1.0.0",
203
205
  nodemon: "^3.0.1",
204
- "ts-node": "^10.0.0"
206
+ vite: "^4.4.9",
207
+ "vite-plugin-html": "^3.2.0",
208
+ "vite-plugin-node-polyfills": "^0.21.0"
205
209
  };
206
210
 
207
- var version$8 = "1.2.0-next.1";
211
+ var version$b = "1.2.0";
208
212
 
209
- var version$7 = "1.12.1-next.1";
213
+ var version$a = "1.12.1";
210
214
 
211
- var version$6 = "0.14.1-next.2";
215
+ var version$9 = "0.14.1";
212
216
 
213
- var version$5 = "1.9.1-next.1";
217
+ var version$8 = "1.9.1";
214
218
 
215
- var version$4 = "1.0.28-next.2";
219
+ var version$7 = "1.0.28";
216
220
 
217
- var version$3 = "1.5.1-next.1";
221
+ var version$6 = "1.5.1";
218
222
 
219
- var version$2 = "0.4.0-next.2";
223
+ var version$5 = "0.4.0";
220
224
 
221
- var version$1 = "0.5.2-next.0";
225
+ var version$4 = "0.22.0";
226
+
227
+ var version$3 = "0.1.0";
228
+
229
+ var version$2 = "0.5.2";
230
+
231
+ var version$1 = "0.2.14";
222
232
 
223
233
  const packageVersions = {
224
- "@backstage/backend-common": version$c,
225
- "@backstage/backend-plugin-api": version$b,
226
- "@backstage/backend-test-utils": version$a,
227
- "@backstage/cli": version$9,
228
- "@backstage/config": version$8,
229
- "@backstage/core-app-api": version$7,
230
- "@backstage/core-components": version$6,
231
- "@backstage/core-plugin-api": version$5,
232
- "@backstage/dev-utils": version$4,
233
- "@backstage/test-utils": version$3,
234
- "@backstage/theme": version$1,
235
- "@backstage/plugin-scaffolder-node": version$2
234
+ "@backstage/backend-common": version$f,
235
+ "@backstage/backend-defaults": version$1,
236
+ "@backstage/backend-plugin-api": version$e,
237
+ "@backstage/backend-test-utils": version$d,
238
+ "@backstage/cli": version$c,
239
+ "@backstage/config": version$b,
240
+ "@backstage/core-app-api": version$a,
241
+ "@backstage/core-components": version$9,
242
+ "@backstage/core-plugin-api": version$8,
243
+ "@backstage/dev-utils": version$7,
244
+ "@backstage/test-utils": version$6,
245
+ "@backstage/theme": version$2,
246
+ "@backstage/plugin-scaffolder-node": version$5,
247
+ "@backstage/plugin-auth-backend": version$4,
248
+ "@backstage/plugin-auth-backend-module-guest-provider": version$3
236
249
  };
237
250
  function findVersion() {
238
251
  const pkgContent = fs__default["default"].readFileSync(paths.resolveOwn("package.json"), "utf8");
@@ -282,7 +295,7 @@ const configOption = [
282
295
  Array()
283
296
  ];
284
297
  function registerOnboardCommand(program) {
285
- program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-9544d932.cjs.js'); }).then((m) => m.command)));
298
+ program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-959685eb.cjs.js'); }).then((m) => m.command)));
286
299
  }
287
300
  function registerRepoCommand(program) {
288
301
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
@@ -294,7 +307,7 @@ function registerRepoCommand(program) {
294
307
  ).option(
295
308
  "--since <ref>",
296
309
  "Only build packages and their dev dependents that changed since the specified ref"
297
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-8382b8d8.cjs.js'); }).then((m) => m.command)));
310
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-dd1760ba.cjs.js'); }).then((m) => m.command)));
298
311
  command.command("lint").description("Lint all packages in the project").option(
299
312
  "--format <format>",
300
313
  "Lint report output format",
@@ -302,14 +315,14 @@ function registerRepoCommand(program) {
302
315
  ).option(
303
316
  "--since <ref>",
304
317
  "Only lint packages that changed since the specified ref"
305
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-8300340a.cjs.js'); }).then((m) => m.command)));
318
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-748f9c9d.cjs.js'); }).then((m) => m.command)));
306
319
  command.command("fix").description("Automatically fix packages in the project").option(
307
320
  "--check",
308
321
  "Fail if any packages would have been changed by the command"
309
- ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-d22e0b11.cjs.js'); }).then((m) => m.command)));
310
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-da51bc11.cjs.js'); }).then((m) => m.command)));
322
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-c9486e20.cjs.js'); }).then((m) => m.command)));
323
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-6ccda488.cjs.js'); }).then((m) => m.command)));
311
324
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
312
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-e2ee5969.cjs.js'); }).then((m) => m.command))
325
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-a9347f75.cjs.js'); }).then((m) => m.command))
313
326
  );
314
327
  command.command("test").allowUnknownOption(true).option(
315
328
  "--since <ref>",
@@ -317,17 +330,17 @@ function registerRepoCommand(program) {
317
330
  ).option(
318
331
  "--jest-help",
319
332
  "Show help for Jest CLI options, which are passed through"
320
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-5db6618e.cjs.js'); }).then((m) => m.command)));
333
+ ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-7076bd21.cjs.js'); }).then((m) => m.command)));
321
334
  }
322
335
  function registerScriptCommand(program) {
323
336
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
324
337
  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(
325
338
  "--inspect-brk [host]",
326
339
  "Enable debugger in Node.js environments, breaking before code starts"
327
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-9063098c.cjs.js'); }).then((m) => m.command)));
340
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-7a73b7d7.cjs.js'); }).then((m) => m.command)));
328
341
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
329
342
  "--minify",
330
- "Minify the generated code. Does not apply to app or backend packages."
343
+ "Minify the generated code. Does not apply to app package (app is minified by default)."
331
344
  ).option(
332
345
  "--skip-build-dependencies",
333
346
  "Skip the automatic building of local dependencies. Applies to backend packages only."
@@ -339,30 +352,30 @@ function registerScriptCommand(program) {
339
352
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
340
353
  (opt, opts) => opts ? [...opts, opt] : [opt],
341
354
  Array()
342
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-09d2153b.cjs.js'); }).then((m) => m.command)));
355
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-14d17c46.cjs.js'); }).then((m) => m.command)));
343
356
  command.command("lint [directories...]").option(
344
357
  "--format <format>",
345
358
  "Lint report output format",
346
359
  "eslint-formatter-friendly"
347
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-b802a7cd.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-7743a73f.cjs.js'); }).then((m) => m.default)));
349
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-5afc7d48.cjs.js'); }).then((m) => m.default)));
350
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-50caa243.cjs.js'); }).then((m) => m.pre)));
351
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-50caa243.cjs.js'); }).then((m) => m.post)));
360
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-813542b6.cjs.js'); }).then((m) => m.default)));
361
+ 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-52dfdc79.cjs.js'); }).then((m) => m.default)));
362
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-8a505ab4.cjs.js'); }).then((m) => m.default)));
363
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-7abdf1e1.cjs.js'); }).then((m) => m.pre)));
364
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-7abdf1e1.cjs.js'); }).then((m) => m.post)));
352
365
  }
353
366
  function registerMigrateCommand(program) {
354
367
  const command = program.command("migrate [command]").description("Migration utilities");
355
- 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-dac636ac.cjs.js'); }).then((m) => m.default)));
368
+ 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-b982f1e6.cjs.js'); }).then((m) => m.default)));
356
369
  command.command("package-scripts").description("Set package scripts according to each package role").action(
357
370
  lazy(() => Promise.resolve().then(function () { return require('./packageScripts-bb7b6de2.cjs.js'); }).then((m) => m.command))
358
371
  );
359
372
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
360
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-a1441001.cjs.js'); }).then((m) => m.command))
373
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-84600a62.cjs.js'); }).then((m) => m.command))
361
374
  );
362
375
  command.command("package-lint-configs").description(
363
376
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
364
377
  ).action(
365
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-d64c7abd.cjs.js'); }).then((m) => m.command))
378
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-f1239915.cjs.js'); }).then((m) => m.command))
366
379
  );
367
380
  command.command("react-router-deps").description(
368
381
  "Migrates the react-router dependencies for all packages to be peer dependencies"
@@ -387,7 +400,7 @@ function registerCommands(program) {
387
400
  ).option(
388
401
  "--baseVersion <version>",
389
402
  "The version to use for any new packages (default: 0.1.0)"
390
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-c58b4036.cjs.js'); }).then((m) => m.default)));
403
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-7cca705d.cjs.js'); }).then((m) => m.default)));
391
404
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
392
405
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
393
406
  ).option(
@@ -401,30 +414,30 @@ function registerCommands(program) {
401
414
  ).option("--scope <scope>", "The scope to use for new packages").option(
402
415
  "--npm-registry <URL>",
403
416
  "The package registry to use for new packages"
404
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-c58b4036.cjs.js'); }).then((m) => m.default)));
417
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-7cca705d.cjs.js'); }).then((m) => m.default)));
405
418
  program.command("create-plugin", { hidden: true }).option(
406
419
  "--backend",
407
420
  "Create plugin with the backend dependencies as default"
408
421
  ).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(
409
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-204e49d9.cjs.js'); }).then((m) => m.default))
422
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-5b733848.cjs.js'); }).then((m) => m.default))
410
423
  );
411
424
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
412
425
  "Diff an existing plugin with the creation template [DEPRECATED]"
413
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-7d8597da.cjs.js'); }).then((m) => m.default)));
426
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-ffcf1ddd.cjs.js'); }).then((m) => m.default)));
414
427
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
415
428
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
416
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-7743a73f.cjs.js'); }).then((m) => m.default)));
429
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-52dfdc79.cjs.js'); }).then((m) => m.default)));
417
430
  program.command("config:docs").option(
418
431
  "--package <name>",
419
432
  "Only include the schema that applies to the given package"
420
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-f78c80fc.cjs.js'); }).then((m) => m.default)));
433
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-62f456dc.cjs.js'); }).then((m) => m.default)));
421
434
  program.command("config:print").option(
422
435
  "--package <name>",
423
436
  "Only load config schema that applies to the given package"
424
437
  ).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(
425
438
  "--format <format>",
426
439
  "Format to print the configuration in, either json or yaml [yaml]"
427
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-6b92e96e.cjs.js'); }).then((m) => m.default)));
440
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-33cb8274.cjs.js'); }).then((m) => m.default)));
428
441
  program.command("config:check").option(
429
442
  "--package <name>",
430
443
  "Only load config schema that applies to the given package"
@@ -433,14 +446,14 @@ function registerCommands(program) {
433
446
  "Enable strict config validation, forbidding errors and unknown keys"
434
447
  ).option(...configOption).description(
435
448
  "Validate that the given configuration loads and matches schema"
436
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-beb5d30e.cjs.js'); }).then((m) => m.default)));
449
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-2e4a0b12.cjs.js'); }).then((m) => m.default)));
437
450
  program.command("config:schema").option(
438
451
  "--package <name>",
439
452
  "Only output config schema that applies to the given package"
440
453
  ).option(
441
454
  "--format <format>",
442
455
  "Format to print the schema in, either json or yaml [yaml]"
443
- ).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-4835d534.cjs.js'); }).then((m) => m.default)));
456
+ ).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-13e89347.cjs.js'); }).then((m) => m.default)));
444
457
  registerRepoCommand(program);
445
458
  registerScriptCommand(program);
446
459
  registerMigrateCommand(program);
@@ -452,19 +465,19 @@ function registerCommands(program) {
452
465
  "--release <version|next|main>",
453
466
  "Bump to a specific Backstage release line or version",
454
467
  "main"
455
- ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-7eb29899.cjs.js'); }).then((m) => m.default)));
456
- 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-ba008767.cjs.js'); }).then((m) => m.default)));
457
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-5afc7d48.cjs.js'); }).then((m) => m.default)));
468
+ ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-aee0496e.cjs.js'); }).then((m) => m.default)));
469
+ 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-cadb3a1e.cjs.js'); }).then((m) => m.default)));
470
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-8a505ab4.cjs.js'); }).then((m) => m.default)));
458
471
  program.command("build-workspace <workspace-dir> [packages...]").option(
459
472
  "--alwaysYarnPack",
460
473
  "Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
461
- ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-65108f13.cjs.js'); }).then((m) => m.default)));
462
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-edd730f9.cjs.js'); }).then((m) => m.default)));
463
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-1f294f45.cjs.js'); }).then((m) => m.default)));
474
+ ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-537eb788.cjs.js'); }).then((m) => m.default)));
475
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-34be8e16.cjs.js'); }).then((m) => m.default)));
476
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-ecbe826f.cjs.js'); }).then((m) => m.default)));
464
477
  program.command("install [plugin-id]", { hidden: true }).option(
465
478
  "--from <packageJsonFilePath>",
466
479
  "Install from a local package.json containing the installation recipe"
467
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-673dc92b.cjs.js'); }).then((m) => m.default)));
480
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-27e2fe5d.cjs.js'); }).then((m) => m.default)));
468
481
  }
469
482
  function lazy(getActionFunc) {
470
483
  return async (...args) => {
@@ -507,5 +520,5 @@ exports.dependencies = dependencies;
507
520
  exports.devDependencies = devDependencies;
508
521
  exports.paths = paths;
509
522
  exports.version = version;
510
- exports.version$1 = version$9;
511
- //# sourceMappingURL=index-e1de5c59.cjs.js.map
523
+ exports.version$1 = version$c;
524
+ //# sourceMappingURL=index-f42e533f.cjs.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-e1de5c59.cjs.js');
3
+ var index = require('./index-f42e533f.cjs.js');
4
4
  var os = require('os');
5
- var run = require('./run-d7eebc11.cjs.js');
5
+ var run = require('./run-8f756fce.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-1f294f45.cjs.js.map
61
+ //# sourceMappingURL=info-ecbe826f.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-6d977cf6.cjs.js');
8
- var index = require('./index-e1de5c59.cjs.js');
7
+ var packages = require('./packages-9e5204b8.cjs.js');
8
+ var index = require('./index-f42e533f.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-d7eebc11.cjs.js');
12
+ var run = require('./run-8f756fce.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-673dc92b.cjs.js.map
271
+ //# sourceMappingURL=install-27e2fe5d.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-e1de5c59.cjs.js');
6
+ var index = require('./index-f42e533f.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-8300340a.cjs.js.map
91
+ //# sourceMappingURL=lint-748f9c9d.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-e1de5c59.cjs.js');
3
+ var index = require('./index-f42e533f.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-b802a7cd.cjs.js.map
36
+ //# sourceMappingURL=lint-813542b6.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-d7eebc11.cjs.js');
9
- var index = require('./index-e1de5c59.cjs.js');
8
+ require('./run-8f756fce.cjs.js');
9
+ var index = require('./index-f42e533f.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-ba008767.cjs.js.map
115
+ //# sourceMappingURL=lint-cadb3a1e.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-e1de5c59.cjs.js');
7
+ var index = require('./index-f42e533f.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-e2ee5969.cjs.js.map
79
+ //# sourceMappingURL=list-deprecations-a9347f75.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-e1de5c59.cjs.js');
11
- var codeowners = require('./codeowners-20b953b3.cjs.js');
10
+ var index = require('./index-f42e533f.cjs.js');
11
+ var codeowners = require('./codeowners-b305c16a.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-d7eebc11.cjs.js');
17
+ require('./run-8f756fce.cjs.js');
18
18
  var partition = require('lodash/partition');
19
19
  var cliNode = require('@backstage/cli-node');
20
20
  var errors = require('@backstage/errors');
@@ -777,4 +777,4 @@ var _new = async (opts) => {
777
777
  };
778
778
 
779
779
  exports["default"] = _new;
780
- //# sourceMappingURL=new-c58b4036.cjs.js.map
780
+ //# sourceMappingURL=new-7cca705d.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-e1de5c59.cjs.js');
4
+ var index = require('./index-f42e533f.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-50caa243.cjs.js.map
24
+ //# sourceMappingURL=pack-7abdf1e1.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-e1de5c59.cjs.js');
11
+ var index = require('./index-f42e533f.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-d7eebc11.cjs.js');
17
+ var run = require('./run-8f756fce.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');
@@ -459,6 +459,9 @@ async function createConfig(paths, options) {
459
459
  )}`
460
460
  } : {}
461
461
  },
462
+ experiments: {
463
+ lazyCompilation: yn__default["default"](process.env.EXPERIMENTAL_LAZY_COMPILATION)
464
+ },
462
465
  plugins,
463
466
  ...withCache ? {
464
467
  cache: {
@@ -741,4 +744,4 @@ exports.hasReactDomClient = hasReactDomClient;
741
744
  exports.resolveBaseUrl = resolveBaseUrl;
742
745
  exports.resolveBundlingPaths = resolveBundlingPaths;
743
746
  exports.resolveOptionalBundlingPaths = resolveOptionalBundlingPaths;
744
- //# sourceMappingURL=packageDetection-4743318d.cjs.js.map
747
+ //# sourceMappingURL=packageDetection-8d19bd36.cjs.js.map
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var fix = require('./fix-d22e0b11.cjs.js');
3
+ var fix = require('./fix-c9486e20.cjs.js');
4
4
  require('@backstage/cli-node');
5
5
  require('fs-extra');
6
6
  require('path');
7
- require('./index-e1de5c59.cjs.js');
7
+ require('./index-f42e533f.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-a1441001.cjs.js.map
26
+ //# sourceMappingURL=packageExports-84600a62.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-d7eebc11.cjs.js');
6
+ var run = require('./run-8f756fce.cjs.js');
7
7
  require('child_process');
8
- require('./index-e1de5c59.cjs.js');
8
+ require('./index-f42e533f.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-d64c7abd.cjs.js.map
82
+ //# sourceMappingURL=packageLintConfigs-f1239915.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-e1de5c59.cjs.js');
7
+ var index = require('./index-f42e533f.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-dac636ac.cjs.js.map
58
+ //# sourceMappingURL=packageRole-b982f1e6.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-e1de5c59.cjs.js');
5
+ var index = require('./index-f42e533f.cjs.js');
6
6
  var yarn = require('./yarn-6cd89e16.cjs.js');
7
- var run = require('./run-d7eebc11.cjs.js');
7
+ var run = require('./run-8f756fce.cjs.js');
8
8
 
9
9
  const DEP_TYPES = [
10
10
  "dependencies",
@@ -76,4 +76,4 @@ async function mapDependencies(targetDir, pattern) {
76
76
 
77
77
  exports.fetchPackageInfo = fetchPackageInfo;
78
78
  exports.mapDependencies = mapDependencies;
79
- //# sourceMappingURL=packages-6d977cf6.cjs.js.map
79
+ //# sourceMappingURL=packages-9e5204b8.cjs.js.map
@@ -2,9 +2,9 @@
2
2
 
3
3
  var yaml = require('yaml');
4
4
  var config$1 = require('@backstage/config');
5
- var config = require('./config-56e0de04.cjs.js');
5
+ var config = require('./config-9d068fb3.cjs.js');
6
6
  require('@backstage/config-loader');
7
- require('./index-e1de5c59.cjs.js');
7
+ require('./index-f42e533f.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('fs-extra');
@@ -58,4 +58,4 @@ function serializeConfigData(appConfigs, schema, visibility) {
58
58
  }
59
59
 
60
60
  exports["default"] = print;
61
- //# sourceMappingURL=print-6b92e96e.cjs.js.map
61
+ //# sourceMappingURL=print-33cb8274.cjs.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var fs = require('fs-extra');
4
- var index = require('./index-e1de5c59.cjs.js');
4
+ var index = require('./index-f42e533f.cjs.js');
5
5
  var cliNode = require('@backstage/cli-node');
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -22,4 +22,4 @@ async function findRoleFromCommand(opts) {
22
22
  }
23
23
 
24
24
  exports.findRoleFromCommand = findRoleFromCommand;
25
- //# sourceMappingURL=role-a4d0fea7.cjs.js.map
25
+ //# sourceMappingURL=role-26dc0550.cjs.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var child_process = require('child_process');
4
- var index = require('./index-e1de5c59.cjs.js');
4
+ var index = require('./index-f42e533f.cjs.js');
5
5
  var util = require('util');
6
6
  var errors = require('@backstage/errors');
7
7
 
@@ -79,4 +79,4 @@ exports.execFile = execFile;
79
79
  exports.run = run;
80
80
  exports.runCheck = runCheck;
81
81
  exports.runPlain = runPlain;
82
- //# sourceMappingURL=run-d7eebc11.cjs.js.map
82
+ //# sourceMappingURL=run-8f756fce.cjs.js.map