@backstage/cli 0.22.4-next.0 → 0.22.4

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 (67) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +1 -1
  3. package/dist/cjs/index/{PackageGraph-583328aa.cjs.js → PackageGraph-6ffddac0.cjs.js} +3 -3
  4. package/dist/cjs/index/{build-eb378232.cjs.js → build-690455c7.cjs.js} +11 -10
  5. package/dist/cjs/index/{buildBackend-3ff6a1aa.cjs.js → buildBackend-18a71bf8.cjs.js} +6 -6
  6. package/dist/cjs/index/{buildWorkspace-7f9d23b6.cjs.js → buildWorkspace-73cc4f62.cjs.js} +9 -8
  7. package/dist/cjs/index/{bump-ee1d7a65.cjs.js → bump-908de0a7.cjs.js} +6 -6
  8. package/dist/cjs/index/{clean-c050d998.cjs.js → clean-bcaa2bce.cjs.js} +4 -4
  9. package/dist/cjs/index/{clean-31a1f618.cjs.js → clean-dbaf1912.cjs.js} +2 -2
  10. package/dist/cjs/index/{config-37cf3eff.cjs.js → config-91c020e8.cjs.js} +3 -3
  11. package/dist/cjs/index/{createDistWorkspace-cd594c0f.cjs.js → createDistWorkspace-7a2e4e7c.cjs.js} +9 -8
  12. package/dist/cjs/index/{createPlugin-a2904ac4.cjs.js → createPlugin-1f3076dd.cjs.js} +4 -4
  13. package/dist/cjs/index/{diff-7484f58b.cjs.js → diff-1b811a3f.cjs.js} +2 -2
  14. package/dist/cjs/index/{docs-3dc75573.cjs.js → docs-b4ed46bc.cjs.js} +5 -5
  15. package/dist/cjs/index/entryPoints-e81a0dba.cjs.js +44 -0
  16. package/dist/cjs/index/{fix-049fbfc9.cjs.js → fix-32f89b30.cjs.js} +4 -4
  17. package/dist/cjs/index/{index-49993236.cjs.js → index-0e97de8a.cjs.js} +2 -2
  18. package/dist/cjs/index/{index-70b5e9f0.cjs.js → index-1490ba2b.cjs.js} +9 -8
  19. package/dist/cjs/index/{index-fc99613b.cjs.js → index-701ec917.cjs.js} +47 -47
  20. package/dist/cjs/index/{index-56f89375.cjs.js → index-bf0fa947.cjs.js} +12 -11
  21. package/dist/cjs/index/{info-5ceccf59.cjs.js → info-87cec93d.cjs.js} +3 -3
  22. package/dist/cjs/index/{install-69068763.cjs.js → install-470924e3.cjs.js} +4 -4
  23. package/dist/cjs/index/{lint-6ffcd019.cjs.js → lint-98d3c2e6.cjs.js} +4 -4
  24. package/dist/cjs/index/{lint-af391261.cjs.js → lint-b441473e.cjs.js} +4 -4
  25. package/dist/cjs/index/{lint-4c20bc10.cjs.js → lint-f1c44a12.cjs.js} +2 -2
  26. package/dist/cjs/index/{list-deprecations-d474804f.cjs.js → list-deprecations-3667c4a5.cjs.js} +4 -4
  27. package/dist/cjs/index/{new-0aa80b7a.cjs.js → new-8809aa5e.cjs.js} +78 -4
  28. package/dist/cjs/index/{pack-06a08024.cjs.js → pack-1a98c41d.cjs.js} +4 -3
  29. package/dist/cjs/index/{packageExports-ddd7a9dd.cjs.js → packageExports-6ec50196.cjs.js} +4 -4
  30. package/dist/cjs/index/{packageLintConfigs-3be64192.cjs.js → packageLintConfigs-2940d9d4.cjs.js} +4 -4
  31. package/dist/cjs/index/{packageRole-1c4efbb6.cjs.js → packageRole-0b957d76.cjs.js} +3 -3
  32. package/dist/cjs/index/{packageRoles-2d5ba047.cjs.js → packageRoles-9bc5d41a.cjs.js} +2 -2
  33. package/dist/cjs/index/{packageScripts-0c36bb2f.cjs.js → packageScripts-a21a7d39.cjs.js} +5 -5
  34. package/dist/cjs/index/{packages-ad97f7b8.cjs.js → packages-5184c06b.cjs.js} +3 -3
  35. package/dist/cjs/index/{paths-cbef9084.cjs.js → paths-e450a0ff.cjs.js} +11 -7
  36. package/dist/cjs/index/{print-453dcd69.cjs.js → print-14e7144f.cjs.js} +5 -5
  37. package/dist/cjs/index/{productionPack-2d16db59.cjs.js → productionPack-2038bfcf.cjs.js} +7 -44
  38. package/dist/cjs/index/{reactRouterDeps-a4c295bd.cjs.js → reactRouterDeps-7b459c9c.cjs.js} +5 -5
  39. package/dist/cjs/index/{run-d843bae0.cjs.js → run-8a335c20.cjs.js} +2 -2
  40. package/dist/cjs/index/{schema-4c760ac7.cjs.js → schema-2462c29a.cjs.js} +5 -5
  41. package/dist/cjs/index/{tasks-989067ef.cjs.js → tasks-7a221be0.cjs.js} +2 -2
  42. package/dist/cjs/index/{test-0ba8dd19.cjs.js → test-1fada493.cjs.js} +4 -4
  43. package/dist/cjs/index/{test-406b3cba.cjs.js → test-5f854226.cjs.js} +3 -3
  44. package/dist/cjs/index/{validate-ab69bd87.cjs.js → validate-8b9a3ee1.cjs.js} +5 -5
  45. package/dist/index.cjs.js +1 -1
  46. package/package.json +17 -17
  47. package/templates/default-backend-plugin/package.json.hbs +1 -1
  48. package/templates/default-node-plugin-package/.eslintrc.js +1 -0
  49. package/templates/default-node-plugin-package/README.md.hbs +5 -0
  50. package/templates/default-node-plugin-package/package.json.hbs +36 -0
  51. package/templates/default-node-plugin-package/src/index.ts.hbs +18 -0
  52. package/templates/default-node-plugin-package/src/setupTests.ts +1 -0
  53. package/templates/default-node-plugin-package/tsconfig.json +9 -0
  54. package/templates/default-plugin/package.json.hbs +1 -1
  55. package/templates/default-react-plugin-package/.eslintrc.js +1 -0
  56. package/templates/default-react-plugin-package/README.md.hbs +5 -0
  57. package/templates/default-react-plugin-package/package.json.hbs +47 -0
  58. package/templates/default-react-plugin-package/src/components/ExampleComponent/ExampleComponent.test.tsx +18 -0
  59. package/templates/default-react-plugin-package/src/components/ExampleComponent/ExampleComponent.tsx +29 -0
  60. package/templates/default-react-plugin-package/src/components/ExampleComponent/index.ts +2 -0
  61. package/templates/default-react-plugin-package/src/components/index.ts +5 -0
  62. package/templates/default-react-plugin-package/src/hooks/index.ts +5 -0
  63. package/templates/default-react-plugin-package/src/hooks/useExample/index.ts +1 -0
  64. package/templates/default-react-plugin-package/src/hooks/useExample/useExample.ts +15 -0
  65. package/templates/default-react-plugin-package/src/index.ts.hbs +12 -0
  66. package/templates/default-react-plugin-package/src/setupTests.ts +1 -0
  67. package/templates/default-react-plugin-package/tsconfig.json +11 -0
