@backstage/cli 0.22.5 → 0.22.6-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 (53) hide show
  1. package/CHANGELOG.md +30 -2
  2. package/asset-types/asset-types.d.ts +5 -0
  3. package/dist/cjs/{index/Lockfile-e5943b84.cjs.js → Lockfile-bc3a8337.cjs.js} +1 -1
  4. package/dist/cjs/{index/PackageGraph-84e587f4.cjs.js → PackageGraph-2eb22088.cjs.js} +5 -5
  5. package/dist/cjs/{index/build-994f0f45.cjs.js → build-34419958.cjs.js} +15 -15
  6. package/dist/cjs/{index/buildBackend-32a4adb3.cjs.js → buildBackend-6315da87.cjs.js} +7 -7
  7. package/dist/cjs/{index/buildWorkspace-62f3c38b.cjs.js → buildWorkspace-e1dd2931.cjs.js} +12 -12
  8. package/dist/cjs/{index/bump-cebb4e25.cjs.js → bump-ba095aea.cjs.js} +9 -9
  9. package/dist/cjs/{index/clean-7292aa76.cjs.js → clean-10f71978.cjs.js} +2 -2
  10. package/dist/cjs/{index/clean-cd01f9dc.cjs.js → clean-117c06e8.cjs.js} +6 -6
  11. package/dist/cjs/codeowners-ec774f58.cjs.js +91 -0
  12. package/dist/cjs/{index/config-7ca1db14.cjs.js → config-b630462b.cjs.js} +3 -3
  13. package/dist/cjs/{index/createDistWorkspace-4f496e3c.cjs.js → createDistWorkspace-53c29e53.cjs.js} +110 -100
  14. package/dist/cjs/{index/createPlugin-563b25e0.cjs.js → createPlugin-260d865c.cjs.js} +13 -12
  15. package/dist/cjs/{index/diff-07d125d5.cjs.js → diff-a63619b7.cjs.js} +4 -4
  16. package/dist/cjs/{index/docs-d67987f6.cjs.js → docs-aebd654b.cjs.js} +7 -7
  17. package/dist/cjs/{index/entryPoints-e81a0dba.cjs.js → entryPoints-5e73783d.cjs.js} +1 -1
  18. package/dist/cjs/{index/fix-2a45060f.cjs.js → fix-33ec227b.cjs.js} +6 -6
  19. package/dist/cjs/{index/index-9a88f8b3.cjs.js → index-44665fb9.cjs.js} +2 -2
  20. package/dist/cjs/{index/index-58c4e51a.cjs.js → index-62a9824e.cjs.js} +12 -12
  21. package/dist/cjs/index-9b9f70f2.cjs.js +471 -0
  22. package/dist/cjs/{index/index-7bc3de78.cjs.js → index-9ec09897.cjs.js} +15 -15
  23. package/dist/cjs/{index/index-d2845aa8.cjs.js → index-ca8e3b96.cjs.js} +51 -45
  24. package/dist/cjs/{index/info-72504c62.cjs.js → info-b05d5cf7.cjs.js} +5 -5
  25. package/dist/cjs/{index/install-f459a872.cjs.js → install-3f29c0fc.cjs.js} +5 -5
  26. package/dist/cjs/{index/lint-3d8a5df3.cjs.js → lint-02158235.cjs.js} +2 -2
  27. package/dist/cjs/{index/lint-8cdaff63.cjs.js → lint-39049bc2.cjs.js} +6 -6
  28. package/dist/cjs/{index/lint-9dba226e.cjs.js → lint-6eacc0e3.cjs.js} +7 -7
  29. package/dist/cjs/{index/list-deprecations-4413fefd.cjs.js → list-deprecations-6f3e6ecc.cjs.js} +6 -6
  30. package/dist/cjs/{index/new-8be05be5.cjs.js → new-22b86d62.cjs.js} +22 -21
  31. package/dist/cjs/{index/pack-f16d52a7.cjs.js → pack-889d7ba2.cjs.js} +4 -4
  32. package/dist/cjs/{index/packageExports-7d9657bc.cjs.js → packageExports-833dbc8f.cjs.js} +6 -6
  33. package/dist/cjs/{index/packageLintConfigs-13a336dd.cjs.js → packageLintConfigs-8fe7a3aa.cjs.js} +6 -6
  34. package/dist/cjs/{index/packageRole-0687b5de.cjs.js → packageRole-8cd65354.cjs.js} +3 -3
  35. package/dist/cjs/{index/packageRoles-54e27ede.cjs.js → packageRoles-2426a6db.cjs.js} +2 -2
  36. package/dist/cjs/{index/packageScripts-fe4c5394.cjs.js → packageScripts-c4254268.cjs.js} +7 -7
  37. package/dist/cjs/{index/packages-09267997.cjs.js → packages-a37412df.cjs.js} +4 -4
  38. package/dist/cjs/{index/parallel-4af834f6.cjs.js → parallel-a8f6219c.cjs.js} +1 -1
  39. package/dist/cjs/{index/paths-a7d52d4f.cjs.js → paths-8b62e6d3.cjs.js} +5 -5
  40. package/dist/cjs/{index/print-077f44be.cjs.js → print-fefcaeda.cjs.js} +7 -7
  41. package/dist/cjs/{index/productionPack-2038bfcf.cjs.js → productionPack-fdf62126.cjs.js} +8 -8
  42. package/dist/cjs/{index/reactRouterDeps-844874fe.cjs.js → reactRouterDeps-2735b871.cjs.js} +7 -7
  43. package/dist/cjs/{index/run-eac5f3ab.cjs.js → run-7b3a246f.cjs.js} +2 -2
  44. package/dist/cjs/{index/schema-6314e4c8.cjs.js → schema-aa8288ac.cjs.js} +7 -7
  45. package/dist/cjs/{index/svgrTemplate-d1dad6d3.cjs.js → svgrTemplate-550efce6.cjs.js} +1 -1
  46. package/dist/cjs/{index/tasks-6771fb2c.cjs.js → tasks-84de240c.cjs.js} +4 -85
  47. package/dist/cjs/{index/test-a49240ec.cjs.js → test-8a770121.cjs.js} +3 -3
  48. package/dist/cjs/{index/test-364cf6e1.cjs.js → test-fdfd38cf.cjs.js} +6 -6
  49. package/dist/cjs/{index/validate-3f8e5d78.cjs.js → validate-0f9243f2.cjs.js} +7 -7
  50. package/dist/cjs/{index/yarn-8315d2ff.cjs.js → yarn-6cd89e16.cjs.js} +1 -1
  51. package/dist/index.cjs.js +1 -1
  52. package/package.json +12 -10
  53. package/templates/default-plugin/package.json.hbs +1 -1
