@backstage/cli 0.25.3-next.2 → 0.26.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 (62) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/bin/backstage-cli +1 -9
  3. package/config/jest.js +1 -1
  4. package/config/nodeTransform.cjs +45 -0
  5. package/dist/cjs/{Lockfile-eced6070.cjs.js → Lockfile-C7rtIlD6.cjs.js} +13 -13
  6. package/dist/cjs/{build-8382b8d8.cjs.js → build-CwpT6bF2.cjs.js} +18 -16
  7. package/dist/cjs/{buildBackend-8dad4184.cjs.js → buildBackend-DA1sPj38.cjs.js} +39 -37
  8. package/dist/cjs/{buildWorkspace-65108f13.cjs.js → buildWorkspace-C1SYLOri.cjs.js} +13 -12
  9. package/dist/cjs/{bump-7eb29899.cjs.js → bump-CeCdrJTX.cjs.js} +38 -38
  10. package/dist/cjs/{clean-da51bc11.cjs.js → clean-Cv8IvozP.cjs.js} +10 -10
  11. package/dist/cjs/clean-DM4n37HU.cjs.js +22 -0
  12. package/dist/cjs/{codeowners-20b953b3.cjs.js → codeowners-D7pqDS5v.cjs.js} +12 -12
  13. package/dist/cjs/{config-56e0de04.cjs.js → config-30A1doGp.cjs.js} +2 -2
  14. package/dist/cjs/{createDistWorkspace-030a024c.cjs.js → createDistWorkspace-BGiN72e4.cjs.js} +57 -54
  15. package/dist/cjs/{createPlugin-204e49d9.cjs.js → createPlugin-CwxnrMzx.cjs.js} +41 -41
  16. package/dist/cjs/{diff-7d8597da.cjs.js → diff-D3wUBD1R.cjs.js} +27 -27
  17. package/dist/cjs/{docs-f78c80fc.cjs.js → docs-Cvi9d_ZX.cjs.js} +7 -7
  18. package/dist/cjs/{entryPoints-0cc55995.cjs.js → entryPoints-CoHH4lBA.cjs.js} +1 -1
  19. package/dist/cjs/{fix-d22e0b11.cjs.js → fix-Bea3_Noa.cjs.js} +5 -5
  20. package/dist/cjs/{index-09d2153b.cjs.js → index-D3oMtC-Y.cjs.js} +16 -14
  21. package/dist/cjs/{index-e1de5c59.cjs.js → index-DY45BN_5.cjs.js} +94 -81
  22. package/dist/cjs/{index-9544d932.cjs.js → index-DvRrNqwO.cjs.js} +56 -57
  23. package/dist/cjs/{index-edd730f9.cjs.js → index-nDVbtUZr.cjs.js} +27 -27
  24. package/dist/cjs/{index-9063098c.cjs.js → index-sM4O9JuD.cjs.js} +64 -72
  25. package/dist/cjs/{info-1f294f45.cjs.js → info-RFihkADz.cjs.js} +13 -13
  26. package/dist/cjs/{install-673dc92b.cjs.js → install-DoqtVqrm.cjs.js} +19 -19
  27. package/dist/cjs/{lint-8300340a.cjs.js → lint-BR_vl9_l.cjs.js} +6 -6
  28. package/dist/cjs/{lint-ba008767.cjs.js → lint-C7Wrrowb.cjs.js} +10 -10
  29. package/dist/cjs/{lint-b802a7cd.cjs.js → lint-YPKovWFd.cjs.js} +3 -3
  30. package/dist/cjs/{list-deprecations-e2ee5969.cjs.js → list-deprecations-BSHe0Jb3.cjs.js} +5 -5
  31. package/dist/cjs/{new-c58b4036.cjs.js → new-C_MIBxr7.cjs.js} +54 -54
  32. package/dist/cjs/{pack-50caa243.cjs.js → pack-CsV2iPfV.cjs.js} +4 -4
  33. package/dist/cjs/{packageDetection-4743318d.cjs.js → packageDetection-pUH1daGF.cjs.js} +48 -45
  34. package/dist/cjs/{packageExports-a1441001.cjs.js → packageExports-B8ow9_g8.cjs.js} +3 -3
  35. package/dist/cjs/{packageLintConfigs-d64c7abd.cjs.js → packageLintConfigs-DU8CUxDG.cjs.js} +8 -8
  36. package/dist/cjs/{packageRole-dac636ac.cjs.js → packageRole-BPygF5yd.cjs.js} +6 -6
  37. package/dist/cjs/{packageScripts-bb7b6de2.cjs.js → packageScripts-CPnlPBBs.cjs.js} +4 -4
  38. package/dist/cjs/{packages-6d977cf6.cjs.js → packages-BlHOrEEW.cjs.js} +4 -4
  39. package/dist/cjs/{parallel-2d9d247e.cjs.js → parallel-BszNaKyc.cjs.js} +4 -4
  40. package/dist/cjs/{print-6b92e96e.cjs.js → print-DoEMvoPB.cjs.js} +4 -4
  41. package/dist/cjs/{productionPack-8b9ac9b7.cjs.js → productionPack-DotlEIE2.cjs.js} +19 -19
  42. package/dist/cjs/{reactRouterDeps-a2bb1d62.cjs.js → reactRouterDeps-BBKc6o07.cjs.js} +4 -4
  43. package/dist/cjs/{role-a4d0fea7.cjs.js → role-C2mHZAQE.cjs.js} +5 -5
  44. package/dist/cjs/{run-d7eebc11.cjs.js → run-DdHCwSFu.cjs.js} +2 -2
  45. package/dist/cjs/{schema-4835d534.cjs.js → schema-BC3xv-Rs.cjs.js} +4 -4
  46. package/dist/cjs/{svgrTemplate-3549ea1c.cjs.js → svgrTemplate-BTjBQ3by.cjs.js} +1 -1
  47. package/dist/cjs/{tasks-84de240c.cjs.js → tasks-mGXy8WjR.cjs.js} +23 -23
  48. package/dist/cjs/{test-5db6618e.cjs.js → test-CE3ZjSss.cjs.js} +6 -6
  49. package/dist/cjs/{test-7743a73f.cjs.js → test-dJeJGdt8.cjs.js} +4 -4
  50. package/dist/cjs/{validate-beb5d30e.cjs.js → validate-BsyK7u74.cjs.js} +4 -4
  51. package/dist/cjs/{yarn-6cd89e16.cjs.js → yarn-BDZCENk5.cjs.js} +1 -1
  52. package/dist/index.cjs.js +1 -1
  53. package/package.json +30 -26
  54. package/templates/default-backend-plugin/dev/index.ts +9 -0
  55. package/templates/default-backend-plugin/package.json.hbs +4 -0
  56. package/templates/default-backend-plugin/src/index.ts.hbs +2 -0
  57. package/templates/default-backend-plugin/src/plugin.ts.hbs +32 -0
  58. package/templates/default-backend-plugin/src/service/router.ts +3 -2
  59. package/dist/cjs/clean-5afc7d48.cjs.js +0 -22
  60. package/templates/default-backend-plugin/src/index.ts +0 -1
  61. package/templates/default-backend-plugin/src/run.ts.hbs +0 -17
  62. package/templates/default-backend-plugin/src/service/standaloneServer.ts.hbs +0 -34