@@ -46,9 +46,9 @@ class NotFoundError extends CustomError {
46
46
 
47
47
  const paths = cliCommon.findPaths(__dirname);
48
48
 
49
- var version$a = "0.18.3-next.0";
49
+ var version$a = "0.18.3";
50
50
 
51
- var version$9 = "0.22.4-next.0";
51
+ var version$9 = "0.22.4";
52
52
  var dependencies = {
53
53
  "@backstage/cli-common": "workspace:^",
54
54
  "@backstage/config": "workspace:^",
@@ -175,28 +175,28 @@ var devDependencies = {
175
175
  "@types/tar": "^6.1.1",
176
176
  "@types/terser-webpack-plugin": "^5.0.4",
177
177
  "@types/yarnpkg__lockfile": "^1.1.4",
178
- del: "^6.0.0",
178
+ del: "^7.0.0",
179
179
  "mock-fs": "^5.1.0",
180
- msw: "^0.49.0",
180
+ msw: "^1.0.0",
181
181
  nodemon: "^2.0.2",
182
182
  "ts-node": "^10.0.0"
183
183
  };
184
184
 
185
- var version$8 = "1.0.6";
185
+ var version$8 = "1.0.7";
186
186
 
187
- var version$7 = "1.5.1-next.0";
187
+ var version$7 = "1.6.0";
188
188
 
189
- var version$6 = "0.12.5-next.0";
189
+ var version$6 = "0.12.5";
190
190
 
191
- var version$5 = "1.4.1-next.0";
191
+ var version$5 = "1.5.0";
192
192
 
193
- var version$4 = "1.0.13-next.0";
193
+ var version$4 = "1.0.13";
194
194
 
195
- var version$3 = "1.2.6-next.0";
195
+ var version$3 = "1.2.6";
196
196
 
197
- var version$2 = "0.2.17";
197
+ var version$2 = "0.2.18";
198
198
 
199
- var version$1 = "1.11.1-next.0";
199
+ var version$1 = "1.12.0";
200
200
 
201
201
  const packageVersions = {
202
202
  "@backstage/backend-common": version$a,
@@ -267,7 +267,7 @@ function registerRepoCommand(program) {
267
267
  ).option(
268
268
  "--since <ref>",
269
269
  "Only build packages and their dev dependents that changed since the specified ref"
270
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-eb378232.cjs.js'); }).then((m) => m.command)));
270
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-690455c7.cjs.js'); }).then((m) => m.command)));
271
271
  command.command("lint").description("Lint all packages in the project").option(
272
272
  "--format <format>",
273
273
  "Lint report output format",
@@ -275,10 +275,10 @@ function registerRepoCommand(program) {
275
275
  ).option(
276
276
  "--since <ref>",
277
277
  "Only lint packages that changed since the specified ref"
278
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-af391261.cjs.js'); }).then((m) => m.command)));
279
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-c050d998.cjs.js'); }).then((m) => m.command)));
278
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-b441473e.cjs.js'); }).then((m) => m.command)));
279
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-bcaa2bce.cjs.js'); }).then((m) => m.command)));
280
280
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
281
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-d474804f.cjs.js'); }).then((m) => m.command))
281
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-3667c4a5.cjs.js'); }).then((m) => m.command))
282
282
  );
283
283
  command.command("test").allowUnknownOption(true).option(
284
284
  "--since <ref>",
@@ -286,14 +286,14 @@ function registerRepoCommand(program) {
286
286
  ).option(
287
287
  "--jest-help",
288
288
  "Show help for Jest CLI options, which are passed through"
289
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-0ba8dd19.cjs.js'); }).then((m) => m.command)));
289
+ ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-1fada493.cjs.js'); }).then((m) => m.command)));
290
290
  }
291
291
  function registerScriptCommand(program) {
292
292
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
293
293
  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(
294
294
  "--inspect-brk",
295
295
  "Enable debugger in Node.js environments, breaking before code starts"
296
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-70b5e9f0.cjs.js'); }).then((m) => m.command)));
296
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-1490ba2b.cjs.js'); }).then((m) => m.command)));
297
297
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
298
298
  "--minify",
299
299
  "Minify the generated code. Does not apply to app or backend packages."
@@ -311,36 +311,36 @@ function registerScriptCommand(program) {
311
311
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
312
312
  (opt, opts) => opts ? [...opts, opt] : [opt],
313
313
  Array()
314
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-56f89375.cjs.js'); }).then((m) => m.command)));
314
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-bf0fa947.cjs.js'); }).then((m) => m.command)));
315
315
  command.command("lint [directories...]").option(
316
316
  "--format <format>",
317
317
  "Lint report output format",
318
318
  "eslint-formatter-friendly"
319
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-4c20bc10.cjs.js'); }).then((m) => m.default)));
320
- 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-406b3cba.cjs.js'); }).then((m) => m.default)));
321
- 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-049fbfc9.cjs.js'); }).then((m) => m.command)));
322
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-31a1f618.cjs.js'); }).then((m) => m.default)));
323
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-06a08024.cjs.js'); }).then((m) => m.pre)));
324
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-06a08024.cjs.js'); }).then((m) => m.post)));
319
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-f1c44a12.cjs.js'); }).then((m) => m.default)));
320
+ 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-5f854226.cjs.js'); }).then((m) => m.default)));
321
+ 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-32f89b30.cjs.js'); }).then((m) => m.command)));
322
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-dbaf1912.cjs.js'); }).then((m) => m.default)));
323
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-1a98c41d.cjs.js'); }).then((m) => m.pre)));
324
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-1a98c41d.cjs.js'); }).then((m) => m.post)));
325
325
  }
326
326
  function registerMigrateCommand(program) {
327
327
  const command = program.command("migrate [command]").description("Migration utilities");
328
- 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-1c4efbb6.cjs.js'); }).then((m) => m.default)));
328
+ 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-0b957d76.cjs.js'); }).then((m) => m.default)));
329
329
  command.command("package-scripts").description("Set package scripts according to each package role").action(
330
- lazy(() => Promise.resolve().then(function () { return require('./packageScripts-0c36bb2f.cjs.js'); }).then((m) => m.command))
330
+ lazy(() => Promise.resolve().then(function () { return require('./packageScripts-a21a7d39.cjs.js'); }).then((m) => m.command))
331
331
  );
332
332
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
333
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-ddd7a9dd.cjs.js'); }).then((m) => m.command))
333
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-6ec50196.cjs.js'); }).then((m) => m.command))
334
334
  );
335
335
  command.command("package-lint-configs").description(
336
336
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
337
337
  ).action(
338
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-3be64192.cjs.js'); }).then((m) => m.command))
338
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-2940d9d4.cjs.js'); }).then((m) => m.command))
339
339
  );
340
340
  command.command("react-router-deps").description(
341
341
  "Migrates the react-router dependencies for all packages to be peer dependencies"
342
342
  ).action(
343
- lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-a4c295bd.cjs.js'); }).then((m) => m.command))
343
+ lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-7b459c9c.cjs.js'); }).then((m) => m.command))
344
344
  );
345
345
  }
346
346
  function registerCommands(program) {
@@ -360,7 +360,7 @@ function registerCommands(program) {
360
360
  ).option(
361
361
  "--baseVersion <version>",
362
362
  "The version to use for any new packages (default: 0.1.0)"
363
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-0aa80b7a.cjs.js'); }).then((m) => m.default)));
363
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-8809aa5e.cjs.js'); }).then((m) => m.default)));
364
364
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
365
365
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
366
366
  ).option(
@@ -374,43 +374,43 @@ function registerCommands(program) {
374
374
  ).option("--scope <scope>", "The scope to use for new packages").option(
375
375
  "--npm-registry <URL>",
376
376
  "The package registry to use for new packages"
377
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-0aa80b7a.cjs.js'); }).then((m) => m.default)));
377
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-8809aa5e.cjs.js'); }).then((m) => m.default)));
378
378
  program.command("create-plugin", { hidden: true }).option(
379
379
  "--backend",
380
380
  "Create plugin with the backend dependencies as default"
381
381
  ).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(
382
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-a2904ac4.cjs.js'); }).then((m) => m.default))
382
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-1f3076dd.cjs.js'); }).then((m) => m.default))
383
383
  );
384
384
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
385
385
  "Diff an existing plugin with the creation template [DEPRECATED]"
386
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-7484f58b.cjs.js'); }).then((m) => m.default)));
386
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-1b811a3f.cjs.js'); }).then((m) => m.default)));
387
387
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
388
388
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
389
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-406b3cba.cjs.js'); }).then((m) => m.default)));
389
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-5f854226.cjs.js'); }).then((m) => m.default)));
390
390
  program.command("config:docs").option(
391
391
  "--package <name>",
392
392
  "Only include the schema that applies to the given package"
393
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-3dc75573.cjs.js'); }).then((m) => m.default)));
393
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-b4ed46bc.cjs.js'); }).then((m) => m.default)));
394
394
  program.command("config:print").option(
395
395
  "--package <name>",
396
396
  "Only load config schema that applies to the given package"
397
397
  ).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(
398
398
  "--format <format>",
399
399
  "Format to print the configuration in, either json or yaml [yaml]"
400
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-453dcd69.cjs.js'); }).then((m) => m.default)));
400
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-14e7144f.cjs.js'); }).then((m) => m.default)));
401
401
  program.command("config:check").option(
402
402
  "--package <name>",
403
403
  "Only load config schema that applies to the given package"
404
404
  ).option("--lax", "Do not require environment variables to be set").option("--frontend", "Only validate the frontend configuration").option("--deprecated", "Output deprecated configuration settings").option(...configOption).description(
405
405
  "Validate that the given configuration loads and matches schema"
406
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-ab69bd87.cjs.js'); }).then((m) => m.default)));
406
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-8b9a3ee1.cjs.js'); }).then((m) => m.default)));
407
407
  program.command("config:schema").option(
408
408
  "--package <name>",
409
409
  "Only output config schema that applies to the given package"
410
410
  ).option(
411
411
  "--format <format>",
412
412
  "Format to print the schema in, either json or yaml [yaml]"
413
- ).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-4c760ac7.cjs.js'); }).then((m) => m.default)));
413
+ ).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-2462c29a.cjs.js'); }).then((m) => m.default)));
414
414
  registerRepoCommand(program);
415
415
  registerScriptCommand(program);
416
416
  registerMigrateCommand(program);
@@ -421,16 +421,16 @@ function registerCommands(program) {
421
421
  "--release <version|next|main>",
422
422
  "Bump to a specific Backstage release line or version",
423
423
  "main"
424
- ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-ee1d7a65.cjs.js'); }).then((m) => m.default)));
425
- 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-6ffcd019.cjs.js'); }).then((m) => m.default)));
426
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-31a1f618.cjs.js'); }).then((m) => m.default)));
427
- program.command("build-workspace <workspace-dir> [packages...]").description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-7f9d23b6.cjs.js'); }).then((m) => m.default)));
428
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-49993236.cjs.js'); }).then((m) => m.default)));
429
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-5ceccf59.cjs.js'); }).then((m) => m.default)));
424
+ ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-908de0a7.cjs.js'); }).then((m) => m.default)));
425
+ 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-98d3c2e6.cjs.js'); }).then((m) => m.default)));
426
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-dbaf1912.cjs.js'); }).then((m) => m.default)));
427
+ program.command("build-workspace <workspace-dir> [packages...]").description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-73cc4f62.cjs.js'); }).then((m) => m.default)));
428
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-0e97de8a.cjs.js'); }).then((m) => m.default)));
429
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-87cec93d.cjs.js'); }).then((m) => m.default)));
430
430
  program.command("install [plugin-id]", { hidden: true }).option(
431
431
  "--from <packageJsonFilePath>",
432
432
  "Install from a local package.json containing the installation recipe"
433
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-69068763.cjs.js'); }).then((m) => m.default)));
433
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-470924e3.cjs.js'); }).then((m) => m.default)));
434
434
  }
435
435
  function lazy(getActionFunc) {
436
436
  return async (...args) => {
@@ -474,4 +474,4 @@ exports.devDependencies = devDependencies;
474
474
  exports.paths = paths;
475
475
  exports.version = version;
476
476
  exports.version$1 = version$9;
477
- //# sourceMappingURL=index-fc99613b.cjs.js.map
477
+ //# sourceMappingURL=index-701ec917.cjs.js.map
@@ -1,20 +1,20 @@
1
1
  'use strict';
2
2
 
3
- var createDistWorkspace = require('./createDistWorkspace-cd594c0f.cjs.js');
4
- var packageRoles = require('./packageRoles-2d5ba047.cjs.js');
5
- var index = require('./index-fc99613b.cjs.js');
6
- var buildBackend = require('./buildBackend-3ff6a1aa.cjs.js');
3
+ var createDistWorkspace = require('./createDistWorkspace-7a2e4e7c.cjs.js');
4
+ var packageRoles = require('./packageRoles-9bc5d41a.cjs.js');
5
+ var index = require('./index-701ec917.cjs.js');
6
+ var buildBackend = require('./buildBackend-18a71bf8.cjs.js');
7
7
  require('chalk');
8
8
  require('fs-extra');
9
9
  require('path');
10
10
  require('os');
11
11
  require('tar');
12
12
  require('lodash/partition');
13
- require('./run-d843bae0.cjs.js');
13
+ require('./run-8a335c20.cjs.js');
14
14
  require('child_process');
15
15
  require('util');
16
16
  require('@backstage/errors');
17
- require('./PackageGraph-583328aa.cjs.js');
17
+ require('./PackageGraph-6ffddac0.cjs.js');
18
18
  require('@manypkg/get-packages');
19
19
  require('./Lockfile-e5943b84.cjs.js');
20
20
  require('semver');
@@ -33,10 +33,11 @@ require('@rollup/plugin-json');
33
33
  require('@rollup/plugin-yaml');
34
34
  require('rollup-pluginutils');
35
35
  require('./svgrTemplate-d1dad6d3.cjs.js');
36
- require('./productionPack-2d16db59.cjs.js');
37
- require('npm-packlist');
36
+ require('./entryPoints-e81a0dba.cjs.js');
38
37
  require('./parallel-4af834f6.cjs.js');
39
38
  require('worker_threads');
39
+ require('./productionPack-2038bfcf.cjs.js');
40
+ require('npm-packlist');
40
41
  require('zod');
41
42
  require('commander');
42
43
  require('@backstage/cli-common');
@@ -46,7 +47,7 @@ require('html-webpack-plugin');
46
47
  require('react-dev-utils/ModuleScopePlugin');
47
48
  require('run-script-webpack-plugin');
48
49
  require('webpack-node-externals');
49
- require('./paths-cbef9084.cjs.js');
50
+ require('./paths-e450a0ff.cjs.js');
50
51
  require('mini-css-extract-plugin');
51
52
  require('@pmmmwh/react-refresh-webpack-plugin');
52
53
  require('eslint-webpack-plugin');
@@ -56,7 +57,7 @@ require('react-dev-utils/FileSizeReporter');
56
57
  require('react-dev-utils/formatWebpackMessages');
57
58
  require('webpack-dev-server');
58
59
  require('react-dev-utils/openBrowser');
59
- require('./config-37cf3eff.cjs.js');
60
+ require('./config-91c020e8.cjs.js');
60
61
  require('@backstage/config-loader');
61
62
  require('@backstage/config');
62
63
 
@@ -94,4 +95,4 @@ async function command(opts) {
94
95
  }
95
96
 
96
97
  exports.command = command;
97
- //# sourceMappingURL=index-56f89375.cjs.js.map
98
+ //# sourceMappingURL=index-bf0fa947.cjs.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-fc99613b.cjs.js');
3
+ var index = require('./index-701ec917.cjs.js');
4
4
  var os = require('os');
5
- var run = require('./run-d843bae0.cjs.js');
5
+ var run = require('./run-8a335c20.cjs.js');
6
6
  var Lockfile = require('./Lockfile-e5943b84.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-5ceccf59.cjs.js.map
61
+ //# sourceMappingURL=info-87cec93d.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-ad97f7b8.cjs.js');
8
- var index = require('./index-fc99613b.cjs.js');
7
+ var packages = require('./packages-5184c06b.cjs.js');
8
+ var index = require('./index-701ec917.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-d843bae0.cjs.js');
12
+ var run = require('./run-8a335c20.cjs.js');
13
13
  require('minimatch');
14
14
  require('@manypkg/get-packages');
15
15
  require('./yarn-8315d2ff.cjs.js');
@@ -268,4 +268,4 @@ var install = async (pluginId, cmd) => {
268
268
  };
269
269
 
270
270
  exports["default"] = install;
271
- //# sourceMappingURL=install-69068763.cjs.js.map
271
+ //# sourceMappingURL=install-470924e3.cjs.js.map
@@ -5,10 +5,10 @@ require('minimatch');
5
5
  require('@manypkg/get-packages');
6
6
  require('chalk');
7
7
  require('./yarn-8315d2ff.cjs.js');
8
- require('./run-d843bae0.cjs.js');
9
- var index = require('./index-fc99613b.cjs.js');
8
+ require('./run-8a335c20.cjs.js');
9
+ var index = require('./index-701ec917.cjs.js');
10
10
  var partition = require('lodash/partition');
11
- var PackageGraph = require('./PackageGraph-583328aa.cjs.js');
11
+ var PackageGraph = require('./PackageGraph-6ffddac0.cjs.js');
12
12
  require('fs-extra');
13
13
  require('semver');
14
14
  require('@yarnpkg/parsers');
@@ -113,4 +113,4 @@ function logArray(arr, header, each) {
113
113
  exports["default"] = lint;
114
114
  exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
115
115
  exports.includedFilter = includedFilter;
116
- //# sourceMappingURL=lint-6ffcd019.cjs.js.map
116
+ //# sourceMappingURL=lint-98d3c2e6.cjs.js.map
@@ -2,9 +2,9 @@
2
2
 
3
3
  var chalk = require('chalk');
4
4
  var path = require('path');
5
- var PackageGraph = require('./PackageGraph-583328aa.cjs.js');
5
+ var PackageGraph = require('./PackageGraph-6ffddac0.cjs.js');
6
6
  var parallel = require('./parallel-4af834f6.cjs.js');
7
- var index = require('./index-fc99613b.cjs.js');
7
+ var index = require('./index-701ec917.cjs.js');
8
8
  require('@manypkg/get-packages');
9
9
  require('@backstage/errors');
10
10
  require('child_process');
@@ -16,7 +16,7 @@ require('@yarnpkg/parsers');
16
16
  require('@yarnpkg/lockfile');
17
17
  require('minimatch');
18
18
  require('./yarn-8315d2ff.cjs.js');
19
- require('./run-d843bae0.cjs.js');
19
+ require('./run-8a335c20.cjs.js');
20
20
  require('os');
21
21
  require('worker_threads');
22
22
  require('commander');
@@ -97,4 +97,4 @@ async function command(opts) {
97
97
  }
98
98
 
99
99
  exports.command = command;
100
- //# sourceMappingURL=lint-af391261.cjs.js.map
100
+ //# sourceMappingURL=lint-b441473e.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-fc99613b.cjs.js');
3
+ var index = require('./index-701ec917.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-4c20bc10.cjs.js.map
36
+ //# sourceMappingURL=lint-f1c44a12.cjs.js.map
@@ -3,8 +3,8 @@
3
3
  var chalk = require('chalk');
4
4
  var eslint = require('eslint');
5
5
  var path = require('path');
6
- var index = require('./index-fc99613b.cjs.js');
7
- var PackageGraph = require('./PackageGraph-583328aa.cjs.js');
6
+ var index = require('./index-701ec917.cjs.js');
7
+ var PackageGraph = require('./PackageGraph-6ffddac0.cjs.js');
8
8
  require('commander');
9
9
  require('fs-extra');
10
10
  require('semver');
@@ -18,7 +18,7 @@ require('@yarnpkg/parsers');
18
18
  require('@yarnpkg/lockfile');
19
19
  require('minimatch');
20
20
  require('./yarn-8315d2ff.cjs.js');
21
- require('./run-d843bae0.cjs.js');
21
+ require('./run-8a335c20.cjs.js');
22
22
 
23
23
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
24
24
 
@@ -85,4 +85,4 @@ async function command(opts) {
85
85
  }
86
86
 
87
87
  exports.command = command;
88
- //# sourceMappingURL=list-deprecations-d474804f.cjs.js.map
88
+ //# sourceMappingURL=list-deprecations-3667c4a5.cjs.js.map
@@ -7,13 +7,13 @@ 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-fc99613b.cjs.js');
11
- var tasks = require('./tasks-989067ef.cjs.js');
10
+ var index = require('./index-701ec917.cjs.js');
11
+ var tasks = require('./tasks-7a221be0.cjs.js');
12
12
  var Lockfile = require('./Lockfile-e5943b84.cjs.js');
13
13
  require('minimatch');
14
14
  require('@manypkg/get-packages');
15
15
  require('./yarn-8315d2ff.cjs.js');
16
- require('./run-d843bae0.cjs.js');
16
+ require('./run-8a335c20.cjs.js');
17
17
  var partition = require('lodash/partition');
18
18
  var errors = require('@backstage/errors');
19
19
  require('commander');
@@ -320,6 +320,78 @@ const pluginCommon = createFactory({
320
320
  }
321
321
  });
322
322
 
323
+ const pluginNode = createFactory({
324
+ name: "plugin-node",
325
+ description: "A new Node.js library plugin package",
326
+ optionsDiscovery: async () => ({
327
+ codeOwnersPath: await tasks.getCodeownersFilePath(index.paths.targetRoot)
328
+ }),
329
+ optionsPrompts: [pluginIdPrompt(), ownerPrompt()],
330
+ async create(options, ctx) {
331
+ const { id } = options;
332
+ const suffix = `${id}-node`;
333
+ const name = ctx.scope ? `@${ctx.scope}/plugin-${suffix}` : `backstage-plugin-${suffix}`;
334
+ tasks.Task.log();
335
+ tasks.Task.log(`Creating Node.js plugin library ${chalk__default["default"].cyan(name)}`);
336
+ const targetDir = ctx.isMonoRepo ? index.paths.resolveTargetRoot("plugins", suffix) : index.paths.resolveTargetRoot(`backstage-plugin-${suffix}`);
337
+ await executePluginPackageTemplate(ctx, {
338
+ targetDir,
339
+ templateName: "default-node-plugin-package",
340
+ values: {
341
+ id,
342
+ name,
343
+ privatePackage: ctx.private,
344
+ npmRegistry: ctx.npmRegistry,
345
+ pluginVersion: ctx.defaultVersion
346
+ }
347
+ });
348
+ if (options.owner) {
349
+ await tasks.addCodeownersEntry(`/plugins/${suffix}`, options.owner);
350
+ }
351
+ await tasks.Task.forCommand("yarn install", { cwd: targetDir, optional: true });
352
+ await tasks.Task.forCommand("yarn lint --fix", {
353
+ cwd: targetDir,
354
+ optional: true
355
+ });
356
+ }
357
+ });
358
+
359
+ const pluginWeb = createFactory({
360
+ name: "plugin-react",
361
+ description: "A new web library plugin package",
362
+ optionsDiscovery: async () => ({
363
+ codeOwnersPath: await tasks.getCodeownersFilePath(index.paths.targetRoot)
364
+ }),
365
+ optionsPrompts: [pluginIdPrompt(), ownerPrompt()],
366
+ async create(options, ctx) {
367
+ const { id } = options;
368
+ const suffix = `${id}-react`;
369
+ const name = ctx.scope ? `@${ctx.scope}/plugin-${suffix}` : `backstage-plugin-${suffix}`;
370
+ tasks.Task.log();
371
+ tasks.Task.log(`Creating web plugin library ${chalk__default["default"].cyan(name)}`);
372
+ const targetDir = ctx.isMonoRepo ? index.paths.resolveTargetRoot("plugins", suffix) : index.paths.resolveTargetRoot(`backstage-plugin-${suffix}`);
373
+ await executePluginPackageTemplate(ctx, {
374
+ targetDir,
375
+ templateName: "default-react-plugin-package",
376
+ values: {
377
+ id,
378
+ name,
379
+ privatePackage: ctx.private,
380
+ npmRegistry: ctx.npmRegistry,
381
+ pluginVersion: ctx.defaultVersion
382
+ }
383
+ });
384
+ if (options.owner) {
385
+ await tasks.addCodeownersEntry(`/plugins/${suffix}`, options.owner);
386
+ }
387
+ await tasks.Task.forCommand("yarn install", { cwd: targetDir, optional: true });
388
+ await tasks.Task.forCommand("yarn lint --fix", {
389
+ cwd: targetDir,
390
+ optional: true
391
+ });
392
+ }
393
+ });
394
+
323
395
  const scaffolderModule = createFactory({
324
396
  name: "scaffolder-module",
325
397
  description: "An module exporting custom actions for @backstage/plugin-scaffolder-backend",
@@ -384,6 +456,8 @@ var factories = /*#__PURE__*/Object.freeze({
384
456
  backendPlugin: backendPlugin,
385
457
  webLibraryPackage: webLibraryPackage,
386
458
  pluginCommon: pluginCommon,
459
+ pluginNode: pluginNode,
460
+ pluginWeb: pluginWeb,
387
461
  scaffolderModule: scaffolderModule
388
462
  });
389
463
 
@@ -560,4 +634,4 @@ var _new = async (opts) => {
560
634
  };
561
635
 
562
636
  exports["default"] = _new;
563
- //# sourceMappingURL=new-0aa80b7a.cjs.js.map
637
+ //# sourceMappingURL=new-8809aa5e.cjs.js.map
@@ -1,10 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var productionPack = require('./productionPack-2d16db59.cjs.js');
4
- var index = require('./index-fc99613b.cjs.js');
3
+ var productionPack = require('./productionPack-2038bfcf.cjs.js');
4
+ var index = require('./index-701ec917.cjs.js');
5
5
  require('fs-extra');
6
6
  require('npm-packlist');
7
7
  require('path');
8
+ require('./entryPoints-e81a0dba.cjs.js');
8
9
  require('commander');
9
10
  require('chalk');
10
11
  require('semver');
@@ -20,4 +21,4 @@ const post = async () => {
20
21
 
21
22
  exports.post = post;
22
23
  exports.pre = pre;
23
- //# sourceMappingURL=pack-06a08024.cjs.js.map
24
+ //# sourceMappingURL=pack-1a98c41d.cjs.js.map
@@ -2,9 +2,9 @@
2
2
 
3
3
  var fs = require('fs-extra');
4
4
  var path = require('path');
5
- var PackageGraph = require('./PackageGraph-583328aa.cjs.js');
5
+ var PackageGraph = require('./PackageGraph-6ffddac0.cjs.js');
6
6
  require('@manypkg/get-packages');
7
- require('./index-fc99613b.cjs.js');
7
+ require('./index-701ec917.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('semver');
@@ -17,7 +17,7 @@ require('@yarnpkg/parsers');
17
17
  require('@yarnpkg/lockfile');
18
18
  require('minimatch');
19
19
  require('./yarn-8315d2ff.cjs.js');
20
- require('./run-d843bae0.cjs.js');
20
+ require('./run-8a335c20.cjs.js');
21
21
 
22
22
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
23
23
 
@@ -105,4 +105,4 @@ async function command() {
105
105
  }
106
106
 
107
107
  exports.command = command;
108
- //# sourceMappingURL=packageExports-ddd7a9dd.cjs.js.map
108
+ //# sourceMappingURL=packageExports-6ec50196.cjs.js.map
@@ -2,10 +2,10 @@
2
2
 
3
3
  var fs = require('fs-extra');
4
4
  var path = require('path');
5
- var PackageGraph = require('./PackageGraph-583328aa.cjs.js');
6
- var run = require('./run-d843bae0.cjs.js');
5
+ var PackageGraph = require('./PackageGraph-6ffddac0.cjs.js');
6
+ var run = require('./run-8a335c20.cjs.js');
7
7
  require('@manypkg/get-packages');
8
- require('./index-fc99613b.cjs.js');
8
+ require('./index-701ec917.cjs.js');
9
9
  require('commander');
10
10
  require('chalk');
11
11
  require('semver');
@@ -85,4 +85,4 @@ async function command() {
85
85
  }
86
86
 
87
87
  exports.command = command;
88
- //# sourceMappingURL=packageLintConfigs-3be64192.cjs.js.map
88
+ //# sourceMappingURL=packageLintConfigs-2940d9d4.cjs.js.map
@@ -3,8 +3,8 @@
3
3
  var fs = require('fs-extra');
4
4
  var path = require('path');
5
5
  var getPackages = require('@manypkg/get-packages');
6
- var index = require('./index-fc99613b.cjs.js');
7
- var packageRoles = require('./packageRoles-2d5ba047.cjs.js');
6
+ var index = require('./index-701ec917.cjs.js');
7
+ var packageRoles = require('./packageRoles-9bc5d41a.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('semver');
@@ -56,4 +56,4 @@ var packageRole = async () => {
56
56
  };
57
57
 
58
58
  exports["default"] = packageRole;
59
- //# sourceMappingURL=packageRole-1c4efbb6.cjs.js.map
59
+ //# sourceMappingURL=packageRole-0b957d76.cjs.js.map