@@ -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";
49
+ var version$a = "0.18.4-next.1";
50
50
 
51
- var version$9 = "0.22.5";
51
+ var version$9 = "0.22.6-next.1";
52
52
  var dependencies = {
53
53
  "@backstage/cli-common": "workspace:^",
54
54
  "@backstage/config": "workspace:^",
@@ -59,6 +59,7 @@ var dependencies = {
59
59
  "@backstage/types": "workspace:^",
60
60
  "@esbuild-kit/cjs-loader": "^2.4.1",
61
61
  "@manypkg/get-packages": "^1.1.3",
62
+ "@octokit/oauth-app": "^4.2.0",
62
63
  "@octokit/request": "^6.0.0",
63
64
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
64
65
  "@rollup/plugin-commonjs": "^23.0.0",
@@ -69,6 +70,7 @@ var dependencies = {
69
70
  "@spotify/eslint-config-react": "^14.0.0",
70
71
  "@spotify/eslint-config-typescript": "^14.0.0",
71
72
  "@sucrase/webpack-loader": "^2.0.0",
73
+ "@svgr/core": "6.5.x",
72
74
  "@svgr/plugin-jsx": "6.5.x",
73
75
  "@svgr/plugin-svgo": "6.5.x",
74
76
  "@svgr/rollup": "6.5.x",
@@ -147,7 +149,7 @@ var dependencies = {
147
149
  yaml: "^2.0.0",
148
150
  "yml-loader": "^2.1.0",
149
151
  yn: "^4.0.0",
150
- zod: "~3.18.0"
152
+ zod: "^3.21.4"
151
153
  };
152
154
  var devDependencies = {
153
155
  "@backstage/backend-common": "workspace:^",
@@ -184,19 +186,19 @@ var devDependencies = {
184
186
 
185
187
  var version$8 = "1.0.7";
186
188
 
187
- var version$7 = "1.6.0";
189
+ var version$7 = "1.7.0-next.1";
188
190
 
189
- var version$6 = "0.12.5";
191
+ var version$6 = "0.12.6-next.1";
190
192
 
191
- var version$5 = "1.5.0";
193
+ var version$5 = "1.5.1-next.0";
192
194
 
193
- var version$4 = "1.0.13";
195
+ var version$4 = "1.0.14-next.1";
194
196
 
195
- var version$3 = "1.2.6";
197
+ var version$3 = "1.3.0-next.1";
196
198
 
197
- var version$2 = "0.2.18";
199
+ var version$2 = "0.2.19-next.0";
198
200
 
199
- var version$1 = "1.12.0";
201
+ var version$1 = "1.13.0-next.1";
200
202
 
201
203
  const packageVersions = {
202
204
  "@backstage/backend-common": version$a,
@@ -257,6 +259,9 @@ const configOption = [
257
259
  (opt, opts) => opts ? [...opts, opt] : [opt],
258
260
  Array()
259
261
  ];
262
+ function registerOnboardCommand(program) {
263
+ program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-9b9f70f2.cjs.js'); }).then((m) => m.command)));
264
+ }
260
265
  function registerRepoCommand(program) {
261
266
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
262
267
  command.command("build").description(
@@ -267,7 +272,7 @@ function registerRepoCommand(program) {
267
272
  ).option(
268
273
  "--since <ref>",
269
274
  "Only build packages and their dev dependents that changed since the specified ref"
270
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-994f0f45.cjs.js'); }).then((m) => m.command)));
275
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-34419958.cjs.js'); }).then((m) => m.command)));
271
276
  command.command("lint").description("Lint all packages in the project").option(
272
277
  "--format <format>",
273
278
  "Lint report output format",
@@ -275,10 +280,10 @@ function registerRepoCommand(program) {
275
280
  ).option(
276
281
  "--since <ref>",
277
282
  "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-9dba226e.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-cd01f9dc.cjs.js'); }).then((m) => m.command)));
283
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-6eacc0e3.cjs.js'); }).then((m) => m.command)));
284
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-117c06e8.cjs.js'); }).then((m) => m.command)));
280
285
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
281
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-4413fefd.cjs.js'); }).then((m) => m.command))
286
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-6f3e6ecc.cjs.js'); }).then((m) => m.command))
282
287
  );
283
288
  command.command("test").allowUnknownOption(true).option(
284
289
  "--since <ref>",
@@ -286,14 +291,14 @@ function registerRepoCommand(program) {
286
291
  ).option(
287
292
  "--jest-help",
288
293
  "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-364cf6e1.cjs.js'); }).then((m) => m.command)));
294
+ ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-fdfd38cf.cjs.js'); }).then((m) => m.command)));
290
295
  }
291
296
  function registerScriptCommand(program) {
292
297
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
293
298
  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
299
  "--inspect-brk",
295
300
  "Enable debugger in Node.js environments, breaking before code starts"
296
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-58c4e51a.cjs.js'); }).then((m) => m.command)));
301
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-62a9824e.cjs.js'); }).then((m) => m.command)));
297
302
  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
303
  "--minify",
299
304
  "Minify the generated code. Does not apply to app or backend packages."
@@ -311,36 +316,36 @@ function registerScriptCommand(program) {
311
316
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
312
317
  (opt, opts) => opts ? [...opts, opt] : [opt],
313
318
  Array()
314
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-7bc3de78.cjs.js'); }).then((m) => m.command)));
319
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-9ec09897.cjs.js'); }).then((m) => m.command)));
315
320
  command.command("lint [directories...]").option(
316
321
  "--format <format>",
317
322
  "Lint report output format",
318
323
  "eslint-formatter-friendly"
319
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-3d8a5df3.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-a49240ec.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-2a45060f.cjs.js'); }).then((m) => m.command)));
322
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-7292aa76.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-f16d52a7.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-f16d52a7.cjs.js'); }).then((m) => m.post)));
324
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-02158235.cjs.js'); }).then((m) => m.default)));
325
+ 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-8a770121.cjs.js'); }).then((m) => m.default)));
326
+ 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-33ec227b.cjs.js'); }).then((m) => m.command)));
327
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-10f71978.cjs.js'); }).then((m) => m.default)));
328
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-889d7ba2.cjs.js'); }).then((m) => m.pre)));
329
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-889d7ba2.cjs.js'); }).then((m) => m.post)));
325
330
  }
326
331
  function registerMigrateCommand(program) {
327
332
  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-0687b5de.cjs.js'); }).then((m) => m.default)));
333
+ 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-8cd65354.cjs.js'); }).then((m) => m.default)));
329
334
  command.command("package-scripts").description("Set package scripts according to each package role").action(
330
- lazy(() => Promise.resolve().then(function () { return require('./packageScripts-fe4c5394.cjs.js'); }).then((m) => m.command))
335
+ lazy(() => Promise.resolve().then(function () { return require('./packageScripts-c4254268.cjs.js'); }).then((m) => m.command))
331
336
  );
332
337
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
333
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-7d9657bc.cjs.js'); }).then((m) => m.command))
338
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-833dbc8f.cjs.js'); }).then((m) => m.command))
334
339
  );
335
340
  command.command("package-lint-configs").description(
336
341
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
337
342
  ).action(
338
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-13a336dd.cjs.js'); }).then((m) => m.command))
343
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-8fe7a3aa.cjs.js'); }).then((m) => m.command))
339
344
  );
340
345
  command.command("react-router-deps").description(
341
346
  "Migrates the react-router dependencies for all packages to be peer dependencies"
342
347
  ).action(
343
- lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-844874fe.cjs.js'); }).then((m) => m.command))
348
+ lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-2735b871.cjs.js'); }).then((m) => m.command))
344
349
  );
345
350
  }
346
351
  function registerCommands(program) {
@@ -360,7 +365,7 @@ function registerCommands(program) {
360
365
  ).option(
361
366
  "--baseVersion <version>",
362
367
  "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-8be05be5.cjs.js'); }).then((m) => m.default)));
368
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-22b86d62.cjs.js'); }).then((m) => m.default)));
364
369
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
365
370
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
366
371
  ).option(
@@ -374,46 +379,47 @@ function registerCommands(program) {
374
379
  ).option("--scope <scope>", "The scope to use for new packages").option(
375
380
  "--npm-registry <URL>",
376
381
  "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-8be05be5.cjs.js'); }).then((m) => m.default)));
382
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-22b86d62.cjs.js'); }).then((m) => m.default)));
378
383
  program.command("create-plugin", { hidden: true }).option(
379
384
  "--backend",
380
385
  "Create plugin with the backend dependencies as default"
381
386
  ).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-563b25e0.cjs.js'); }).then((m) => m.default))
387
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-260d865c.cjs.js'); }).then((m) => m.default))
383
388
  );
384
389
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
385
390
  "Diff an existing plugin with the creation template [DEPRECATED]"
386
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-07d125d5.cjs.js'); }).then((m) => m.default)));
391
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-a63619b7.cjs.js'); }).then((m) => m.default)));
387
392
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
388
393
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
389
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-a49240ec.cjs.js'); }).then((m) => m.default)));
394
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-8a770121.cjs.js'); }).then((m) => m.default)));
390
395
  program.command("config:docs").option(
391
396
  "--package <name>",
392
397
  "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-d67987f6.cjs.js'); }).then((m) => m.default)));
398
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-aebd654b.cjs.js'); }).then((m) => m.default)));
394
399
  program.command("config:print").option(
395
400
  "--package <name>",
396
401
  "Only load config schema that applies to the given package"
397
402
  ).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
403
  "--format <format>",
399
404
  "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-077f44be.cjs.js'); }).then((m) => m.default)));
405
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-fefcaeda.cjs.js'); }).then((m) => m.default)));
401
406
  program.command("config:check").option(
402
407
  "--package <name>",
403
408
  "Only load config schema that applies to the given package"
404
409
  ).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
410
  "Validate that the given configuration loads and matches schema"
406
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-3f8e5d78.cjs.js'); }).then((m) => m.default)));
411
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-0f9243f2.cjs.js'); }).then((m) => m.default)));
407
412
  program.command("config:schema").option(
408
413
  "--package <name>",
409
414
  "Only output config schema that applies to the given package"
410
415
  ).option(
411
416
  "--format <format>",
412
417
  "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-6314e4c8.cjs.js'); }).then((m) => m.default)));
418
+ ).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-aa8288ac.cjs.js'); }).then((m) => m.default)));
414
419
  registerRepoCommand(program);
415
420
  registerScriptCommand(program);
416
421
  registerMigrateCommand(program);
422
+ registerOnboardCommand(program);
417
423
  program.command("versions:bump").option(
418
424
  "--pattern <glob>",
419
425
  "Override glob for matching packages to upgrade"
@@ -421,16 +427,16 @@ function registerCommands(program) {
421
427
  "--release <version|next|main>",
422
428
  "Bump to a specific Backstage release line or version",
423
429
  "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-cebb4e25.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-8cdaff63.cjs.js'); }).then((m) => m.default)));
426
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-7292aa76.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-62f3c38b.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-9a88f8b3.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-72504c62.cjs.js'); }).then((m) => m.default)));
430
+ ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-ba095aea.cjs.js'); }).then((m) => m.default)));
431
+ 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-39049bc2.cjs.js'); }).then((m) => m.default)));
432
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-10f71978.cjs.js'); }).then((m) => m.default)));
433
+ 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-e1dd2931.cjs.js'); }).then((m) => m.default)));
434
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-44665fb9.cjs.js'); }).then((m) => m.default)));
435
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-b05d5cf7.cjs.js'); }).then((m) => m.default)));
430
436
  program.command("install [plugin-id]", { hidden: true }).option(
431
437
  "--from <packageJsonFilePath>",
432
438
  "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-f459a872.cjs.js'); }).then((m) => m.default)));
439
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-3f29c0fc.cjs.js'); }).then((m) => m.default)));
434
440
  }
435
441
  function lazy(getActionFunc) {
436
442
  return async (...args) => {
@@ -474,4 +480,4 @@ exports.devDependencies = devDependencies;
474
480
  exports.paths = paths;
475
481
  exports.version = version;
476
482
  exports.version$1 = version$9;
477
- //# sourceMappingURL=index-d2845aa8.cjs.js.map
483
+ //# sourceMappingURL=index-ca8e3b96.cjs.js.map
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-d2845aa8.cjs.js');
3
+ var index = require('./index-ca8e3b96.cjs.js');
4
4
  var os = require('os');
5
- var run = require('./run-eac5f3ab.cjs.js');
6
- var Lockfile = require('./Lockfile-e5943b84.cjs.js');
5
+ var run = require('./run-7b3a246f.cjs.js');
6
+ var Lockfile = require('./Lockfile-bc3a8337.cjs.js');
7
7
  require('minimatch');
8
8
  require('@manypkg/get-packages');
9
9
  require('chalk');
10
- require('./yarn-8315d2ff.cjs.js');
10
+ require('./yarn-6cd89e16.cjs.js');
11
11
  var fs = require('fs-extra');
12
12
  require('commander');
13
13
  require('semver');
@@ -58,4 +58,4 @@ var info = async () => {
58
58
  };
59
59
 
60
60
  exports["default"] = info;
61
- //# sourceMappingURL=info-72504c62.cjs.js.map
61
+ //# sourceMappingURL=info-b05d5cf7.cjs.js.map
@@ -4,15 +4,15 @@ var fs = require('fs-extra');
4
4
  require('semver');
5
5
  require('@yarnpkg/parsers');
6
6
  require('@yarnpkg/lockfile');
7
- var packages = require('./packages-09267997.cjs.js');
8
- var index = require('./index-d2845aa8.cjs.js');
7
+ var packages = require('./packages-a37412df.cjs.js');
8
+ var index = require('./index-ca8e3b96.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-eac5f3ab.cjs.js');
12
+ var run = require('./run-7b3a246f.cjs.js');
13
13
  require('minimatch');
14
14
  require('@manypkg/get-packages');
15
- require('./yarn-8315d2ff.cjs.js');
15
+ require('./yarn-6cd89e16.cjs.js');
16
16
  require('@backstage/errors');
17
17
  require('child_process');
18
18
  require('util');
@@ -268,4 +268,4 @@ var install = async (pluginId, cmd) => {
268
268
  };
269
269
 
270
270
  exports["default"] = install;
271
- //# sourceMappingURL=install-f459a872.cjs.js.map
271
+ //# sourceMappingURL=install-3f29c0fc.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-d2845aa8.cjs.js');
3
+ var index = require('./index-ca8e3b96.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-3d8a5df3.cjs.js.map
36
+ //# sourceMappingURL=lint-02158235.cjs.js.map
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var Lockfile = require('./Lockfile-e5943b84.cjs.js');
3
+ var Lockfile = require('./Lockfile-bc3a8337.cjs.js');
4
4
  require('minimatch');
5
5
  require('@manypkg/get-packages');
6
6
  require('chalk');
7
- require('./yarn-8315d2ff.cjs.js');
8
- require('./run-eac5f3ab.cjs.js');
9
- var index = require('./index-d2845aa8.cjs.js');
7
+ require('./yarn-6cd89e16.cjs.js');
8
+ require('./run-7b3a246f.cjs.js');
9
+ var index = require('./index-ca8e3b96.cjs.js');
10
10
  var partition = require('lodash/partition');
11
- var PackageGraph = require('./PackageGraph-84e587f4.cjs.js');
11
+ var PackageGraph = require('./PackageGraph-2eb22088.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-8cdaff63.cjs.js.map
116
+ //# sourceMappingURL=lint-39049bc2.cjs.js.map
@@ -2,21 +2,21 @@
2
2
 
3
3
  var chalk = require('chalk');
4
4
  var path = require('path');
5
- var PackageGraph = require('./PackageGraph-84e587f4.cjs.js');
6
- var parallel = require('./parallel-4af834f6.cjs.js');
7
- var index = require('./index-d2845aa8.cjs.js');
5
+ var PackageGraph = require('./PackageGraph-2eb22088.cjs.js');
6
+ var parallel = require('./parallel-a8f6219c.cjs.js');
7
+ var index = require('./index-ca8e3b96.cjs.js');
8
8
  require('@manypkg/get-packages');
9
9
  require('@backstage/errors');
10
10
  require('child_process');
11
11
  require('util');
12
- require('./Lockfile-e5943b84.cjs.js');
12
+ require('./Lockfile-bc3a8337.cjs.js');
13
13
  require('fs-extra');
14
14
  require('semver');
15
15
  require('@yarnpkg/parsers');
16
16
  require('@yarnpkg/lockfile');
17
17
  require('minimatch');
18
- require('./yarn-8315d2ff.cjs.js');
19
- require('./run-eac5f3ab.cjs.js');
18
+ require('./yarn-6cd89e16.cjs.js');
19
+ require('./run-7b3a246f.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-9dba226e.cjs.js.map
100
+ //# sourceMappingURL=lint-6eacc0e3.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-d2845aa8.cjs.js');
7
- var PackageGraph = require('./PackageGraph-84e587f4.cjs.js');
6
+ var index = require('./index-ca8e3b96.cjs.js');
7
+ var PackageGraph = require('./PackageGraph-2eb22088.cjs.js');
8
8
  require('commander');
9
9
  require('fs-extra');
10
10
  require('semver');
@@ -13,12 +13,12 @@ require('@backstage/errors');
13
13
  require('@manypkg/get-packages');
14
14
  require('child_process');
15
15
  require('util');
16
- require('./Lockfile-e5943b84.cjs.js');
16
+ require('./Lockfile-bc3a8337.cjs.js');
17
17
  require('@yarnpkg/parsers');
18
18
  require('@yarnpkg/lockfile');
19
19
  require('minimatch');
20
- require('./yarn-8315d2ff.cjs.js');
21
- require('./run-eac5f3ab.cjs.js');
20
+ require('./yarn-6cd89e16.cjs.js');
21
+ require('./run-7b3a246f.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-4413fefd.cjs.js.map
88
+ //# sourceMappingURL=list-deprecations-6f3e6ecc.cjs.js.map
@@ -7,13 +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-d2845aa8.cjs.js');
11
- var tasks = require('./tasks-6771fb2c.cjs.js');
12
- var Lockfile = require('./Lockfile-e5943b84.cjs.js');
10
+ var index = require('./index-ca8e3b96.cjs.js');
11
+ var codeowners = require('./codeowners-ec774f58.cjs.js');
12
+ var tasks = require('./tasks-84de240c.cjs.js');
13
+ var Lockfile = require('./Lockfile-bc3a8337.cjs.js');
13
14
  require('minimatch');
14
15
  require('@manypkg/get-packages');
15
- require('./yarn-8315d2ff.cjs.js');
16
- require('./run-eac5f3ab.cjs.js');
16
+ require('./yarn-6cd89e16.cjs.js');
17
+ require('./run-7b3a246f.cjs.js');
17
18
  var partition = require('lodash/partition');
18
19
  var errors = require('@backstage/errors');
19
20
  require('commander');
@@ -66,7 +67,7 @@ function ownerPrompt() {
66
67
  if (!value) {
67
68
  return true;
68
69
  }
69
- const ownerIds = tasks.parseOwnerIds(value);
70
+ const ownerIds = codeowners.parseOwnerIds(value);
70
71
  if (!ownerIds) {
71
72
  return "The owner must be a space separated list of team names (e.g. @org/team-name), usernames (e.g. @username), or the email addresses (e.g. user@example.com).";
72
73
  }
@@ -124,7 +125,7 @@ const frontendPlugin = createFactory({
124
125
  name: "plugin",
125
126
  description: "A new frontend plugin",
126
127
  optionsDiscovery: async () => ({
127
- codeOwnersPath: await tasks.getCodeownersFilePath(index.paths.targetRoot)
128
+ codeOwnersPath: await codeowners.getCodeownersFilePath(index.paths.targetRoot)
128
129
  }),
129
130
  optionsPrompts: [pluginIdPrompt(), ownerPrompt()],
130
131
  async create(options, ctx) {
@@ -190,7 +191,7 @@ const frontendPlugin = createFactory({
190
191
  });
191
192
  }
192
193
  if (options.owner) {
193
- await tasks.addCodeownersEntry(`/plugins/${id}`, options.owner);
194
+ await codeowners.addCodeownersEntry(`/plugins/${id}`, options.owner);
194
195
  }
195
196
  await tasks.Task.forCommand("yarn install", { cwd: targetDir, optional: true });
196
197
  await tasks.Task.forCommand("yarn lint --fix", {
@@ -204,7 +205,7 @@ const backendPlugin = createFactory({
204
205
  name: "backend-plugin",
205
206
  description: "A new backend plugin",
206
207
  optionsDiscovery: async () => ({
207
- codeOwnersPath: await tasks.getCodeownersFilePath(index.paths.targetRoot)
208
+ codeOwnersPath: await codeowners.getCodeownersFilePath(index.paths.targetRoot)
208
209
  }),
209
210
  optionsPrompts: [pluginIdPrompt(), ownerPrompt()],
210
211
  async create(options, ctx) {
@@ -239,7 +240,7 @@ const backendPlugin = createFactory({
239
240
  });
240
241
  }
241
242
  if (options.owner) {
242
- await tasks.addCodeownersEntry(`/plugins/${id}`, options.owner);
243
+ await codeowners.addCodeownersEntry(`/plugins/${id}`, options.owner);
243
244
  }
244
245
  await tasks.Task.forCommand("yarn install", { cwd: targetDir, optional: true });
245
246
  await tasks.Task.forCommand("yarn lint --fix", {
@@ -253,7 +254,7 @@ const webLibraryPackage = createFactory({
253
254
  name: "web-library",
254
255
  description: "A new web-library package",
255
256
  optionsDiscovery: async () => ({
256
- codeOwnersPath: await tasks.getCodeownersFilePath(index.paths.targetRoot)
257
+ codeOwnersPath: await codeowners.getCodeownersFilePath(index.paths.targetRoot)
257
258
  }),
258
259
  optionsPrompts: [pluginIdPrompt(), ownerPrompt()],
259
260
  async create(options, ctx) {
@@ -274,7 +275,7 @@ const webLibraryPackage = createFactory({
274
275
  }
275
276
  });
276
277
  if (options.owner) {
277
- await tasks.addCodeownersEntry(`/packages/${id}`, options.owner);
278
+ await codeowners.addCodeownersEntry(`/packages/${id}`, options.owner);
278
279
  }
279
280
  await tasks.Task.forCommand("yarn install", { cwd: targetDir, optional: true });
280
281
  await tasks.Task.forCommand("yarn lint --fix", {
@@ -288,7 +289,7 @@ const pluginCommon = createFactory({
288
289
  name: "plugin-common",
289
290
  description: "A new isomorphic common plugin package",
290
291
  optionsDiscovery: async () => ({
291
- codeOwnersPath: await tasks.getCodeownersFilePath(index.paths.targetRoot)
292
+ codeOwnersPath: await codeowners.getCodeownersFilePath(index.paths.targetRoot)
292
293
  }),
293
294
  optionsPrompts: [pluginIdPrompt(), ownerPrompt()],
294
295
  async create(options, ctx) {
@@ -310,7 +311,7 @@ const pluginCommon = createFactory({
310
311
  }
311
312
  });
312
313
  if (options.owner) {
313
- await tasks.addCodeownersEntry(`/plugins/${suffix}`, options.owner);
314
+ await codeowners.addCodeownersEntry(`/plugins/${suffix}`, options.owner);
314
315
  }
315
316
  await tasks.Task.forCommand("yarn install", { cwd: targetDir, optional: true });
316
317
  await tasks.Task.forCommand("yarn lint --fix", {
@@ -324,7 +325,7 @@ const pluginNode = createFactory({
324
325
  name: "plugin-node",
325
326
  description: "A new Node.js library plugin package",
326
327
  optionsDiscovery: async () => ({
327
- codeOwnersPath: await tasks.getCodeownersFilePath(index.paths.targetRoot)
328
+ codeOwnersPath: await codeowners.getCodeownersFilePath(index.paths.targetRoot)
328
329
  }),
329
330
  optionsPrompts: [pluginIdPrompt(), ownerPrompt()],
330
331
  async create(options, ctx) {
@@ -346,7 +347,7 @@ const pluginNode = createFactory({
346
347
  }
347
348
  });
348
349
  if (options.owner) {
349
- await tasks.addCodeownersEntry(`/plugins/${suffix}`, options.owner);
350
+ await codeowners.addCodeownersEntry(`/plugins/${suffix}`, options.owner);
350
351
  }
351
352
  await tasks.Task.forCommand("yarn install", { cwd: targetDir, optional: true });
352
353
  await tasks.Task.forCommand("yarn lint --fix", {
@@ -360,7 +361,7 @@ const pluginWeb = createFactory({
360
361
  name: "plugin-react",
361
362
  description: "A new web library plugin package",
362
363
  optionsDiscovery: async () => ({
363
- codeOwnersPath: await tasks.getCodeownersFilePath(index.paths.targetRoot)
364
+ codeOwnersPath: await codeowners.getCodeownersFilePath(index.paths.targetRoot)
364
365
  }),
365
366
  optionsPrompts: [pluginIdPrompt(), ownerPrompt()],
366
367
  async create(options, ctx) {
@@ -382,7 +383,7 @@ const pluginWeb = createFactory({
382
383
  }
383
384
  });
384
385
  if (options.owner) {
385
- await tasks.addCodeownersEntry(`/plugins/${suffix}`, options.owner);
386
+ await codeowners.addCodeownersEntry(`/plugins/${suffix}`, options.owner);
386
387
  }
387
388
  await tasks.Task.forCommand("yarn install", { cwd: targetDir, optional: true });
388
389
  await tasks.Task.forCommand("yarn lint --fix", {
@@ -396,7 +397,7 @@ const scaffolderModule = createFactory({
396
397
  name: "scaffolder-module",
397
398
  description: "An module exporting custom actions for @backstage/plugin-scaffolder-backend",
398
399
  optionsDiscovery: async () => ({
399
- codeOwnersPath: await tasks.getCodeownersFilePath(index.paths.targetRoot)
400
+ codeOwnersPath: await codeowners.getCodeownersFilePath(index.paths.targetRoot)
400
401
  }),
401
402
  optionsPrompts: [
402
403
  {
@@ -440,7 +441,7 @@ const scaffolderModule = createFactory({
440
441
  }
441
442
  });
442
443
  if (options.owner) {
443
- await tasks.addCodeownersEntry(`/plugins/${slug}`, options.owner);
444
+ await codeowners.addCodeownersEntry(`/plugins/${slug}`, options.owner);
444
445
  }
445
446
  await tasks.Task.forCommand("yarn install", { cwd: targetDir, optional: true });
446
447
  await tasks.Task.forCommand("yarn lint --fix", {
@@ -634,4 +635,4 @@ var _new = async (opts) => {
634
635
  };
635
636
 
636
637
  exports["default"] = _new;
637
- //# sourceMappingURL=new-8be05be5.cjs.js.map
638
+ //# sourceMappingURL=new-22b86d62.cjs.js.map
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var productionPack = require('./productionPack-2038bfcf.cjs.js');
4
- var index = require('./index-d2845aa8.cjs.js');
3
+ var productionPack = require('./productionPack-fdf62126.cjs.js');
4
+ var index = require('./index-ca8e3b96.cjs.js');
5
5
  require('fs-extra');
6
6
  require('npm-packlist');
7
7
  require('path');
8
- require('./entryPoints-e81a0dba.cjs.js');
8
+ require('./entryPoints-5e73783d.cjs.js');
9
9
  require('commander');
10
10
  require('chalk');
11
11
  require('semver');
@@ -21,4 +21,4 @@ const post = async () => {
21
21
 
22
22
  exports.post = post;
23
23
  exports.pre = pre;
24
- //# sourceMappingURL=pack-f16d52a7.cjs.js.map
24
+ //# sourceMappingURL=pack-889d7ba2.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-84e587f4.cjs.js');
5
+ var PackageGraph = require('./PackageGraph-2eb22088.cjs.js');
6
6
  require('@manypkg/get-packages');
7
- require('./index-d2845aa8.cjs.js');
7
+ require('./index-ca8e3b96.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('semver');
@@ -12,12 +12,12 @@ require('@backstage/cli-common');
12
12
  require('@backstage/errors');
13
13
  require('child_process');
14
14
  require('util');
15
- require('./Lockfile-e5943b84.cjs.js');
15
+ require('./Lockfile-bc3a8337.cjs.js');
16
16
  require('@yarnpkg/parsers');
17
17
  require('@yarnpkg/lockfile');
18
18
  require('minimatch');
19
- require('./yarn-8315d2ff.cjs.js');
20
- require('./run-eac5f3ab.cjs.js');
19
+ require('./yarn-6cd89e16.cjs.js');
20
+ require('./run-7b3a246f.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-7d9657bc.cjs.js.map
108
+ //# sourceMappingURL=packageExports-833dbc8f.cjs.js.map