@@ -7,11 +7,11 @@ var semver = require('semver');
7
7
  var cliCommon = require('@backstage/cli-common');
8
8
  var errors = require('@backstage/errors');
9
9
 
10
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
11
11
 
12
- var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
13
- var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
14
- var semver__default = /*#__PURE__*/_interopDefaultLegacy(semver);
12
+ var chalk__default = /*#__PURE__*/_interopDefaultCompat(chalk);
13
+ var fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
14
+ var semver__default = /*#__PURE__*/_interopDefaultCompat(semver);
15
15
 
16
16
  var __defProp = Object.defineProperty;
17
17
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -36,13 +36,13 @@ class ExitCodeError extends CustomError {
36
36
  function exitWithError(error) {
37
37
  if (error instanceof ExitCodeError) {
38
38
  process.stderr.write(`
39
- ${chalk__default["default"].red(error.message)}
39
+ ${chalk__default.default.red(error.message)}
40
40
 
41
41
  `);
42
42
  process.exit(error.code);
43
43
  } else {
44
44
  process.stderr.write(`
45
- ${chalk__default["default"].red(`${error}`)}
45
+ ${chalk__default.default.red(`${error}`)}
46
46
 
47
47
  `);
48
48
  process.exit(1);
@@ -53,13 +53,13 @@ class NotFoundError extends CustomError {
53
53
 
54
54
  const paths = cliCommon.findPaths(__dirname);
55
55
 
56
- var version$c = "0.21.4-next.2";
56
+ var version$f = "0.21.5";
57
57
 
58
- var version$b = "0.6.14-next.2";
58
+ var version$e = "0.6.15";
59
59
 
60
- var version$a = "0.3.4-next.2";
60
+ var version$d = "0.3.5";
61
61
 
62
- var version$9 = "0.25.3-next.2";
62
+ var version$c = "0.26.1";
63
63
  var dependencies = {
64
64
  "@backstage/catalog-model": "workspace:^",
65
65
  "@backstage/cli-common": "workspace:^",
@@ -81,9 +81,9 @@ var dependencies = {
81
81
  "@rollup/plugin-json": "^6.0.0",
82
82
  "@rollup/plugin-node-resolve": "^15.0.0",
83
83
  "@rollup/plugin-yaml": "^4.0.0",
84
- "@spotify/eslint-config-base": "^14.0.0",
85
- "@spotify/eslint-config-react": "^14.0.0",
86
- "@spotify/eslint-config-typescript": "^14.0.0",
84
+ "@spotify/eslint-config-base": "^15.0.0",
85
+ "@spotify/eslint-config-react": "^15.0.0",
86
+ "@spotify/eslint-config-typescript": "^15.0.0",
87
87
  "@sucrase/webpack-loader": "^2.0.0",
88
88
  "@svgr/core": "6.5.x",
89
89
  "@svgr/plugin-jsx": "6.5.x",
@@ -143,15 +143,17 @@ var dependencies = {
143
143
  "node-libs-browser": "^2.2.1",
144
144
  "npm-packlist": "^5.0.0",
145
145
  ora: "^5.3.0",
146
+ "p-limit": "^3.1.0",
146
147
  "p-queue": "^6.6.2",
148
+ pirates: "^4.0.6",
147
149
  postcss: "^8.1.0",
148
150
  process: "^0.11.10",
149
151
  "react-dev-utils": "^12.0.0-next.60",
150
152
  "react-refresh": "^0.14.0",
151
153
  "recursive-readdir": "^2.2.2",
152
- rollup: "^2.60.2",
153
- "rollup-plugin-dts": "^4.0.1",
154
- "rollup-plugin-esbuild": "^4.7.2",
154
+ rollup: "^4.0.0",
155
+ "rollup-plugin-dts": "^6.1.0",
156
+ "rollup-plugin-esbuild": "^6.1.1",
155
157
  "rollup-plugin-postcss": "^4.0.0",
156
158
  "rollup-pluginutils": "^2.8.2",
157
159
  "run-script-webpack-plugin": "^0.2.0",
@@ -161,7 +163,6 @@ var dependencies = {
161
163
  "swc-loader": "^0.2.3",
162
164
  tar: "^6.1.12",
163
165
  "terser-webpack-plugin": "^5.1.3",
164
- tsx: "^4.0.0",
165
166
  util: "^0.12.3",
166
167
  webpack: "^5.70.0",
167
168
  "webpack-dev-server": "^4.7.3",
@@ -198,48 +199,60 @@ var devDependencies = {
198
199
  "@types/tar": "^6.1.1",
199
200
  "@types/terser-webpack-plugin": "^5.0.4",
200
201
  "@types/yarnpkg__lockfile": "^1.1.4",
202
+ "@vitejs/plugin-react": "^4.0.4",
201
203
  del: "^7.0.0",
202
204
  msw: "^1.0.0",
203
205
  nodemon: "^3.0.1",
204
- "ts-node": "^10.0.0"
206
+ vite: "^4.4.9",
207
+ "vite-plugin-html": "^3.2.0",
208
+ "vite-plugin-node-polyfills": "^0.21.0"
205
209
  };
206
210
 
207
- var version$8 = "1.2.0-next.1";
211
+ var version$b = "1.2.0";
208
212
 
209
- var version$7 = "1.12.1-next.1";
213
+ var version$a = "1.12.2";
210
214
 
211
- var version$6 = "0.14.1-next.2";
215
+ var version$9 = "0.14.2";
212
216
 
213
- var version$5 = "1.9.1-next.1";
217
+ var version$8 = "1.9.1";
214
218
 
215
- var version$4 = "1.0.28-next.2";
219
+ var version$7 = "1.0.29";
216
220
 
217
- var version$3 = "1.5.1-next.1";
221
+ var version$6 = "1.5.2";
218
222
 
219
- var version$2 = "0.4.0-next.2";
223
+ var version$5 = "0.4.1";
220
224
 
221
- var version$1 = "0.5.2-next.0";
225
+ var version$4 = "0.22.2";
226
+
227
+ var version$3 = "0.1.1";
228
+
229
+ var version$2 = "0.5.2";
230
+
231
+ var version$1 = "0.2.15";
222
232
 
223
233
  const packageVersions = {
224
- "@backstage/backend-common": version$c,
225
- "@backstage/backend-plugin-api": version$b,
226
- "@backstage/backend-test-utils": version$a,
227
- "@backstage/cli": version$9,
228
- "@backstage/config": version$8,
229
- "@backstage/core-app-api": version$7,
230
- "@backstage/core-components": version$6,
231
- "@backstage/core-plugin-api": version$5,
232
- "@backstage/dev-utils": version$4,
233
- "@backstage/test-utils": version$3,
234
- "@backstage/theme": version$1,
235
- "@backstage/plugin-scaffolder-node": version$2
234
+ "@backstage/backend-common": version$f,
235
+ "@backstage/backend-defaults": version$1,
236
+ "@backstage/backend-plugin-api": version$e,
237
+ "@backstage/backend-test-utils": version$d,
238
+ "@backstage/cli": version$c,
239
+ "@backstage/config": version$b,
240
+ "@backstage/core-app-api": version$a,
241
+ "@backstage/core-components": version$9,
242
+ "@backstage/core-plugin-api": version$8,
243
+ "@backstage/dev-utils": version$7,
244
+ "@backstage/test-utils": version$6,
245
+ "@backstage/theme": version$2,
246
+ "@backstage/plugin-scaffolder-node": version$5,
247
+ "@backstage/plugin-auth-backend": version$4,
248
+ "@backstage/plugin-auth-backend-module-guest-provider": version$3
236
249
  };
237
250
  function findVersion() {
238
- const pkgContent = fs__default["default"].readFileSync(paths.resolveOwn("package.json"), "utf8");
251
+ const pkgContent = fs__default.default.readFileSync(paths.resolveOwn("package.json"), "utf8");
239
252
  return JSON.parse(pkgContent).version;
240
253
  }
241
254
  const version = findVersion();
242
- fs__default["default"].pathExistsSync(paths.resolveOwn("src"));
255
+ fs__default.default.pathExistsSync(paths.resolveOwn("src"));
243
256
  function createPackageVersionProvider(lockfile) {
244
257
  return (name, versionHint) => {
245
258
  var _a;
@@ -259,7 +272,7 @@ function createPackageVersionProvider(lockfile) {
259
272
  }
260
273
  }
261
274
  const validRanges = lockfileEntries == null ? void 0 : lockfileEntries.filter(
262
- (entry) => semver__default["default"].satisfies(targetVersion, entry.range)
275
+ (entry) => semver__default.default.satisfies(targetVersion, entry.range)
263
276
  );
264
277
  const highestRange = validRanges == null ? void 0 : validRanges.slice(-1)[0];
265
278
  if (highestRange == null ? void 0 : highestRange.range) {
@@ -268,7 +281,7 @@ function createPackageVersionProvider(lockfile) {
268
281
  if (packageVersion) {
269
282
  return `^${packageVersion}`;
270
283
  }
271
- if ((_a = semver__default["default"].parse(versionHint)) == null ? void 0 : _a.prerelease.length) {
284
+ if ((_a = semver__default.default.parse(versionHint)) == null ? void 0 : _a.prerelease.length) {
272
285
  return versionHint;
273
286
  }
274
287
  return (versionHint == null ? void 0 : versionHint.match(/^[\d\.]+$/)) ? `^${versionHint}` : versionHint;
@@ -282,7 +295,7 @@ const configOption = [
282
295
  Array()
283
296
  ];
284
297
  function registerOnboardCommand(program) {
285
- program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-9544d932.cjs.js'); }).then((m) => m.command)));
298
+ program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-DvRrNqwO.cjs.js'); }).then((m) => m.command)));
286
299
  }
287
300
  function registerRepoCommand(program) {
288
301
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
@@ -294,7 +307,7 @@ function registerRepoCommand(program) {
294
307
  ).option(
295
308
  "--since <ref>",
296
309
  "Only build packages and their dev dependents that changed since the specified ref"
297
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-8382b8d8.cjs.js'); }).then((m) => m.command)));
310
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-CwpT6bF2.cjs.js'); }).then((m) => m.command)));
298
311
  command.command("lint").description("Lint all packages in the project").option(
299
312
  "--format <format>",
300
313
  "Lint report output format",
@@ -302,14 +315,14 @@ function registerRepoCommand(program) {
302
315
  ).option(
303
316
  "--since <ref>",
304
317
  "Only lint packages that changed since the specified ref"
305
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-8300340a.cjs.js'); }).then((m) => m.command)));
318
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-BR_vl9_l.cjs.js'); }).then((m) => m.command)));
306
319
  command.command("fix").description("Automatically fix packages in the project").option(
307
320
  "--check",
308
321
  "Fail if any packages would have been changed by the command"
309
- ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-d22e0b11.cjs.js'); }).then((m) => m.command)));
310
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-da51bc11.cjs.js'); }).then((m) => m.command)));
322
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-Bea3_Noa.cjs.js'); }).then((m) => m.command)));
323
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-Cv8IvozP.cjs.js'); }).then((m) => m.command)));
311
324
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
312
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-e2ee5969.cjs.js'); }).then((m) => m.command))
325
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-BSHe0Jb3.cjs.js'); }).then((m) => m.command))
313
326
  );
314
327
  command.command("test").allowUnknownOption(true).option(
315
328
  "--since <ref>",
@@ -317,17 +330,17 @@ function registerRepoCommand(program) {
317
330
  ).option(
318
331
  "--jest-help",
319
332
  "Show help for Jest CLI options, which are passed through"
320
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-5db6618e.cjs.js'); }).then((m) => m.command)));
333
+ ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-CE3ZjSss.cjs.js'); }).then((m) => m.command)));
321
334
  }
322
335
  function registerScriptCommand(program) {
323
336
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
324
337
  command.command("start").description("Start a package for local development").option(...configOption).option("--role <name>", "Run the command with an explicit package role").option("--check", "Enable type checking and linting if available").option("--inspect [host]", "Enable debugger in Node.js environments").option(
325
338
  "--inspect-brk [host]",
326
339
  "Enable debugger in Node.js environments, breaking before code starts"
327
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-9063098c.cjs.js'); }).then((m) => m.command)));
340
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-sM4O9JuD.cjs.js'); }).then((m) => m.command)));
328
341
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
329
342
  "--minify",
330
- "Minify the generated code. Does not apply to app or backend packages."
343
+ "Minify the generated code. Does not apply to app package (app is minified by default)."
331
344
  ).option(
332
345
  "--skip-build-dependencies",
333
346
  "Skip the automatic building of local dependencies. Applies to backend packages only."
@@ -339,35 +352,35 @@ function registerScriptCommand(program) {
339
352
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
340
353
  (opt, opts) => opts ? [...opts, opt] : [opt],
341
354
  Array()
342
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-09d2153b.cjs.js'); }).then((m) => m.command)));
355
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-D3oMtC-Y.cjs.js'); }).then((m) => m.command)));
343
356
  command.command("lint [directories...]").option(
344
357
  "--format <format>",
345
358
  "Lint report output format",
346
359
  "eslint-formatter-friendly"
347
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-b802a7cd.cjs.js'); }).then((m) => m.default)));
348
- command.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-7743a73f.cjs.js'); }).then((m) => m.default)));
349
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-5afc7d48.cjs.js'); }).then((m) => m.default)));
350
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-50caa243.cjs.js'); }).then((m) => m.pre)));
351
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-50caa243.cjs.js'); }).then((m) => m.post)));
360
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-YPKovWFd.cjs.js'); }).then((m) => m.default)));
361
+ command.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-dJeJGdt8.cjs.js'); }).then((m) => m.default)));
362
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-DM4n37HU.cjs.js'); }).then((m) => m.default)));
363
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-CsV2iPfV.cjs.js'); }).then((m) => m.pre)));
364
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-CsV2iPfV.cjs.js'); }).then((m) => m.post)));
352
365
  }
353
366
  function registerMigrateCommand(program) {
354
367
  const command = program.command("migrate [command]").description("Migration utilities");
355
- command.command("package-roles").description(`Add package role field to packages that don't have it`).action(lazy(() => Promise.resolve().then(function () { return require('./packageRole-dac636ac.cjs.js'); }).then((m) => m.default)));
368
+ command.command("package-roles").description(`Add package role field to packages that don't have it`).action(lazy(() => Promise.resolve().then(function () { return require('./packageRole-BPygF5yd.cjs.js'); }).then((m) => m.default)));
356
369
  command.command("package-scripts").description("Set package scripts according to each package role").action(
357
- lazy(() => Promise.resolve().then(function () { return require('./packageScripts-bb7b6de2.cjs.js'); }).then((m) => m.command))
370
+ lazy(() => Promise.resolve().then(function () { return require('./packageScripts-CPnlPBBs.cjs.js'); }).then((m) => m.command))
358
371
  );
359
372
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
360
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-a1441001.cjs.js'); }).then((m) => m.command))
373
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-B8ow9_g8.cjs.js'); }).then((m) => m.command))
361
374
  );
362
375
  command.command("package-lint-configs").description(
363
376
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
364
377
  ).action(
365
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-d64c7abd.cjs.js'); }).then((m) => m.command))
378
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-DU8CUxDG.cjs.js'); }).then((m) => m.command))
366
379
  );
367
380
  command.command("react-router-deps").description(
368
381
  "Migrates the react-router dependencies for all packages to be peer dependencies"
369
382
  ).action(
370
- lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-a2bb1d62.cjs.js'); }).then((m) => m.command))
383
+ lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-BBKc6o07.cjs.js'); }).then((m) => m.command))
371
384
  );
372
385
  }
373
386
  function registerCommands(program) {
@@ -387,7 +400,7 @@ function registerCommands(program) {
387
400
  ).option(
388
401
  "--baseVersion <version>",
389
402
  "The version to use for any new packages (default: 0.1.0)"
390
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-c58b4036.cjs.js'); }).then((m) => m.default)));
403
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-C_MIBxr7.cjs.js'); }).then((m) => m.default)));
391
404
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
392
405
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
393
406
  ).option(
@@ -401,30 +414,30 @@ function registerCommands(program) {
401
414
  ).option("--scope <scope>", "The scope to use for new packages").option(
402
415
  "--npm-registry <URL>",
403
416
  "The package registry to use for new packages"
404
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-c58b4036.cjs.js'); }).then((m) => m.default)));
417
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-C_MIBxr7.cjs.js'); }).then((m) => m.default)));
405
418
  program.command("create-plugin", { hidden: true }).option(
406
419
  "--backend",
407
420
  "Create plugin with the backend dependencies as default"
408
421
  ).description("Creates a new plugin in the current repository [DEPRECATED]").option("--scope <scope>", "npm scope").option("--npm-registry <URL>", "npm registry URL").option("--no-private", "Public npm package").action(
409
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-204e49d9.cjs.js'); }).then((m) => m.default))
422
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-CwxnrMzx.cjs.js'); }).then((m) => m.default))
410
423
  );
411
424
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
412
425
  "Diff an existing plugin with the creation template [DEPRECATED]"
413
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-7d8597da.cjs.js'); }).then((m) => m.default)));
426
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-D3wUBD1R.cjs.js'); }).then((m) => m.default)));
414
427
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
415
428
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
416
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-7743a73f.cjs.js'); }).then((m) => m.default)));
429
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-dJeJGdt8.cjs.js'); }).then((m) => m.default)));
417
430
  program.command("config:docs").option(
418
431
  "--package <name>",
419
432
  "Only include the schema that applies to the given package"
420
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-f78c80fc.cjs.js'); }).then((m) => m.default)));
433
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-Cvi9d_ZX.cjs.js'); }).then((m) => m.default)));
421
434
  program.command("config:print").option(
422
435
  "--package <name>",
423
436
  "Only load config schema that applies to the given package"
424
437
  ).option("--lax", "Do not require environment variables to be set").option("--frontend", "Print only the frontend configuration").option("--with-secrets", "Include secrets in the printed configuration").option(
425
438
  "--format <format>",
426
439
  "Format to print the configuration in, either json or yaml [yaml]"
427
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-6b92e96e.cjs.js'); }).then((m) => m.default)));
440
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-DoEMvoPB.cjs.js'); }).then((m) => m.default)));
428
441
  program.command("config:check").option(
429
442
  "--package <name>",
430
443
  "Only load config schema that applies to the given package"
@@ -433,14 +446,14 @@ function registerCommands(program) {
433
446
  "Enable strict config validation, forbidding errors and unknown keys"
434
447
  ).option(...configOption).description(
435
448
  "Validate that the given configuration loads and matches schema"
436
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-beb5d30e.cjs.js'); }).then((m) => m.default)));
449
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-BsyK7u74.cjs.js'); }).then((m) => m.default)));
437
450
  program.command("config:schema").option(
438
451
  "--package <name>",
439
452
  "Only output config schema that applies to the given package"
440
453
  ).option(
441
454
  "--format <format>",
442
455
  "Format to print the schema in, either json or yaml [yaml]"
443
- ).option("--merge", "Print the config schemas merged", true).option("--no-merge", "Print the config schemas not merged").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-4835d534.cjs.js'); }).then((m) => m.default)));
456
+ ).option("--merge", "Print the config schemas merged", true).option("--no-merge", "Print the config schemas not merged").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-BC3xv-Rs.cjs.js'); }).then((m) => m.default)));
444
457
  registerRepoCommand(program);
445
458
  registerScriptCommand(program);
446
459
  registerMigrateCommand(program);
@@ -452,19 +465,19 @@ function registerCommands(program) {
452
465
  "--release <version|next|main>",
453
466
  "Bump to a specific Backstage release line or version",
454
467
  "main"
455
- ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-7eb29899.cjs.js'); }).then((m) => m.default)));
456
- program.command("versions:check").option("--fix", "Fix any auto-fixable versioning problems").description("Check Backstage package versioning").action(lazy(() => Promise.resolve().then(function () { return require('./lint-ba008767.cjs.js'); }).then((m) => m.default)));
457
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-5afc7d48.cjs.js'); }).then((m) => m.default)));
468
+ ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-CeCdrJTX.cjs.js'); }).then((m) => m.default)));
469
+ program.command("versions:check").option("--fix", "Fix any auto-fixable versioning problems").description("Check Backstage package versioning").action(lazy(() => Promise.resolve().then(function () { return require('./lint-C7Wrrowb.cjs.js'); }).then((m) => m.default)));
470
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-DM4n37HU.cjs.js'); }).then((m) => m.default)));
458
471
  program.command("build-workspace <workspace-dir> [packages...]").option(
459
472
  "--alwaysYarnPack",
460
473
  "Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
461
- ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-65108f13.cjs.js'); }).then((m) => m.default)));
462
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-edd730f9.cjs.js'); }).then((m) => m.default)));
463
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-1f294f45.cjs.js'); }).then((m) => m.default)));
474
+ ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-C1SYLOri.cjs.js'); }).then((m) => m.default)));
475
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-nDVbtUZr.cjs.js'); }).then((m) => m.default)));
476
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-RFihkADz.cjs.js'); }).then((m) => m.default)));
464
477
  program.command("install [plugin-id]", { hidden: true }).option(
465
478
  "--from <packageJsonFilePath>",
466
479
  "Install from a local package.json containing the installation recipe"
467
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-673dc92b.cjs.js'); }).then((m) => m.default)));
480
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-DoqtVqrm.cjs.js'); }).then((m) => m.default)));
468
481
  }
469
482
  function lazy(getActionFunc) {
470
483
  return async (...args) => {
@@ -484,7 +497,7 @@ const main = (argv) => {
484
497
  registerCommands(commander.program);
485
498
  commander.program.on("command:*", () => {
486
499
  console.log();
487
- console.log(chalk__default["default"].red(`Invalid command: ${commander.program.args.join(" ")}`));
500
+ console.log(chalk__default.default.red(`Invalid command: ${commander.program.args.join(" ")}`));
488
501
  console.log();
489
502
  commander.program.outputHelp();
490
503
  process.exit(1);
@@ -507,5 +520,5 @@ exports.dependencies = dependencies;
507
520
  exports.devDependencies = devDependencies;
508
521
  exports.paths = paths;
509
522
  exports.version = version;
510
- exports.version$1 = version$9;
511
- //# sourceMappingURL=index-e1de5c59.cjs.js.map
523
+ exports.version$1 = version$c;
524
+ //# sourceMappingURL=index-DY45BN_5.cjs.js.map