@backstage/cli 0.26.5-next.1 → 0.26.6-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +38 -6
  2. package/dist/cjs/{Lockfile-C7rtIlD6.cjs.js → Lockfile-BGMdDb8M.cjs.js} +54 -21
  3. package/dist/cjs/{build-D66oGHOO.cjs.js → build-oOoA6doT.cjs.js} +14 -17
  4. package/dist/cjs/{buildBackend-we2Ba62t.cjs.js → buildBackend-DCTPybGH.cjs.js} +8 -10
  5. package/dist/cjs/{buildWorkspace-C6qBqMwe.cjs.js → buildWorkspace-BZ9SFxD1.cjs.js} +5 -5
  6. package/dist/cjs/{bump-5cKD_8oo.cjs.js → bump-DrU2bDOA.cjs.js} +16 -21
  7. package/dist/cjs/{clean-CPw0dNE0.cjs.js → clean-CTXeO6EC.cjs.js} +3 -4
  8. package/dist/cjs/{clean-BsjbtMUW.cjs.js → clean-Xt20-SOd.cjs.js} +2 -2
  9. package/dist/cjs/{codeowners-DvK_j4Tq.cjs.js → codeowners-CmW2AVMp.cjs.js} +2 -2
  10. package/dist/cjs/{config-BuuxVw_w.cjs.js → config-Dr_8wy8K.cjs.js} +3 -4
  11. package/dist/cjs/{createDistWorkspace-DwUb2OGs.cjs.js → createDistWorkspace-DgvlH81m.cjs.js} +15 -25
  12. package/dist/cjs/{createPlugin-DOLMfwjD.cjs.js → createPlugin-DJh1uHOM.cjs.js} +7 -8
  13. package/dist/cjs/{diff-B-i5TSqo.cjs.js → diff-BFT2J47H.cjs.js} +2 -2
  14. package/dist/cjs/{docs-Bpn7hI2X.cjs.js → docs-DPxUZ_5M.cjs.js} +3 -3
  15. package/dist/cjs/{fix-5g9C20X3.cjs.js → fix-Ds21Csn8.cjs.js} +3 -4
  16. package/dist/cjs/{index-fxIvYG3M.cjs.js → index-C9SBzA6q.cjs.js} +38 -44
  17. package/dist/cjs/{index-B_1_hXOx.cjs.js → index-C9SFHBJ7.cjs.js} +160 -343
  18. package/dist/cjs/{index-DncCYByV.cjs.js → index-CIfGsnyl.cjs.js} +30 -63
  19. package/dist/cjs/{index-D_pjpDix.cjs.js → index-D262VPnW.cjs.js} +61 -68
  20. package/dist/cjs/{index-Cjmdbgff.cjs.js → index-zmkgRMEr.cjs.js} +9 -9
  21. package/dist/cjs/{info-BHiDvCg2.cjs.js → info-BJvAN-EV.cjs.js} +5 -6
  22. package/dist/cjs/{install-CK_D5n3K.cjs.js → install-iHbt_0aM.cjs.js} +8 -11
  23. package/dist/cjs/{lint-CNZy4apS.cjs.js → lint-BQoZALVi.cjs.js} +2 -2
  24. package/dist/cjs/{lint-LAlja4Wa.cjs.js → lint-DhdvUtZ-.cjs.js} +4 -4
  25. package/dist/cjs/{lint-B8OIZt3F.cjs.js → lint-ccLOCCQ7.cjs.js} +2 -2
  26. package/dist/cjs/{list-deprecations-DJvZCDiX.cjs.js → list-deprecations-DKQAIdF-.cjs.js} +2 -2
  27. package/dist/cjs/{new-CcqlZCp_.cjs.js → new-pqVZtq0L.cjs.js} +11 -19
  28. package/dist/cjs/{pack-BL0qUp0J.cjs.js → pack-Cb0EFwcV.cjs.js} +3 -3
  29. package/dist/cjs/{packageDetection-zhqJ-m-A.cjs.js → packageDetection-Cfl0g9oD.cjs.js} +15 -21
  30. package/dist/cjs/{packageExports-GUmRFcjL.cjs.js → packageExports-qb2FnJFt.cjs.js} +3 -3
  31. package/dist/cjs/{packageLintConfigs-s5Xf7QSi.cjs.js → packageLintConfigs-CZbCJdAI.cjs.js} +4 -5
  32. package/dist/cjs/{packageRole-D5JpCRDM.cjs.js → packageRole-C_eAxVdS.cjs.js} +2 -2
  33. package/dist/cjs/{packageScripts-CPnlPBBs.cjs.js → packageScripts-DX6dilK6.cjs.js} +10 -11
  34. package/dist/cjs/{packages-CHIGCvQ0.cjs.js → packages-C0iBE8_o.cjs.js} +6 -10
  35. package/dist/cjs/{print-CmGRME-Z.cjs.js → print-DKlinc6o.cjs.js} +3 -3
  36. package/dist/cjs/{productionPack-DotlEIE2.cjs.js → productionPack-BfVQNApa.cjs.js} +4 -6
  37. package/dist/cjs/{reactRouterDeps-BBKc6o07.cjs.js → reactRouterDeps-CR-hjviw.cjs.js} +2 -3
  38. package/dist/cjs/{role-DzCJuRau.cjs.js → role-ji3J4lHr.cjs.js} +3 -4
  39. package/dist/cjs/{run-C1b3EDE9.cjs.js → run-C1016vC-.cjs.js} +3 -4
  40. package/dist/cjs/{schema-C2_ScGGA.cjs.js → schema--27U4Pnd.cjs.js} +3 -3
  41. package/dist/cjs/{tasks-mGXy8WjR.cjs.js → tasks-Dy-6nV0-.cjs.js} +3 -3
  42. package/dist/cjs/{test-DIO_yILs.cjs.js → test-0Q9Uv4gn.cjs.js} +3 -3
  43. package/dist/cjs/{test-ByXbKy71.cjs.js → test-BlJ7hC1z.cjs.js} +3 -3
  44. package/dist/cjs/{validate-Dpae61Um.cjs.js → validate-DrFKUEDH.cjs.js} +3 -3
  45. package/dist/index.cjs.js +1 -1
  46. package/package.json +14 -14
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var role = require('./role-DzCJuRau.cjs.js');
3
+ var role = require('./role-ji3J4lHr.cjs.js');
4
4
  var fs = require('fs-extra');
