@backstage/cli 0.22.13 → 0.23.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/cjs/{build-affb01b7.cjs.js → build-c6e45627.cjs.js} +7 -7
  3. package/dist/cjs/{buildBackend-73e54dc3.cjs.js → buildBackend-3c76db36.cjs.js} +6 -6
  4. package/dist/cjs/{buildWorkspace-ece5f9da.cjs.js → buildWorkspace-a8976319.cjs.js} +4 -4
  5. package/dist/cjs/{bump-1dddd386.cjs.js → bump-f936d25d.cjs.js} +5 -5
  6. package/dist/cjs/{clean-6675c657.cjs.js → clean-51be9aac.cjs.js} +2 -2
  7. package/dist/cjs/{clean-55b54fa4.cjs.js → clean-8ec100aa.cjs.js} +2 -2
  8. package/dist/cjs/{codeowners-3f8b7b3a.cjs.js → codeowners-68f9a968.cjs.js} +2 -2
  9. package/dist/cjs/{config-d08b981b.cjs.js → config-e9866115.cjs.js} +2 -2
  10. package/dist/cjs/{createDistWorkspace-cf86b976.cjs.js → createDistWorkspace-3687e5db.cjs.js} +5 -4
  11. package/dist/cjs/{createPlugin-6c6fba51.cjs.js → createPlugin-e04c48f2.cjs.js} +4 -4
  12. package/dist/cjs/{diff-e5fd1f2e.cjs.js → diff-1de5b392.cjs.js} +2 -2
  13. package/dist/cjs/{docs-ea167b53.cjs.js → docs-ea08de57.cjs.js} +3 -3
  14. package/dist/cjs/{fix-28974fe5.cjs.js → fix-18caaba3.cjs.js} +2 -2
  15. package/dist/cjs/{index-904f60f5.cjs.js → index-3dd8442a.cjs.js} +16 -10
  16. package/dist/cjs/{index-f1be1963.cjs.js → index-8a266472.cjs.js} +3 -3
  17. package/dist/cjs/{index-3a524c78.cjs.js → index-a81da3bb.cjs.js} +2 -2
  18. package/dist/cjs/{index-2e2d5423.cjs.js → index-c0278ae6.cjs.js} +8 -8
  19. package/dist/cjs/{index-c8324a66.cjs.js → index-eaf0d41e.cjs.js} +47 -46
  20. package/dist/cjs/{info-8566d7dc.cjs.js → info-00cccf2c.cjs.js} +3 -3
  21. package/dist/cjs/{install-a9fa86c1.cjs.js → install-1d1e2cdd.cjs.js} +4 -4
  22. package/dist/cjs/{lint-05e9cbe5.cjs.js → lint-22f1cd8b.cjs.js} +2 -2
  23. package/dist/cjs/{lint-f6790ec9.cjs.js → lint-5289ba25.cjs.js} +3 -3
  24. package/dist/cjs/{lint-3d9078c5.cjs.js → lint-6049747c.cjs.js} +2 -2
  25. package/dist/cjs/{list-deprecations-fa56cd69.cjs.js → list-deprecations-7da4b03c.cjs.js} +2 -2
  26. package/dist/cjs/{new-5366c4b4.cjs.js → new-a08a732f.cjs.js} +40 -4
  27. package/dist/cjs/{pack-d5376906.cjs.js → pack-7a7defe7.cjs.js} +2 -2
  28. package/dist/cjs/{packageDetection-0bcd55f4.cjs.js → packageDetection-e0eef2b7.cjs.js} +3 -3
  29. package/dist/cjs/{packageExports-e23f69e2.cjs.js → packageExports-a28b219c.cjs.js} +3 -3
  30. package/dist/cjs/{packageLintConfigs-32bb66d9.cjs.js → packageLintConfigs-ceebbac3.cjs.js} +3 -3
  31. package/dist/cjs/{packageRole-d9549771.cjs.js → packageRole-a6bbf39c.cjs.js} +2 -2
  32. package/dist/cjs/{packages-c1806837.cjs.js → packages-ffbbc844.cjs.js} +3 -3
  33. package/dist/cjs/{print-b90121f3.cjs.js → print-4d371920.cjs.js} +3 -3
  34. package/dist/cjs/{role-672b48f1.cjs.js → role-eac52f4b.cjs.js} +2 -2
  35. package/dist/cjs/{run-c66068ff.cjs.js → run-9942d093.cjs.js} +2 -2
  36. package/dist/cjs/{schema-33040c3b.cjs.js → schema-2f56feb9.cjs.js} +3 -3
  37. package/dist/cjs/{test-afb4f363.cjs.js → test-2e1ec526.cjs.js} +3 -3
  38. package/dist/cjs/{test-47a8be63.cjs.js → test-d90776ab.cjs.js} +3 -3
  39. package/dist/cjs/{validate-7baeee87.cjs.js → validate-0bd6c265.cjs.js} +3 -3
  40. package/dist/index.cjs.js +1 -1
  41. package/package.json +16 -15
  42. package/templates/node-library-package/.eslintrc.js +1 -0
  43. package/templates/node-library-package/README.md.hbs +12 -0
  44. package/templates/node-library-package/package.json.hbs +36 -0
  45. package/templates/node-library-package/src/index.ts.hbs +1 -0
  46. package/templates/node-library-package/src/setupTests.ts +1 -0
  47. package/templates/node-library-package/tsconfig.json +11 -0
@@ -53,13 +53,13 @@ class NotFoundError extends CustomError {
53
53
 
54
54
  const paths = cliCommon.findPaths(__dirname);
55
55
 
56
- var version$c = "0.19.5";
56
+ var version$c = "0.19.7-next.1";
57
57
 
58
- var version$b = "0.6.3";
58
+ var version$b = "0.6.5-next.1";
59
59
 
60
- var version$a = "0.2.3";
60
+ var version$a = "0.2.6-next.1";
61
61
 
62
- var version$9 = "0.22.13";
62
+ var version$9 = "0.23.0-next.1";
63
63
  var dependencies = {
64
64
  "@backstage/catalog-model": "workspace:^",
65
65
  "@backstage/cli-common": "workspace:^",
@@ -109,6 +109,7 @@ var dependencies = {
109
109
  "cross-fetch": "^3.1.5",
110
110
  "cross-spawn": "^7.0.3",
111
111
  "css-loader": "^6.5.1",
112
+ "ctrlc-windows": "^2.1.0",
112
113
  diff: "^5.0.0",
113
114
  esbuild: "^0.19.0",
114
115
  "esbuild-loader": "^2.18.0",
@@ -189,7 +190,7 @@ var devDependencies = {
189
190
  "@types/inquirer": "^8.1.3",
190
191
  "@types/minimatch": "^5.0.0",
191
192
  "@types/mock-fs": "^4.13.0",
192
- "@types/node": "^16.11.26",
193
+ "@types/node": "^18.17.8",
193
194
  "@types/npm-packlist": "^3.0.0",
194
195
  "@types/recursive-readdir": "^2.2.0",
195
196
  "@types/rollup-plugin-peer-deps-external": "^2.2.0",
@@ -199,7 +200,7 @@ var devDependencies = {
199
200
  "@types/terser-webpack-plugin": "^5.0.4",
200
201
  "@types/yarnpkg__lockfile": "^1.1.4",
201
202
  del: "^7.0.0",
202
- "mock-fs": "^5.1.0",
203
+ "mock-fs": "^5.2.0",
203
204
  msw: "^1.0.0",
204
205
  nodemon: "^3.0.1",
205
206
  "ts-node": "^10.0.0",
@@ -208,19 +209,19 @@ var devDependencies = {
208
209
 
209
210
  var version$8 = "1.1.0";
210
211
 
211
- var version$7 = "1.10.0";
212
+ var version$7 = "1.10.1-next.1";
212
213
 
213
- var version$6 = "0.13.5";
214
+ var version$6 = "0.13.6-next.1";
214
215
 
215
- var version$5 = "1.6.0";
216
+ var version$5 = "1.7.0-next.0";
216
217
 
217
- var version$4 = "1.0.21";
218
+ var version$4 = "1.0.22-next.1";
218
219
 
219
- var version$3 = "1.4.3";
220
+ var version$3 = "1.4.4-next.1";
220
221
 
221
222
  var version$2 = "0.4.2";
222
223
 
223
- var version$1 = "1.17.0";
224
+ var version$1 = "1.18.0-next.1";
224
225
 
225
226
  const packageVersions = {
226
227
  "@backstage/backend-common": version$c,
@@ -284,7 +285,7 @@ const configOption = [
284
285
  Array()
285
286
  ];
286
287
  function registerOnboardCommand(program) {
287
- program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-f1be1963.cjs.js'); }).then((m) => m.command)));
288
+ program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-8a266472.cjs.js'); }).then((m) => m.command)));
288
289
  }
289
290
  function registerRepoCommand(program) {
290
291
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
@@ -296,7 +297,7 @@ function registerRepoCommand(program) {
296
297
  ).option(
297
298
  "--since <ref>",
298
299
  "Only build packages and their dev dependents that changed since the specified ref"
299
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-affb01b7.cjs.js'); }).then((m) => m.command)));
300
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-c6e45627.cjs.js'); }).then((m) => m.command)));
300
301
  command.command("lint").description("Lint all packages in the project").option(
301
302
  "--format <format>",
302
303
  "Lint report output format",
@@ -304,14 +305,14 @@ function registerRepoCommand(program) {
304
305
  ).option(
305
306
  "--since <ref>",
306
307
  "Only lint packages that changed since the specified ref"
307
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-05e9cbe5.cjs.js'); }).then((m) => m.command)));
308
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-22f1cd8b.cjs.js'); }).then((m) => m.command)));
308
309
  command.command("fix").description("Automatically fix packages in the project").option(
309
310
  "--check",
310
311
  "Fail if any packages would have been changed by the command"
311
- ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-28974fe5.cjs.js'); }).then((m) => m.command)));
312
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-55b54fa4.cjs.js'); }).then((m) => m.command)));
312
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-18caaba3.cjs.js'); }).then((m) => m.command)));
313
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-8ec100aa.cjs.js'); }).then((m) => m.command)));
313
314
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
314
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-fa56cd69.cjs.js'); }).then((m) => m.command))
315
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-7da4b03c.cjs.js'); }).then((m) => m.command))
315
316
  );
316
317
  command.command("test").allowUnknownOption(true).option(
317
318
  "--since <ref>",
@@ -319,14 +320,14 @@ function registerRepoCommand(program) {
319
320
  ).option(
320
321
  "--jest-help",
321
322
  "Show help for Jest CLI options, which are passed through"
322
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-afb4f363.cjs.js'); }).then((m) => m.command)));
323
+ ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-2e1ec526.cjs.js'); }).then((m) => m.command)));
323
324
  }
324
325
  function registerScriptCommand(program) {
325
326
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
326
327
  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(
327
328
  "--inspect-brk [host]",
328
329
  "Enable debugger in Node.js environments, breaking before code starts"
329
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-904f60f5.cjs.js'); }).then((m) => m.command)));
330
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-3dd8442a.cjs.js'); }).then((m) => m.command)));
330
331
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
331
332
  "--minify",
332
333
  "Minify the generated code. Does not apply to app or backend packages."
@@ -344,30 +345,30 @@ function registerScriptCommand(program) {
344
345
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
345
346
  (opt, opts) => opts ? [...opts, opt] : [opt],
346
347
  Array()
347
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-2e2d5423.cjs.js'); }).then((m) => m.command)));
348
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-c0278ae6.cjs.js'); }).then((m) => m.command)));
348
349
  command.command("lint [directories...]").option(
349
350
  "--format <format>",
350
351
  "Lint report output format",
351
352
  "eslint-formatter-friendly"
352
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-3d9078c5.cjs.js'); }).then((m) => m.default)));
353
- command.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-47a8be63.cjs.js'); }).then((m) => m.default)));
354
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-6675c657.cjs.js'); }).then((m) => m.default)));
355
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-d5376906.cjs.js'); }).then((m) => m.pre)));
356
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-d5376906.cjs.js'); }).then((m) => m.post)));
353
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-6049747c.cjs.js'); }).then((m) => m.default)));
354
+ 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-d90776ab.cjs.js'); }).then((m) => m.default)));
355
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-51be9aac.cjs.js'); }).then((m) => m.default)));
356
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-7a7defe7.cjs.js'); }).then((m) => m.pre)));
357
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-7a7defe7.cjs.js'); }).then((m) => m.post)));
357
358
  }
358
359
  function registerMigrateCommand(program) {
359
360
  const command = program.command("migrate [command]").description("Migration utilities");
360
- command.command("package-roles").description(`Add package role field to packages that don't have it`).action(lazy(() => Promise.resolve().then(function () { return require('./packageRole-d9549771.cjs.js'); }).then((m) => m.default)));
361
+ 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-a6bbf39c.cjs.js'); }).then((m) => m.default)));
361
362
  command.command("package-scripts").description("Set package scripts according to each package role").action(
362
363
  lazy(() => Promise.resolve().then(function () { return require('./packageScripts-c6721fac.cjs.js'); }).then((m) => m.command))
363
364
  );
364
365
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
365
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-e23f69e2.cjs.js'); }).then((m) => m.command))
366
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-a28b219c.cjs.js'); }).then((m) => m.command))
366
367
  );
367
368
  command.command("package-lint-configs").description(
368
369
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
369
370
  ).action(
370
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-32bb66d9.cjs.js'); }).then((m) => m.command))
371
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-ceebbac3.cjs.js'); }).then((m) => m.command))
371
372
  );
372
373
  command.command("react-router-deps").description(
373
374
  "Migrates the react-router dependencies for all packages to be peer dependencies"
@@ -392,7 +393,7 @@ function registerCommands(program) {
392
393
  ).option(
393
394
  "--baseVersion <version>",
394
395
  "The version to use for any new packages (default: 0.1.0)"
395
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-5366c4b4.cjs.js'); }).then((m) => m.default)));
396
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-a08a732f.cjs.js'); }).then((m) => m.default)));
396
397
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
397
398
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
398
399
  ).option(
@@ -406,30 +407,30 @@ function registerCommands(program) {
406
407
  ).option("--scope <scope>", "The scope to use for new packages").option(
407
408
  "--npm-registry <URL>",
408
409
  "The package registry to use for new packages"
409
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-5366c4b4.cjs.js'); }).then((m) => m.default)));
410
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-a08a732f.cjs.js'); }).then((m) => m.default)));
410
411
  program.command("create-plugin", { hidden: true }).option(
411
412
  "--backend",
412
413
  "Create plugin with the backend dependencies as default"
413
414
  ).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(
414
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-6c6fba51.cjs.js'); }).then((m) => m.default))
415
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-e04c48f2.cjs.js'); }).then((m) => m.default))
415
416
  );
416
417
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
417
418
  "Diff an existing plugin with the creation template [DEPRECATED]"
418
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-e5fd1f2e.cjs.js'); }).then((m) => m.default)));
419
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-1de5b392.cjs.js'); }).then((m) => m.default)));
419
420
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
420
421
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
421
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-47a8be63.cjs.js'); }).then((m) => m.default)));
422
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-d90776ab.cjs.js'); }).then((m) => m.default)));
422
423
  program.command("config:docs").option(
423
424
  "--package <name>",
424
425
  "Only include the schema that applies to the given package"
425
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-ea167b53.cjs.js'); }).then((m) => m.default)));
426
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-ea08de57.cjs.js'); }).then((m) => m.default)));
426
427
  program.command("config:print").option(
427
428
  "--package <name>",
428
429
  "Only load config schema that applies to the given package"
429
430
  ).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(
430
431
  "--format <format>",
431
432
  "Format to print the configuration in, either json or yaml [yaml]"
432
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-b90121f3.cjs.js'); }).then((m) => m.default)));
433
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-4d371920.cjs.js'); }).then((m) => m.default)));
433
434
  program.command("config:check").option(
434
435
  "--package <name>",
435
436
  "Only load config schema that applies to the given package"
@@ -438,14 +439,14 @@ function registerCommands(program) {
438
439
  "Enable strict config validation, forbidding errors and unknown keys"
439
440
  ).option(...configOption).description(
440
441
  "Validate that the given configuration loads and matches schema"
441
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-7baeee87.cjs.js'); }).then((m) => m.default)));
442
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-0bd6c265.cjs.js'); }).then((m) => m.default)));
442
443
  program.command("config:schema").option(
443
444
  "--package <name>",
444
445
  "Only output config schema that applies to the given package"
445
446
  ).option(
446
447
  "--format <format>",
447
448
  "Format to print the schema in, either json or yaml [yaml]"
448
- ).option("--merge", "Print the config schemas merged", true).option("--no-merge", "Print the config schemas not merged").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-33040c3b.cjs.js'); }).then((m) => m.default)));
449
+ ).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-2f56feb9.cjs.js'); }).then((m) => m.default)));
449
450
  registerRepoCommand(program);
450
451
  registerScriptCommand(program);
451
452
  registerMigrateCommand(program);
@@ -457,19 +458,19 @@ function registerCommands(program) {
457
458
  "--release <version|next|main>",
458
459
  "Bump to a specific Backstage release line or version",
459
460
  "main"
460
- ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-1dddd386.cjs.js'); }).then((m) => m.default)));
461
- program.command("versions:check").option("--fix", "Fix any auto-fixable versioning problems").description("Check Backstage package versioning").action(lazy(() => Promise.resolve().then(function () { return require('./lint-f6790ec9.cjs.js'); }).then((m) => m.default)));
462
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-6675c657.cjs.js'); }).then((m) => m.default)));
461
+ ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-f936d25d.cjs.js'); }).then((m) => m.default)));
462
+ 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-5289ba25.cjs.js'); }).then((m) => m.default)));
463
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-51be9aac.cjs.js'); }).then((m) => m.default)));
463
464
  program.command("build-workspace <workspace-dir> [packages...]").option(
464
465
  "--alwaysYarnPack",
465
466
  "Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
466
- ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-ece5f9da.cjs.js'); }).then((m) => m.default)));
467
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-3a524c78.cjs.js'); }).then((m) => m.default)));
468
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-8566d7dc.cjs.js'); }).then((m) => m.default)));
467
+ ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-a8976319.cjs.js'); }).then((m) => m.default)));
468
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-a81da3bb.cjs.js'); }).then((m) => m.default)));
469
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-00cccf2c.cjs.js'); }).then((m) => m.default)));
469
470
  program.command("install [plugin-id]", { hidden: true }).option(
470
471
  "--from <packageJsonFilePath>",
471
472
  "Install from a local package.json containing the installation recipe"
472
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-a9fa86c1.cjs.js'); }).then((m) => m.default)));
473
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-1d1e2cdd.cjs.js'); }).then((m) => m.default)));
473
474
  }
474
475
  function lazy(getActionFunc) {
475
476
  return async (...args) => {
@@ -513,4 +514,4 @@ exports.devDependencies = devDependencies;
513
514
  exports.paths = paths;
514
515
  exports.version = version;
515
516
  exports.version$1 = version$9;
516
- //# sourceMappingURL=index-c8324a66.cjs.js.map
517
+ //# sourceMappingURL=index-eaf0d41e.cjs.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-c8324a66.cjs.js');
3
+ var index = require('./index-eaf0d41e.cjs.js');
4
4
  var os = require('os');
5
- var run = require('./run-c66068ff.cjs.js');
5
+ var run = require('./run-9942d093.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-8566d7dc.cjs.js.map
61
+ //# sourceMappingURL=info-00cccf2c.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-c1806837.cjs.js');
8
- var index = require('./index-c8324a66.cjs.js');
7
+ var packages = require('./packages-ffbbc844.cjs.js');
8
+ var index = require('./index-eaf0d41e.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-c66068ff.cjs.js');
12
+ var run = require('./run-9942d093.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-a9fa86c1.cjs.js.map
271
+ //# sourceMappingURL=install-1d1e2cdd.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-c8324a66.cjs.js');
6
+ var index = require('./index-eaf0d41e.cjs.js');
7
7
  var parallel = require('./parallel-a8f6219c.cjs.js');
8
8
  require('commander');
9
9
  require('fs-extra');
@@ -88,4 +88,4 @@ async function command(opts) {
88
88
  }
89
89
 
90
90
  exports.command = command;
91
- //# sourceMappingURL=lint-05e9cbe5.cjs.js.map
91
+ //# sourceMappingURL=lint-22f1cd8b.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-c66068ff.cjs.js');
9
- var index = require('./index-c8324a66.cjs.js');
8
+ require('./run-9942d093.cjs.js');
9
+ var index = require('./index-eaf0d41e.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-f6790ec9.cjs.js.map
115
+ //# sourceMappingURL=lint-5289ba25.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-c8324a66.cjs.js');
3
+ var index = require('./index-eaf0d41e.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-3d9078c5.cjs.js.map
36
+ //# sourceMappingURL=lint-6049747c.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-c8324a66.cjs.js');
7
+ var index = require('./index-eaf0d41e.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-fa56cd69.cjs.js.map
79
+ //# sourceMappingURL=list-deprecations-7da4b03c.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-c8324a66.cjs.js');
11
- var codeowners = require('./codeowners-3f8b7b3a.cjs.js');
10
+ var index = require('./index-eaf0d41e.cjs.js');
11
+ var codeowners = require('./codeowners-68f9a968.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-c66068ff.cjs.js');
17
+ require('./run-9942d093.cjs.js');
18
18
  var partition = require('lodash/partition');
19
19
  var cliNode = require('@backstage/cli-node');
20
20
  var errors = require('@backstage/errors');
@@ -319,6 +319,41 @@ const backendModule = createFactory({
319
319
  }
320
320
  });
321
321
 
322
+ const nodeLibraryPackage = createFactory({
323
+ name: "node-library",
324
+ description: "A new node-library package",
325
+ optionsDiscovery: async () => ({
326
+ codeOwnersPath: await codeowners.getCodeownersFilePath(index.paths.targetRoot)
327
+ }),
328
+ optionsPrompts: [pluginIdPrompt(), ownerPrompt()],
329
+ async create(options, ctx) {
330
+ const { id } = options;
331
+ const name = ctx.scope ? `@${ctx.scope}/${id}` : `${id}`;
332
+ tasks.Task.log();
333
+ tasks.Task.log(`Creating node-library package ${chalk__default["default"].cyan(name)}`);
334
+ const targetDir = ctx.isMonoRepo ? index.paths.resolveTargetRoot("packages", id) : index.paths.resolveTargetRoot(`${id}`);
335
+ await executePluginPackageTemplate(ctx, {
336
+ targetDir,
337
+ templateName: "node-library-package",
338
+ values: {
339
+ id,
340
+ name,
341
+ pluginVersion: ctx.defaultVersion,
342
+ privatePackage: ctx.private,
343
+ npmRegistry: ctx.npmRegistry
344
+ }
345
+ });
346
+ if (options.owner) {
347
+ await codeowners.addCodeownersEntry(`/packages/${id}`, options.owner);
348
+ }
349
+ await tasks.Task.forCommand("yarn install", { cwd: targetDir, optional: true });
350
+ await tasks.Task.forCommand("yarn lint --fix", {
351
+ cwd: targetDir,
352
+ optional: true
353
+ });
354
+ }
355
+ });
356
+
322
357
  const webLibraryPackage = createFactory({
323
358
  name: "web-library",
324
359
  description: "A new web-library package",
@@ -525,6 +560,7 @@ var factories = /*#__PURE__*/Object.freeze({
525
560
  frontendPlugin: frontendPlugin,
526
561
  backendPlugin: backendPlugin,
527
562
  backendModule: backendModule,
563
+ nodeLibraryPackage: nodeLibraryPackage,
528
564
  webLibraryPackage: webLibraryPackage,
529
565
  pluginCommon: pluginCommon,
530
566
  pluginNode: pluginNode,
@@ -700,4 +736,4 @@ var _new = async (opts) => {
700
736
  };
701
737
 
702
738
  exports["default"] = _new;
703
- //# sourceMappingURL=new-5366c4b4.cjs.js.map
739
+ //# sourceMappingURL=new-a08a732f.cjs.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var productionPack = require('./productionPack-d569941a.cjs.js');
4
- var index = require('./index-c8324a66.cjs.js');
4
+ var index = require('./index-eaf0d41e.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-d5376906.cjs.js.map
24
+ //# sourceMappingURL=pack-7a7defe7.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-c8324a66.cjs.js');
11
+ var index = require('./index-eaf0d41e.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-c66068ff.cjs.js');
17
+ var run = require('./run-9942d093.cjs.js');
18
18
  var MiniCssExtractPlugin = require('mini-css-extract-plugin');
19
19
  var svgrTemplate = require('./svgrTemplate-550efce6.cjs.js');
20
20
  var ReactRefreshPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
@@ -690,4 +690,4 @@ exports.createConfig = createConfig;
690
690
  exports.createDetectedModulesEntryPoint = createDetectedModulesEntryPoint;
691
691
  exports.resolveBaseUrl = resolveBaseUrl;
692
692
  exports.resolveBundlingPaths = resolveBundlingPaths;
693
- //# sourceMappingURL=packageDetection-0bcd55f4.cjs.js.map
693
+ //# sourceMappingURL=packageDetection-e0eef2b7.cjs.js.map
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var fix = require('./fix-28974fe5.cjs.js');
3
+ var fix = require('./fix-18caaba3.cjs.js');
4
4
  require('@backstage/cli-node');
5
5
  require('fs-extra');
6
6
  require('path');
7
- require('./index-c8324a66.cjs.js');
7
+ require('./index-eaf0d41e.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-e23f69e2.cjs.js.map
26
+ //# sourceMappingURL=packageExports-a28b219c.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-c66068ff.cjs.js');
6
+ var run = require('./run-9942d093.cjs.js');
7
7
  require('child_process');
8
- require('./index-c8324a66.cjs.js');
8
+ require('./index-eaf0d41e.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-32bb66d9.cjs.js.map
82
+ //# sourceMappingURL=packageLintConfigs-ceebbac3.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-c8324a66.cjs.js');
7
+ var index = require('./index-eaf0d41e.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-d9549771.cjs.js.map
58
+ //# sourceMappingURL=packageRole-a6bbf39c.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-c8324a66.cjs.js');
5
+ var index = require('./index-eaf0d41e.cjs.js');
6
6
  var yarn = require('./yarn-6cd89e16.cjs.js');
7
- var run = require('./run-c66068ff.cjs.js');
7
+ var run = require('./run-9942d093.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-c1806837.cjs.js.map
83
+ //# sourceMappingURL=packages-ffbbc844.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-d08b981b.cjs.js');
5
+ var config = require('./config-e9866115.cjs.js');
6
6
  require('@backstage/config-loader');
7
- require('./index-c8324a66.cjs.js');
7
+ require('./index-eaf0d41e.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-b90121f3.cjs.js.map
61
+ //# sourceMappingURL=print-4d371920.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-c8324a66.cjs.js');
4
+ var index = require('./index-eaf0d41e.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-672b48f1.cjs.js.map
25
+ //# sourceMappingURL=role-eac52f4b.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-c8324a66.cjs.js');
4
+ var index = require('./index-eaf0d41e.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-c66068ff.cjs.js.map
82
+ //# sourceMappingURL=run-9942d093.cjs.js.map
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var yaml = require('yaml');
4
- var config = require('./config-d08b981b.cjs.js');
4
+ var config = require('./config-e9866115.cjs.js');
5
5
  var configLoader = require('@backstage/config-loader');
6
6
  require('@backstage/config');
7
- require('./index-c8324a66.cjs.js');
7
+ require('./index-eaf0d41e.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('fs-extra');
@@ -42,4 +42,4 @@ var schema = async (opts) => {
42
42
  };
43
43
 
44
44
  exports["default"] = schema;
45
- //# sourceMappingURL=schema-33040c3b.cjs.js.map
45
+ //# sourceMappingURL=schema-2f56feb9.cjs.js.map