5
- var index = require('./index-D_pjpDix.cjs.js');
5
+ var index = require('./index-D262VPnW.cjs.js');
6
6
  var webpack = require('webpack');
7
- var packageDetection = require('./packageDetection-zhqJ-m-A.cjs.js');
7
+ var packageDetection = require('./packageDetection-Cfl0g9oD.cjs.js');
8
8
  require('yn');
9
9
  var path = require('path');
10
10
  require('react-dev-utils/FileSizeReporter');
@@ -18,7 +18,7 @@ require('run-script-webpack-plugin');
18
18
  require('@manypkg/get-packages');
19
19
  require('webpack-node-externals');
20
20
  require('lodash/pickBy');
21
- require('./run-C1b3EDE9.cjs.js');
21
+ require('./run-C1016vC-.cjs.js');
22
22
  require('mini-css-extract-plugin');
23
23
  require('@pmmmwh/react-refresh-webpack-plugin');
24
24
  var chalk = require('chalk');
@@ -40,9 +40,9 @@ var errors = require('@backstage/errors');
40
40
  var debounce = require('lodash/debounce');
41
41
  var url = require('url');
42
42
  var spawn = require('cross-spawn');
43
- var lint = require('./lint-LAlja4Wa.cjs.js');
44
- var config = require('./config-BuuxVw_w.cjs.js');
45
- var Lockfile = require('./Lockfile-C7rtIlD6.cjs.js');
43
+ var lint = require('./lint-DhdvUtZ-.cjs.js');
44
+ var config = require('./config-Dr_8wy8K.cjs.js');
45
+ var Lockfile = require('./Lockfile-BGMdDb8M.cjs.js');
46
46
  require('commander');
47
47
  require('./entryPoints-CoHH4lBA.cjs.js');
48
48
  require('./svgrTemplate-BTjBQ3by.cjs.js');
@@ -87,7 +87,6 @@ async function serveBackend(options) {
87
87
  }
88
88
 
89
89
  async function serveBundle(options) {
90
- var _a, _b, _c, _d, _e, _f, _g, _h;
91
90
  const paths = packageDetection.resolveBundlingPaths(options);
92
91
  const targetPkg = await fs__default.default.readJson(paths.targetPackageJson);
93
92
  if (options.verifyVersions) {
@@ -119,7 +118,7 @@ async function serveBundle(options) {
119
118
  )
120
119
  );
121
120
  }
122
- if (((_b = (_a = targetPkg.dependencies) == null ? void 0 : _a["react-router"]) == null ? void 0 : _b.includes("beta")) || ((_d = (_c = targetPkg.dependencies) == null ? void 0 : _c["react-router-dom"]) == null ? void 0 : _d.includes("beta"))) {
121
+ if (targetPkg.dependencies?.["react-router"]?.includes("beta") || targetPkg.dependencies?.["react-router-dom"]?.includes("beta")) {
123
122
  console.warn(
124
123
  chalk__default.default.yellow(`
125
124
  DEPRECATION WARNING: React Router Beta is deprecated and support for it will be removed in a future release.
@@ -140,8 +139,8 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
140
139
  withFilteredKeys: true,
141
140
  watch(appConfigs) {
142
141
  latestFrontendAppConfigs = appConfigs;
143
- webpackServer == null ? void 0 : webpackServer.invalidate();
144
- viteServer == null ? void 0 : viteServer.restart();
142
+ webpackServer?.invalidate();
143
+ viteServer?.restart();
145
144
  }
146
145
  });
147
146
  latestFrontendAppConfigs = cliConfig.frontendAppConfigs;
@@ -170,8 +169,8 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
170
169
  config: fullConfig,
171
170
  targetPath: paths.targetPath,
172
171
  watch() {
173
- webpackServer == null ? void 0 : webpackServer.invalidate();
174
- viteServer == null ? void 0 : viteServer.restart();
172
+ webpackServer?.invalidate();
173
+ viteServer?.restart();
175
174
  }
176
175
  });
177
176
  const commonConfigOptions = {
@@ -189,7 +188,7 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
189
188
  additionalEntryPoints: detectedModulesEntryPoint
190
189
  });
191
190
  if (process.env.EXPERIMENTAL_VITE) {
192
- const { default: vite } = await import('vite');
191
+ const vite = await import('vite');
193
192
  const { default: viteReact } = await import('@vitejs/plugin-react');
194
193
  const { nodePolyfills: viteNodePolyfills } = await import('vite-plugin-node-polyfills');
195
194
  const { createHtmlPlugin: viteHtml } = await import('vite-plugin-html');
@@ -213,7 +212,7 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
213
212
  inject: {
214
213
  data: {
215
214
  config: frontendConfig,
216
- publicPath: (_e = config$1.output) == null ? void 0 : _e.publicPath
215
+ publicPath: config$1.output?.publicPath
217
216
  }
218
217
  }
219
218
  })
@@ -242,11 +241,11 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
242
241
  {
243
242
  hot: !process.env.CI,
244
243
  devMiddleware: {
245
- publicPath: (_f = config$1.output) == null ? void 0 : _f.publicPath,
244
+ publicPath: config$1.output?.publicPath,
246
245
  stats: "errors-warnings"
247
246
  },
248
247
  static: paths.targetPublic ? {
249
- publicPath: (_g = config$1.output) == null ? void 0 : _g.publicPath,
248
+ publicPath: config$1.output?.publicPath,
250
249
  directory: paths.targetPublic
251
250
  } : void 0,
252
251
  historyApiFallback: {
@@ -254,7 +253,7 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
254
253
  // See https://github.com/facebookincubator/create-react-app/issues/387.
255
254
  disableDotRule: true,
256
255
  // The index needs to be rewritten relative to the new public path, including subroutes.
257
- index: `${(_h = config$1.output) == null ? void 0 : _h.publicPath}index.html`
256
+ index: `${config$1.output?.publicPath}index.html`
258
257
  },
259
258
  server: url.protocol === "https:" ? {
260
259
  type: "https",
@@ -275,7 +274,7 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
275
274
  compiler
276
275
  );
277
276
  }
278
- await (viteServer == null ? void 0 : viteServer.listen());
277
+ await viteServer?.listen();
279
278
  await new Promise(async (resolve, reject) => {
280
279
  if (webpackServer) {
281
280
  webpackServer.startCallback((err) => {
@@ -293,8 +292,8 @@ DEPRECATION WARNING: React Router Beta is deprecated and support for it will be
293
292
  const waitForExit = async () => {
294
293
  for (const signal of ["SIGINT", "SIGTERM"]) {
295
294
  process.on(signal, () => {
296
- webpackServer == null ? void 0 : webpackServer.stop();
297
- viteServer == null ? void 0 : viteServer.close();
295
+ webpackServer?.stop();
296
+ viteServer?.close();
298
297
  process.exit();
299
298
  });
300
299
  }
@@ -325,44 +324,14 @@ function checkReactVersion() {
325
324
  }
326
325
  }
327
326
 
328
- var __accessCheck = (obj, member, msg) => {
329
- if (!member.has(obj))
330
- throw TypeError("Cannot " + msg);
331
- };
332
- var __privateGet = (obj, member, getter) => {
333
- __accessCheck(obj, member, "read from private field");
334
- return getter ? getter.call(obj) : member.get(obj);
335
- };
336
- var __privateAdd = (obj, member, value) => {
337
- if (member.has(obj))
338
- throw TypeError("Cannot add the same private member more than once");
339
- member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
340
- };
341
- var __privateSet = (obj, member, value, setter) => {
342
- __accessCheck(obj, member, "write to private field");
343
- member.set(obj, value);
344
- return value;
345
- };
346
- var __privateWrapper = (obj, member, setter, getter) => ({
347
- set _(value) {
348
- __privateSet(obj, member, value);
349
- },
350
- get _() {
351
- return __privateGet(obj, member, getter);
352
- }
353
- });
354
- var _generation, _methods;
355
327
  const requestType = "@backstage/cli/channel/request";
356
328
  const responseType = "@backstage/cli/channel/response";
357
329
  class IpcServer {
358
- constructor() {
359
- __privateAdd(this, _generation, 1);
360
- __privateAdd(this, _methods, /* @__PURE__ */ new Map());
361
- }
330
+ #generation = 1;
331
+ #methods = /* @__PURE__ */ new Map();
362
332
  addChild(child) {
363
- var _a;
364
- const generation = __privateWrapper(this, _generation)._++;
365
- const sendMessage = (_a = child.send) == null ? void 0 : _a.bind(child);
333
+ const generation = this.#generation++;
334
+ const sendMessage = child.send?.bind(child);
366
335
  if (!sendMessage) {
367
336
  return;
368
337
  }
@@ -370,7 +339,7 @@ class IpcServer {
370
339
  if (request.type !== requestType) {
371
340
  return;
372
341
  }
373
- const handler = __privateGet(this, _methods).get(request.method);
342
+ const handler = this.#methods.get(request.method);
374
343
  if (!handler) {
375
344
  sendMessage({
376
345
  type: responseType,
@@ -402,14 +371,12 @@ class IpcServer {
402
371
  });
403
372
  }
404
373
  registerMethod(method, handler) {
405
- if (__privateGet(this, _methods).has(method)) {
374
+ if (this.#methods.has(method)) {
406
375
  throw new Error(`A handler is already registered for method ${method}`);
407
376
  }
408
- __privateGet(this, _methods).set(method, handler);
377
+ this.#methods.set(method, handler);
409
378
  }
410
379
  }
411
- _generation = new WeakMap();
412
- _methods = new WeakMap();
413
380
 
414
381
  class ServerDataStore {
415
382
  static bind(server) {
@@ -437,7 +404,7 @@ class ServerDataStore {
437
404
  "DevDataStore.load",
438
405
  async (request) => {
439
406
  const item = store.get(request.key);
440
- return { loaded: Boolean(item), data: item == null ? void 0 : item.data };
407
+ return { loaded: Boolean(item), data: item?.data };
441
408
  }
442
409
  );
443
410
  }
@@ -516,7 +483,7 @@ async function startBackendExperimental(options) {
516
483
  if (!watcher) {
517
484
  return;
518
485
  }
519
- if (typeof data === "object" && (data == null ? void 0 : data.type) === "watch") {
486
+ if (typeof data === "object" && data?.type === "watch") {
520
487
  let path$1 = data.path;
521
488
  if (path$1.startsWith("file:")) {
522
489
  path$1 = url.fileURLToPath(path$1);
@@ -664,4 +631,4 @@ async function command(opts) {
664
631
  }
665
632
 
666
633
  exports.command = command;
667
- //# sourceMappingURL=index-DncCYByV.cjs.js.map
634
+ //# sourceMappingURL=index-CIfGsnyl.cjs.js.map
@@ -13,23 +13,17 @@ var chalk__default = /*#__PURE__*/_interopDefaultCompat(chalk);
13
13
  var fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
14
14
  var semver__default = /*#__PURE__*/_interopDefaultCompat(semver);
15
15
 
16
- var __defProp = Object.defineProperty;
17
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
18
- var __publicField = (obj, key, value) => {
19
- __defNormalProp(obj, key + "" , value);
20
- return value;
21
- };
22
16
  class CustomError extends Error {
23
17
  get name() {
24
18
  return this.constructor.name;
25
19
  }
26
20
  }
27
21
  class ExitCodeError extends CustomError {
22
+ code;
28
23
  constructor(code, command) {
29
24
  super(
30
25
  command ? `Command '${command}' exited with code ${code}` : `Child exited with code ${code}`
31
26
  );
32
- __publicField(this, "code");
33
27
  this.code = code;
34
28
  }
35
29
  }
@@ -53,13 +47,13 @@ class NotFoundError extends CustomError {
53
47
 
54
48
  const paths = cliCommon.findPaths(__dirname);
55
49
 
56
- var version$f = "0.22.0-next.2";
50
+ var version$f = "0.22.1-next.0";
57
51
 
58
- var version$e = "0.6.18-next.1";
52
+ var version$e = "0.6.19-next.0";
59
53
 
60
- var version$d = "0.3.8-next.2";
54
+ var version$d = "0.3.9-next.0";
61
55
 
62
- var version$c = "0.26.5-next.1";
56
+ var version$c = "0.26.6-next.0";
63
57
  var dependencies = {
64
58
  "@backstage/catalog-model": "workspace:^",
65
59
  "@backstage/cli-common": "workspace:^",
@@ -98,7 +92,7 @@ var dependencies = {
98
92
  "@typescript-eslint/eslint-plugin": "^6.12.0",
99
93
  "@typescript-eslint/parser": "^6.7.2",
100
94
  "@yarnpkg/lockfile": "^1.1.0",
101
- "@yarnpkg/parsers": "^3.0.0-rc.4",
95
+ "@yarnpkg/parsers": "^3.0.0",
102
96
  bfj: "^8.0.0",
103
97
  buffer: "^6.0.3",
104
98
  chalk: "^4.0.0",
@@ -211,25 +205,25 @@ var devDependencies = {
211
205
 
212
206
  var version$b = "1.2.0";
213
207
 
214
- var version$a = "1.12.4";
208
+ var version$a = "1.12.5";
215
209
 
216
- var version$9 = "0.14.7-next.2";
210
+ var version$9 = "0.14.8-next.0";
217
211
 
218
212
  var version$8 = "1.9.2";
219
213
 
220
- var version$7 = "1.0.32-next.2";
214
+ var version$7 = "1.0.33-next.0";
221
215
 
222
- var version$6 = "1.5.5-next.0";
216
+ var version$6 = "1.5.6-next.0";
223
217
 
224
- var version$5 = "0.4.4-next.2";
218
+ var version$5 = "0.4.5-next.0";
225
219
 
226
- var version$4 = "0.22.5-next.2";
220
+ var version$4 = "0.22.6-next.0";
227
221
 
228
- var version$3 = "0.1.4-next.1";
222
+ var version$3 = "0.1.5-next.0";
229
223
 
230
- var version$2 = "0.5.4-next.0";
224
+ var version$2 = "0.5.6-next.0";
231
225
 
232
- var version$1 = "0.2.18-next.2";
226
+ var version$1 = "0.2.19-next.0";
233
227
 
234
228
  const packageVersions = {
235
229
  "@backstage/backend-common": version$f,
@@ -256,36 +250,35 @@ const version = findVersion();
256
250
  fs__default.default.pathExistsSync(paths.resolveOwn("src"));
257
251
  function createPackageVersionProvider(lockfile) {
258
252
  return (name, versionHint) => {
259
- var _a;
260
253
  const packageVersion = packageVersions[name];
261
254
  const targetVersion = versionHint || packageVersion;
262
255
  if (!targetVersion) {
263
256
  throw new Error(`No version available for package ${name}`);
264
257
  }
265
- const lockfileEntries = lockfile == null ? void 0 : lockfile.get(name);
266
- if (name.startsWith("@types/") && (lockfileEntries == null ? void 0 : lockfileEntries.some((entry) => entry.range === "*"))) {
258
+ const lockfileEntries = lockfile?.get(name);
259
+ if (name.startsWith("@types/") && lockfileEntries?.some((entry) => entry.range === "*")) {
267
260
  return "*";
268
261
  }
269
262
  for (const specifier of ["^", "~", "*"]) {
270
263
  const range = `workspace:${specifier}`;
271
- if (lockfileEntries == null ? void 0 : lockfileEntries.some((entry) => entry.range === range)) {
264
+ if (lockfileEntries?.some((entry) => entry.range === range)) {
272
265
  return range;
273
266
  }
274
267
  }
275
- const validRanges = lockfileEntries == null ? void 0 : lockfileEntries.filter(
268
+ const validRanges = lockfileEntries?.filter(
276
269
  (entry) => semver__default.default.satisfies(targetVersion, entry.range)
277
270
  );
278
- const highestRange = validRanges == null ? void 0 : validRanges.slice(-1)[0];
279
- if (highestRange == null ? void 0 : highestRange.range) {
280
- return highestRange == null ? void 0 : highestRange.range;
271
+ const highestRange = validRanges?.slice(-1)[0];
272
+ if (highestRange?.range) {
273
+ return highestRange?.range;
281
274
  }
282
275
  if (packageVersion) {
283
276
  return `^${packageVersion}`;
284
277
  }
285
- if ((_a = semver__default.default.parse(versionHint)) == null ? void 0 : _a.prerelease.length) {
278
+ if (semver__default.default.parse(versionHint)?.prerelease.length) {
286
279
  return versionHint;
287
280
  }
288
- return (versionHint == null ? void 0 : versionHint.match(/^[\d\.]+$/)) ? `^${versionHint}` : versionHint;
281
+ return versionHint?.match(/^[\d\.]+$/) ? `^${versionHint}` : versionHint;
289
282
  };
290
283
  }
291
284
 
@@ -296,7 +289,7 @@ const configOption = [
296
289
  Array()
297
290
  ];
298
291
  function registerOnboardCommand(program) {
299
- program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-B_1_hXOx.cjs.js'); }).then((m) => m.command)));
292
+ program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-C9SFHBJ7.cjs.js'); }).then((m) => m.command)));
300
293
  }
301
294
  function registerRepoCommand(program) {
302
295
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
@@ -308,7 +301,7 @@ function registerRepoCommand(program) {
308
301
  ).option(
309
302
  "--since <ref>",
310
303
  "Only build packages and their dev dependents that changed since the specified ref"
311
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-D66oGHOO.cjs.js'); }).then((m) => m.command)));
304
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-oOoA6doT.cjs.js'); }).then((m) => m.command)));
312
305
  command.command("lint").description("Lint all packages in the project").option(
313
306
  "--format <format>",
314
307
  "Lint report output format",
@@ -316,14 +309,14 @@ function registerRepoCommand(program) {
316
309
  ).option(
317
310
  "--since <ref>",
318
311
  "Only lint packages that changed since the specified ref"
319
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-CNZy4apS.cjs.js'); }).then((m) => m.command)));
312
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-BQoZALVi.cjs.js'); }).then((m) => m.command)));
320
313
  command.command("fix").description("Automatically fix packages in the project").option(
321
314
  "--check",
322
315
  "Fail if any packages would have been changed by the command"
323
- ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-5g9C20X3.cjs.js'); }).then((m) => m.command)));
324
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-CPw0dNE0.cjs.js'); }).then((m) => m.command)));
316
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-Ds21Csn8.cjs.js'); }).then((m) => m.command)));
317
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-CTXeO6EC.cjs.js'); }).then((m) => m.command)));
325
318
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
326
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-DJvZCDiX.cjs.js'); }).then((m) => m.command))
319
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-DKQAIdF-.cjs.js'); }).then((m) => m.command))
327
320
  );
328
321
  command.command("test").allowUnknownOption(true).option(
329
322
  "--since <ref>",
@@ -331,14 +324,14 @@ function registerRepoCommand(program) {
331
324
  ).option(
332
325
  "--jest-help",
333
326
  "Show help for Jest CLI options, which are passed through"
334
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-DIO_yILs.cjs.js'); }).then((m) => m.command)));
327
+ ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-0Q9Uv4gn.cjs.js'); }).then((m) => m.command)));
335
328
  }
336
329
  function registerScriptCommand(program) {
337
330
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
338
331
  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(
339
332
  "--inspect-brk [host]",
340
333
  "Enable debugger in Node.js environments, breaking before code starts"
341
- ).option("--require <path>", "Add a --require argument to the node process").action(lazy(() => Promise.resolve().then(function () { return require('./index-DncCYByV.cjs.js'); }).then((m) => m.command)));
334
+ ).option("--require <path>", "Add a --require argument to the node process").action(lazy(() => Promise.resolve().then(function () { return require('./index-CIfGsnyl.cjs.js'); }).then((m) => m.command)));
342
335
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
343
336
  "--minify",
344
337
  "Minify the generated code. Does not apply to app package (app is minified by default)."
@@ -353,35 +346,35 @@ function registerScriptCommand(program) {
353
346
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
354
347
  (opt, opts) => opts ? [...opts, opt] : [opt],
355
348
  Array()
356
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-Cjmdbgff.cjs.js'); }).then((m) => m.command)));
349
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-zmkgRMEr.cjs.js'); }).then((m) => m.command)));
357
350
  command.command("lint [directories...]").option(
358
351
  "--format <format>",
359
352
  "Lint report output format",
360
353
  "eslint-formatter-friendly"
361
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-B8OIZt3F.cjs.js'); }).then((m) => m.default)));
362
- 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-ByXbKy71.cjs.js'); }).then((m) => m.default)));
363
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-BsjbtMUW.cjs.js'); }).then((m) => m.default)));
364
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-BL0qUp0J.cjs.js'); }).then((m) => m.pre)));
365
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-BL0qUp0J.cjs.js'); }).then((m) => m.post)));
354
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-ccLOCCQ7.cjs.js'); }).then((m) => m.default)));
355
+ 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-BlJ7hC1z.cjs.js'); }).then((m) => m.default)));
356
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-Xt20-SOd.cjs.js'); }).then((m) => m.default)));
357
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-Cb0EFwcV.cjs.js'); }).then((m) => m.pre)));
358
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-Cb0EFwcV.cjs.js'); }).then((m) => m.post)));
366
359
  }
367
360
  function registerMigrateCommand(program) {
368
361
  const command = program.command("migrate [command]").description("Migration utilities");
369
- 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-D5JpCRDM.cjs.js'); }).then((m) => m.default)));
362
+ 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-C_eAxVdS.cjs.js'); }).then((m) => m.default)));
370
363
  command.command("package-scripts").description("Set package scripts according to each package role").action(
371
- lazy(() => Promise.resolve().then(function () { return require('./packageScripts-CPnlPBBs.cjs.js'); }).then((m) => m.command))
364
+ lazy(() => Promise.resolve().then(function () { return require('./packageScripts-DX6dilK6.cjs.js'); }).then((m) => m.command))
372
365
  );
373
366
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
374
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-GUmRFcjL.cjs.js'); }).then((m) => m.command))
367
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-qb2FnJFt.cjs.js'); }).then((m) => m.command))
375
368
  );
376
369
  command.command("package-lint-configs").description(
377
370
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
378
371
  ).action(
379
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-s5Xf7QSi.cjs.js'); }).then((m) => m.command))
372
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-CZbCJdAI.cjs.js'); }).then((m) => m.command))
380
373
  );
381
374
  command.command("react-router-deps").description(
382
375
  "Migrates the react-router dependencies for all packages to be peer dependencies"
383
376
  ).action(
384
- lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-BBKc6o07.cjs.js'); }).then((m) => m.command))
377
+ lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-CR-hjviw.cjs.js'); }).then((m) => m.command))
385
378
  );
386
379
  }
387
380
  function registerCommands(program) {
@@ -401,7 +394,7 @@ function registerCommands(program) {
401
394
  ).option(
402
395
  "--baseVersion <version>",
403
396
  "The version to use for any new packages (default: 0.1.0)"
404
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-CcqlZCp_.cjs.js'); }).then((m) => m.default)));
397
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-pqVZtq0L.cjs.js'); }).then((m) => m.default)));
405
398
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
406
399
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
407
400
  ).option(
@@ -415,30 +408,30 @@ function registerCommands(program) {
415
408
  ).option("--scope <scope>", "The scope to use for new packages").option(
416
409
  "--npm-registry <URL>",
417
410
  "The package registry to use for new packages"
418
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-CcqlZCp_.cjs.js'); }).then((m) => m.default)));
411
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-pqVZtq0L.cjs.js'); }).then((m) => m.default)));
419
412
  program.command("create-plugin", { hidden: true }).option(
420
413
  "--backend",
421
414
  "Create plugin with the backend dependencies as default"
422
415
  ).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(
423
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-DOLMfwjD.cjs.js'); }).then((m) => m.default))
416
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-DJh1uHOM.cjs.js'); }).then((m) => m.default))
424
417
  );
425
418
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
426
419
  "Diff an existing plugin with the creation template [DEPRECATED]"
427
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-B-i5TSqo.cjs.js'); }).then((m) => m.default)));
420
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-BFT2J47H.cjs.js'); }).then((m) => m.default)));
428
421
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
429
422
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
430
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-ByXbKy71.cjs.js'); }).then((m) => m.default)));
423
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-BlJ7hC1z.cjs.js'); }).then((m) => m.default)));
431
424
  program.command("config:docs").option(
432
425
  "--package <name>",
433
426
  "Only include the schema that applies to the given package"
434
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-Bpn7hI2X.cjs.js'); }).then((m) => m.default)));
427
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-DPxUZ_5M.cjs.js'); }).then((m) => m.default)));
435
428
  program.command("config:print").option(
436
429
  "--package <name>",
437
430
  "Only load config schema that applies to the given package"
438
431
  ).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(
439
432
  "--format <format>",
440
433
  "Format to print the configuration in, either json or yaml [yaml]"
441
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-CmGRME-Z.cjs.js'); }).then((m) => m.default)));
434
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-DKlinc6o.cjs.js'); }).then((m) => m.default)));
442
435
  program.command("config:check").option(
443
436
  "--package <name>",
444
437
  "Only load config schema that applies to the given package"
@@ -447,14 +440,14 @@ function registerCommands(program) {
447
440
  "Enable strict config validation, forbidding errors and unknown keys"
448
441
  ).option(...configOption).description(
449
442
  "Validate that the given configuration loads and matches schema"
450
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-Dpae61Um.cjs.js'); }).then((m) => m.default)));
443
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-DrFKUEDH.cjs.js'); }).then((m) => m.default)));
451
444
  program.command("config:schema").option(
452
445
  "--package <name>",
453
446
  "Only output config schema that applies to the given package"
454
447
  ).option(
455
448
  "--format <format>",
456
449
  "Format to print the schema in, either json or yaml [yaml]"
457
- ).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-C2_ScGGA.cjs.js'); }).then((m) => m.default)));
450
+ ).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--27U4Pnd.cjs.js'); }).then((m) => m.default)));
458
451
  registerRepoCommand(program);
459
452
  registerScriptCommand(program);
460
453
  registerMigrateCommand(program);
@@ -466,8 +459,8 @@ function registerCommands(program) {
466
459
  "--release <version|next|main>",
467
460
  "Bump to a specific Backstage release line or version",
468
461
  "main"
469
- ).option("--skip-install", "Skips yarn install step").option("--skip-migrate", "Skips migration of any moved packages").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-5cKD_8oo.cjs.js'); }).then(function (n) { return n.bump; }).then((m) => m.default)));
470
- 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-LAlja4Wa.cjs.js'); }).then((m) => m.default)));
462
+ ).option("--skip-install", "Skips yarn install step").option("--skip-migrate", "Skips migration of any moved packages").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-DrU2bDOA.cjs.js'); }).then(function (n) { return n.bump; }).then((m) => m.default)));
463
+ 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-DhdvUtZ-.cjs.js'); }).then((m) => m.default)));
471
464
  program.command("versions:migrate").option(
472
465
  "--pattern <glob>",
473
466
  "Override glob for matching packages to upgrade"
@@ -476,18 +469,18 @@ function registerCommands(program) {
476
469
  "Skip code changes and only update package.json files"
477
470
  ).description(
478
471
  "Migrate any plugins that have been moved to the @backstage-community namespace automatically"
479
- ).action(lazy(() => Promise.resolve().then(function () { return require('./bump-5cKD_8oo.cjs.js'); }).then(function (n) { return n.migrate; }).then((m) => m.default)));
480
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-BsjbtMUW.cjs.js'); }).then((m) => m.default)));
472
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./bump-DrU2bDOA.cjs.js'); }).then(function (n) { return n.migrate; }).then((m) => m.default)));
473
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-Xt20-SOd.cjs.js'); }).then((m) => m.default)));
481
474
  program.command("build-workspace <workspace-dir> [packages...]").option(
482
475
  "--alwaysYarnPack",
483
476
  "Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
484
- ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-C6qBqMwe.cjs.js'); }).then((m) => m.default)));
485
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-fxIvYG3M.cjs.js'); }).then((m) => m.default)));
486
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-BHiDvCg2.cjs.js'); }).then((m) => m.default)));
477
+ ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-BZ9SFxD1.cjs.js'); }).then((m) => m.default)));
478
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-C9SBzA6q.cjs.js'); }).then((m) => m.default)));
479
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-BJvAN-EV.cjs.js'); }).then((m) => m.default)));
487
480
  program.command("install [plugin-id]", { hidden: true }).option(
488
481
  "--from <packageJsonFilePath>",
489
482
  "Install from a local package.json containing the installation recipe"
490
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-CK_D5n3K.cjs.js'); }).then((m) => m.default)));
483
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-iHbt_0aM.cjs.js'); }).then((m) => m.default)));
491
484
  }
492
485
  function lazy(getActionFunc) {
493
486
  return async (...args) => {
@@ -531,4 +524,4 @@ exports.devDependencies = devDependencies;
531
524
  exports.paths = paths;
532
525
  exports.version = version;
533
526
  exports.version$1 = version$c;
534
- //# sourceMappingURL=index-D_pjpDix.cjs.js.map
527
+ //# sourceMappingURL=index-D262VPnW.cjs.js.map
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var createDistWorkspace = require('./createDistWorkspace-DwUb2OGs.cjs.js');
4
- var role = require('./role-DzCJuRau.cjs.js');
3
+ var createDistWorkspace = require('./createDistWorkspace-DgvlH81m.cjs.js');
4
+ var role = require('./role-ji3J4lHr.cjs.js');
5
5
  var cliNode = require('@backstage/cli-node');
6
- var index = require('./index-D_pjpDix.cjs.js');
7
- var buildBackend = require('./buildBackend-we2Ba62t.cjs.js');
8
- var config = require('./config-BuuxVw_w.cjs.js');
6
+ var index = require('./index-D262VPnW.cjs.js');
7
+ var buildBackend = require('./buildBackend-DCTPybGH.cjs.js');
8
+ var config = require('./config-Dr_8wy8K.cjs.js');
9
9
  require('chalk');
10
10
  require('fs-extra');
11
11
  require('path');
@@ -13,7 +13,7 @@ require('p-limit');
13
13
  require('os');
14
14
  require('tar');
15
15
  require('lodash/partition');
16
- require('./run-C1b3EDE9.cjs.js');
16
+ require('./run-C1016vC-.cjs.js');
17
17
  require('child_process');
18
18
  require('util');
19
19
  require('@backstage/errors');
@@ -31,7 +31,7 @@ require('./svgrTemplate-BTjBQ3by.cjs.js');
31
31
  require('./entryPoints-CoHH4lBA.cjs.js');
32
32
  require('./parallel-BszNaKyc.cjs.js');
33
33
  require('worker_threads');
34
- require('./productionPack-DotlEIE2.cjs.js');
34
+ require('./productionPack-BfVQNApa.cjs.js');
35
35
  require('npm-packlist');
36
36
  require('commander');
37
37
  require('semver');
@@ -44,7 +44,7 @@ require('react-dev-utils/ModuleScopePlugin');
44
44
  require('run-script-webpack-plugin');
45
45
  require('@manypkg/get-packages');
46
46
  require('webpack-node-externals');
47
- require('./packageDetection-zhqJ-m-A.cjs.js');
47
+ require('./packageDetection-Cfl0g9oD.cjs.js');
48
48
  require('lodash/pickBy');
49
49
  require('mini-css-extract-plugin');
50
50
  require('@pmmmwh/react-refresh-webpack-plugin');
@@ -104,4 +104,4 @@ async function command(opts) {
104
104
  }
105
105
 
106
106
  exports.command = command;
107
- //# sourceMappingURL=index-Cjmdbgff.cjs.js.map
107
+ //# sourceMappingURL=index-zmkgRMEr.cjs.js.map