@backstage/cli 0.27.1 → 0.28.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/config/jest.js +114 -68
  3. package/dist/cjs/{build-D9YZ-dyI.cjs.js → build-CQdcGuBr.cjs.js} +10 -9
  4. package/dist/cjs/{buildBackend-CmtimF8a.cjs.js → buildBackend-CkhZWCz1.cjs.js} +6 -6
  5. package/dist/cjs/{buildWorkspace-C4wCq5WM.cjs.js → buildWorkspace-CZPp9oRm.cjs.js} +7 -6
  6. package/dist/cjs/{bump-BQ6YRL6D.cjs.js → bump-BHEh5ytx.cjs.js} +73 -9
  7. package/dist/cjs/{clean-BllZTky1.cjs.js → clean-W6nxsHeK.cjs.js} +2 -2
  8. package/dist/cjs/{clean-CVl--Ec9.cjs.js → clean-a6Q4k9Vm.cjs.js} +2 -2
  9. package/dist/cjs/{config-BMsjTUVf.cjs.js → config-DBpmZirN.cjs.js} +2 -2
  10. package/dist/cjs/{createDistWorkspace-DxOWPD6z.cjs.js → createDistWorkspace-DdHPGSMS.cjs.js} +8 -6
  11. package/dist/cjs/{docs-DPzCP6Jp.cjs.js → docs-BGyA6jwW.cjs.js} +3 -3
  12. package/dist/cjs/{entryPoints-CoHH4lBA.cjs.js → entryPoints-coip0t-x.cjs.js} +4 -1
  13. package/dist/cjs/{fix-BM8I_DZ2.cjs.js → fix-COitqgqm.cjs.js} +2 -2
  14. package/dist/cjs/{index-CXG8-26G.cjs.js → index-BXv4Xa2e.cjs.js} +15 -12
  15. package/dist/cjs/{index-Cw0lUK20.cjs.js → index-CGuAP7nv.cjs.js} +11 -10
  16. package/dist/cjs/{index-DmUbBCFk.cjs.js → index-b1ouG3q6.cjs.js} +62 -82
  17. package/dist/cjs/{index-BgEQ8aeF.cjs.js → index-j193pV_Y.cjs.js} +2 -2
  18. package/dist/cjs/{info-FKrzx-9W.cjs.js → info-DuAv1Tsx.cjs.js} +5 -6
  19. package/dist/cjs/{lint-6vrbdjyg.cjs.js → lint-BwiDJkjE.cjs.js} +2 -2
  20. package/dist/cjs/{lint-Cm_9pg85.cjs.js → lint-Dsiocf9K.cjs.js} +2 -2
  21. package/dist/cjs/{list-deprecations-C6R3rEyS.cjs.js → list-deprecations-CtUaQgaP.cjs.js} +2 -2
  22. package/dist/cjs/{moduleFederation-8XXecxLD.cjs.js → moduleFederation-DmStnvEg.cjs.js} +4 -4
  23. package/dist/cjs/{new-DJUBFwiF.cjs.js → new-CEnFhTT-.cjs.js} +336 -97
  24. package/dist/cjs/{pack-BqFGqZb5.cjs.js → pack-XLRcGJqH.cjs.js} +5 -4
  25. package/dist/cjs/{packageExports-DvjdOWjC.cjs.js → packageExports-BJBwdvUH.cjs.js} +3 -3
  26. package/dist/cjs/{packageLintConfigs-DGkvTpBd.cjs.js → packageLintConfigs-DeUGBP17.cjs.js} +3 -3
  27. package/dist/cjs/{packageRole-CHz7zkIQ.cjs.js → packageRole-Iuv9NRii.cjs.js} +2 -2
  28. package/dist/cjs/{print-CQU7JzAh.cjs.js → print-Dd6aChXU.cjs.js} +3 -3
  29. package/dist/cjs/{productionPack-BWU8WkGs.cjs.js → productionPack-BxoMbBkH.cjs.js} +106 -5
  30. package/dist/cjs/{role-8b0z7P0n.cjs.js → role-BjiBExhi.cjs.js} +2 -2
  31. package/dist/cjs/{run-CSt1n0F1.cjs.js → run-CpZGNJQr.cjs.js} +2 -2
  32. package/dist/cjs/{schema-B4250t0W.cjs.js → schema-D93FRhBL.cjs.js} +3 -3
  33. package/dist/cjs/{test-Diil1uTk.cjs.js → test-COxIko8N.cjs.js} +3 -3
  34. package/dist/cjs/{test-DVUsmgyZ.cjs.js → test-JcLI2pPM.cjs.js} +3 -3
  35. package/dist/cjs/{validate-DDIGkK2r.cjs.js → validate-CELljsEX.cjs.js} +3 -3
  36. package/dist/cjs/{Lockfile-B4mqBkH6.cjs.js → yarn-6FNAgNBK.cjs.js} +31 -1
  37. package/dist/index.cjs.js +1 -1
  38. package/package.json +21 -22
  39. package/dist/cjs/codeowners-FKKtpciN.cjs.js +0 -91
  40. package/dist/cjs/createPlugin-Dj7O_us6.cjs.js +0 -280
  41. package/dist/cjs/diff-Drt115Zb.cjs.js +0 -436
  42. package/dist/cjs/index-DRp-18FB.cjs.js +0 -1027
  43. package/dist/cjs/install-BMA3RshT.cjs.js +0 -268
  44. package/dist/cjs/lint-Dkx_fBkS.cjs.js +0 -10
  45. package/dist/cjs/packages-Cuogjl7j.cjs.js +0 -75
  46. package/dist/cjs/tasks-DtAiMv5G.cjs.js +0 -188
  47. package/dist/cjs/yarn-Ukl9MOS0.cjs.js +0 -34
@@ -2,9 +2,9 @@
2
2
 
3
3
  var configLoader = require('@backstage/config-loader');
4
4
  var openBrowser = require('react-dev-utils/openBrowser');
5
- var config = require('./config-BMsjTUVf.cjs.js');
5
+ var config = require('./config-DBpmZirN.cjs.js');
6
6
  require('@backstage/config');
7
- require('./index-DmUbBCFk.cjs.js');
7
+ require('./index-b1ouG3q6.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
10
10
  require('fs-extra');
@@ -34,4 +34,4 @@ var docs = async (opts) => {
34
34
  };
35
35
 
36
36
  exports.default = docs;
37
- //# sourceMappingURL=docs-DPzCP6Jp.cjs.js.map
37
+ //# sourceMappingURL=docs-BGyA6jwW.cjs.js.map
@@ -33,6 +33,9 @@ function readEntryPoints(pkg) {
33
33
  `Exports field value must be a string, got '${JSON.stringify(path)}'`
34
34
  );
35
35
  }
36
+ if (process.env.EXPERIMENTAL_TRIM_NEXT_ENTRY && mount === "./next") {
37
+ continue;
38
+ }
36
39
  entryPoints.push(parseEntryPoint(mount, path));
37
40
  }
38
41
  return entryPoints;
@@ -41,4 +44,4 @@ function readEntryPoints(pkg) {
41
44
  }
42
45
 
43
46
  exports.readEntryPoints = readEntryPoints;
44
- //# sourceMappingURL=entryPoints-CoHH4lBA.cjs.js.map
47
+ //# sourceMappingURL=entryPoints-coip0t-x.cjs.js.map
@@ -3,7 +3,7 @@
3
3
  var cliNode = require('@backstage/cli-node');
4
4
  var fs = require('fs-extra');
5
5
  var path = require('path');
6
- var index = require('./index-DmUbBCFk.cjs.js');
6
+ var index = require('./index-b1ouG3q6.cjs.js');
7
7
  var publishing = require('./publishing-DQtsKTbc.cjs.js');
8
8
  require('commander');
9
9
  require('chalk');
@@ -359,4 +359,4 @@ exports.fixSideEffects = fixSideEffects;
359
359
  exports.printPackageFixHint = printPackageFixHint;
360
360
  exports.readFixablePackages = readFixablePackages;
361
361
  exports.writeFixedPackages = writeFixedPackages;
362
- //# sourceMappingURL=fix-BM8I_DZ2.cjs.js.map
362
+ //# sourceMappingURL=fix-COitqgqm.cjs.js.map
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var role = require('./role-8b0z7P0n.cjs.js');
3
+ var role = require('./role-BjiBExhi.cjs.js');
4
4
  var fs = require('fs-extra');
5
- var index = require('./index-DmUbBCFk.cjs.js');
5
+ var index = require('./index-b1ouG3q6.cjs.js');
6
6
  var webpack = require('webpack');
7
- var moduleFederation = require('./moduleFederation-8XXecxLD.cjs.js');
7
+ var moduleFederation = require('./moduleFederation-DmStnvEg.cjs.js');
8
8
  require('yn');
9
9
  var path = require('path');
10
10
  require('react-dev-utils/FileSizeReporter');
@@ -21,7 +21,7 @@ require('@pmmmwh/react-refresh-webpack-plugin');
21
21
  require('@manypkg/get-packages');
22
22
  require('webpack-node-externals');
23
23
  require('lodash/pickBy');
24
- require('./run-CSt1n0F1.cjs.js');
24
+ require('./run-CpZGNJQr.cjs.js');
25
25
  require('mini-css-extract-plugin');
26
26
  var openBrowser = require('react-dev-utils/openBrowser');
27
27
  var WebpackDevServer = require('webpack-dev-server');
@@ -34,10 +34,10 @@ var errors = require('@backstage/errors');
34
34
  var debounce = require('lodash/debounce');
35
35
  var url = require('url');
36
36
  var spawn = require('cross-spawn');
37
- var config = require('./config-BMsjTUVf.cjs.js');
37
+ var config = require('./config-DBpmZirN.cjs.js');
38
38
  require('commander');
39
39
  require('semver');
40
- require('./entryPoints-CoHH4lBA.cjs.js');
40
+ require('./entryPoints-coip0t-x.cjs.js');
41
41
  require('./svgrTemplate-BTjBQ3by.cjs.js');
42
42
  require('p-queue');
43
43
  require('child_process');
@@ -506,6 +506,9 @@ async function startBackend(options) {
506
506
  });
507
507
  await waitForExit();
508
508
  } else {
509
+ console.warn(
510
+ "LEGACY_BACKEND_START is deprecated and will be removed in a future release"
511
+ );
509
512
  const waitForExit = await cleanDistAndServeBackend({
510
513
  entry: "src/index",
511
514
  checksEnabled: options.checksEnabled,
@@ -521,12 +524,9 @@ async function startBackendPlugin(options) {
521
524
  const hasDevIndexEntry = await fs__default.default.pathExists(
522
525
  index.paths.resolveTarget("dev", "index.ts")
523
526
  );
524
- const hasSrcIndexEntry = await fs__default.default.pathExists(
525
- index.paths.resolveTarget("src", "run.ts")
526
- );
527
- if (!hasDevIndexEntry && !hasSrcIndexEntry) {
527
+ if (!hasDevIndexEntry) {
528
528
  console.warn(
529
- hasSrcIndexEntry ? `The 'dev' directory is missing. The plugin might not be updated for the new backend system. To run, use "LEGACY_BACKEND_START=1 yarn start".` : `The 'dev' directory is missing. Please create a proper dev/index.ts in order to start the plugin.`
529
+ `The 'dev' directory is missing. Please create a proper dev/index.ts in order to start the plugin.`
530
530
  );
531
531
  return;
532
532
  }
@@ -547,6 +547,9 @@ async function startBackendPlugin(options) {
547
547
  );
548
548
  return;
549
549
  }
550
+ console.warn(
551
+ "LEGACY_BACKEND_START is deprecated and will be removed in a future release"
552
+ );
550
553
  const waitForExit = await cleanDistAndServeBackend({
551
554
  entry: "src/run",
552
555
  checksEnabled: options.checksEnabled,
@@ -619,4 +622,4 @@ async function command(opts) {
619
622
  }
620
623
 
621
624
  exports.command = command;
622
- //# sourceMappingURL=index-CXG8-26G.cjs.js.map
625
+ //# sourceMappingURL=index-BXv4Xa2e.cjs.js.map
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var createDistWorkspace = require('./createDistWorkspace-DxOWPD6z.cjs.js');
4
- var role = require('./role-8b0z7P0n.cjs.js');
3
+ var createDistWorkspace = require('./createDistWorkspace-DdHPGSMS.cjs.js');
4
+ var role = require('./role-BjiBExhi.cjs.js');
5
5
  var cliNode = require('@backstage/cli-node');
6
- var index = require('./index-DmUbBCFk.cjs.js');
7
- var buildBackend = require('./buildBackend-CmtimF8a.cjs.js');
6
+ var index = require('./index-b1ouG3q6.cjs.js');
7
+ var buildBackend = require('./buildBackend-CkhZWCz1.cjs.js');
8
8
  var chalk = require('chalk');
9
9
  require('fs-extra');
10
10
  require('path');
@@ -12,7 +12,7 @@ require('p-limit');
12
12
  require('os');
13
13
  require('tar');
14
14
  require('lodash/partition');
15
- require('./run-CSt1n0F1.cjs.js');
15
+ require('./run-CpZGNJQr.cjs.js');
16
16
  require('child_process');
17
17
  require('util');
18
18
  require('@backstage/errors');
@@ -27,11 +27,12 @@ require('@rollup/plugin-json');
27
27
  require('@rollup/plugin-yaml');
28
28
  require('rollup-pluginutils');
29
29
  require('./svgrTemplate-BTjBQ3by.cjs.js');
30
- require('./entryPoints-CoHH4lBA.cjs.js');
30
+ require('./entryPoints-coip0t-x.cjs.js');
31
31
  require('./parallel-BszNaKyc.cjs.js');
32
32
  require('worker_threads');
33
- require('./productionPack-BWU8WkGs.cjs.js');
33
+ require('./productionPack-BxoMbBkH.cjs.js');
34
34
  require('npm-packlist');
35
+ require('ts-morph');
35
36
  require('commander');
36
37
  require('semver');
37
38
  require('@backstage/cli-common');
@@ -45,7 +46,7 @@ require('run-script-webpack-plugin');
45
46
  require('@pmmmwh/react-refresh-webpack-plugin');
46
47
  require('@manypkg/get-packages');
47
48
  require('webpack-node-externals');
48
- require('./moduleFederation-8XXecxLD.cjs.js');
49
+ require('./moduleFederation-DmStnvEg.cjs.js');
49
50
  require('lodash/pickBy');
50
51
  require('mini-css-extract-plugin');
51
52
  require('yn');
@@ -56,7 +57,7 @@ require('react-dev-utils/FileSizeReporter');
56
57
  require('react-dev-utils/formatWebpackMessages');
57
58
  require('react-dev-utils/openBrowser');
58
59
  require('webpack-dev-server');
59
- require('./config-BMsjTUVf.cjs.js');
60
+ require('./config-DBpmZirN.cjs.js');
60
61
  require('@backstage/config-loader');
61
62
 
62
63
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -127,4 +128,4 @@ async function command(opts) {
127
128
  }
128
129
 
129
130
  exports.command = command;
130
- //# sourceMappingURL=index-Cw0lUK20.cjs.js.map
131
+ //# sourceMappingURL=index-CGuAP7nv.cjs.js.map
@@ -47,13 +47,11 @@ class NotFoundError extends CustomError {
47
47
 
48
48
  const paths = cliCommon.findPaths(__dirname);
49
49
 
50
- var version$f = "0.25.0";
50
+ var version$e = "1.0.1-next.0";
51
51
 
52
- var version$e = "1.0.0";
52
+ var version$d = "1.0.1-next.1";
53
53
 
54
- var version$d = "1.0.0";
55
-
56
- var version$c = "0.27.1";
54
+ var version$c = "0.28.0-next.1";
57
55
  var dependencies = {
58
56
  "@backstage/catalog-model": "workspace:^",
59
57
  "@backstage/cli-common": "workspace:^",
@@ -103,7 +101,6 @@ var dependencies = {
103
101
  "cross-spawn": "^7.0.3",
104
102
  "css-loader": "^6.5.1",
105
103
  "ctrlc-windows": "^2.1.0",
106
- diff: "^5.0.0",
107
104
  esbuild: "^0.23.0",
108
105
  "esbuild-loader": "^4.0.0",
109
106
  eslint: "^8.6.0",
@@ -160,6 +157,7 @@ var dependencies = {
160
157
  "swc-loader": "^0.2.3",
161
158
  tar: "^6.1.12",
162
159
  "terser-webpack-plugin": "^5.1.3",
160
+ "ts-morph": "^23.0.0",
163
161
  util: "^0.12.3",
164
162
  webpack: "^5.70.0",
165
163
  "webpack-dev-server": "^5.0.0",
@@ -170,7 +168,7 @@ var dependencies = {
170
168
  zod: "^3.22.4"
171
169
  };
172
170
  var devDependencies = {
173
- "@backstage/backend-common": "workspace:^",
171
+ "@backstage/backend-common": "^0.25.0",
174
172
  "@backstage/backend-plugin-api": "workspace:^",
175
173
  "@backstage/backend-test-utils": "workspace:^",
176
174
  "@backstage/config": "workspace:^",
@@ -181,7 +179,6 @@ var devDependencies = {
181
179
  "@backstage/test-utils": "workspace:^",
182
180
  "@backstage/theme": "workspace:^",
183
181
  "@types/cross-spawn": "^6.0.2",
184
- "@types/diff": "^5.0.0",
185
182
  "@types/ejs": "^3.1.3",
186
183
  "@types/express": "^4.17.6",
187
184
  "@types/fs-extra": "^11.0.0",
@@ -207,28 +204,27 @@ var devDependencies = {
207
204
 
208
205
  var version$b = "1.2.0";
209
206
 
210
- var version$a = "1.15.0";
207
+ var version$a = "1.15.1-next.1";
211
208
 
212
- var version$9 = "0.15.0";
209
+ var version$9 = "0.15.1-next.1";
213
210
 
214
- var version$8 = "1.9.4";
211
+ var version$8 = "1.10.0-next.1";
215
212
 
216
- var version$7 = "1.1.0";
213
+ var version$7 = "1.1.2-next.1";
217
214
 
218
- var version$6 = "1.6.0";
215
+ var version$6 = "1.6.1-next.1";
219
216
 
220
- var version$5 = "0.4.11";
217
+ var version$5 = "0.5.0-next.1";
221
218
 
222
- var version$4 = "0.23.0";
219
+ var version$4 = "0.23.1-next.0";
223
220
 
224
- var version$3 = "0.2.0";
221
+ var version$3 = "0.2.1-next.0";
225
222
 
226
- var version$2 = "0.5.7";
223
+ var version$2 = "0.5.8-next.0";
227
224
 
228
- var version$1 = "0.5.0";
225
+ var version$1 = "0.5.1-next.1";
229
226
 
230
227
  const packageVersions = {
231
- "@backstage/backend-common": version$f,
232
228
  "@backstage/backend-defaults": version$1,
233
229
  "@backstage/backend-plugin-api": version$e,
234
230
  "@backstage/backend-test-utils": version$d,
@@ -290,9 +286,6 @@ const configOption = [
290
286
  (opt, opts) => opts ? [...opts, opt] : [opt],
291
287
  Array()
292
288
  ];
293
- function registerOnboardCommand(program) {
294
- program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-DRp-18FB.cjs.js'); }).then((m) => m.command)));
295
- }
296
289
  function registerRepoCommand(program) {
297
290
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
298
291
  command.command("build").description(
@@ -306,7 +299,7 @@ function registerRepoCommand(program) {
306
299
  ).option(
307
300
  "--minify",
308
301
  "Minify the generated code. Does not apply to app package (app is minified by default)."
309
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-D9YZ-dyI.cjs.js'); }).then((m) => m.command)));
302
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-CQdcGuBr.cjs.js'); }).then((m) => m.command)));
310
303
  command.command("lint").description("Lint all packages in the project").option(
311
304
  "--format <format>",
312
305
  "Lint report output format",
@@ -314,17 +307,17 @@ function registerRepoCommand(program) {
314
307
  ).option(
315
308
  "--since <ref>",
316
309
  "Only lint packages that changed since the specified ref"
317
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-Cm_9pg85.cjs.js'); }).then((m) => m.command)));
310
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-Dsiocf9K.cjs.js'); }).then((m) => m.command)));
318
311
  command.command("fix").description("Automatically fix packages in the project").option(
319
312
  "--publish",
320
313
  "Enable additional fixes that only apply when publishing packages"
321
314
  ).option(
322
315
  "--check",
323
316
  "Fail if any packages would have been changed by the command"
324
- ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-BM8I_DZ2.cjs.js'); }).then((m) => m.command)));
325
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-CVl--Ec9.cjs.js'); }).then((m) => m.command)));
317
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-COitqgqm.cjs.js'); }).then((m) => m.command)));
318
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-a6Q4k9Vm.cjs.js'); }).then((m) => m.command)));
326
319
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
327
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-C6R3rEyS.cjs.js'); }).then((m) => m.command))
320
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-CtUaQgaP.cjs.js'); }).then((m) => m.command))
328
321
  );
329
322
  command.command("test").allowUnknownOption(true).option(
330
323
  "--since <ref>",
@@ -332,14 +325,14 @@ function registerRepoCommand(program) {
332
325
  ).option(
333
326
  "--jest-help",
334
327
  "Show help for Jest CLI options, which are passed through"
335
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-DVUsmgyZ.cjs.js'); }).then((m) => m.command)));
328
+ ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-JcLI2pPM.cjs.js'); }).then((m) => m.command)));
336
329
  }
337
330
  function registerScriptCommand(program) {
338
331
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
339
332
  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(
340
333
  "--inspect-brk [host]",
341
334
  "Enable debugger in Node.js environments, breaking before code starts"
342
- ).option("--require <path>", "Add a --require argument to the node process").action(lazy(() => Promise.resolve().then(function () { return require('./index-CXG8-26G.cjs.js'); }).then((m) => m.command)));
335
+ ).option("--require <path>", "Add a --require argument to the node process").action(lazy(() => Promise.resolve().then(function () { return require('./index-BXv4Xa2e.cjs.js'); }).then((m) => m.command)));
343
336
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
344
337
  "--minify",
345
338
  "Minify the generated code. Does not apply to app package (app is minified by default)."
@@ -354,30 +347,30 @@ function registerScriptCommand(program) {
354
347
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
355
348
  (opt, opts) => opts ? [...opts, opt] : [opt],
356
349
  Array()
357
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-Cw0lUK20.cjs.js'); }).then((m) => m.command)));
350
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-CGuAP7nv.cjs.js'); }).then((m) => m.command)));
358
351
  command.command("lint [directories...]").option(
359
352
  "--format <format>",
360
353
  "Lint report output format",
361
354
  "eslint-formatter-friendly"
362
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-6vrbdjyg.cjs.js'); }).then((m) => m.default)));
363
- 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-Diil1uTk.cjs.js'); }).then((m) => m.default)));
364
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-BllZTky1.cjs.js'); }).then((m) => m.default)));
365
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-BqFGqZb5.cjs.js'); }).then((m) => m.pre)));
366
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-BqFGqZb5.cjs.js'); }).then((m) => m.post)));
355
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-BwiDJkjE.cjs.js'); }).then((m) => m.default)));
356
+ 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-COxIko8N.cjs.js'); }).then((m) => m.default)));
357
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-W6nxsHeK.cjs.js'); }).then((m) => m.default)));
358
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-XLRcGJqH.cjs.js'); }).then((m) => m.pre)));
359
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-XLRcGJqH.cjs.js'); }).then((m) => m.post)));
367
360
  }
368
361
  function registerMigrateCommand(program) {
369
362
  const command = program.command("migrate [command]").description("Migration utilities");
370
- 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-CHz7zkIQ.cjs.js'); }).then((m) => m.default)));
363
+ 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-Iuv9NRii.cjs.js'); }).then((m) => m.default)));
371
364
  command.command("package-scripts").description("Set package scripts according to each package role").action(
372
365
  lazy(() => Promise.resolve().then(function () { return require('./packageScripts-DX6dilK6.cjs.js'); }).then((m) => m.command))
373
366
  );
374
367
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
375
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-DvjdOWjC.cjs.js'); }).then((m) => m.command))
368
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-BJBwdvUH.cjs.js'); }).then((m) => m.command))
376
369
  );
377
370
  command.command("package-lint-configs").description(
378
371
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
379
372
  ).action(
380
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-DGkvTpBd.cjs.js'); }).then((m) => m.command))
373
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-DeUGBP17.cjs.js'); }).then((m) => m.command))
381
374
  );
382
375
  command.command("react-router-deps").description(
383
376
  "Migrates the react-router dependencies for all packages to be peer dependencies"
@@ -405,44 +398,18 @@ function registerCommands(program) {
405
398
  ).option(
406
399
  "--license <license>",
407
400
  "The license to use for any new packages (default: Apache-2.0)"
408
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-DJUBFwiF.cjs.js'); }).then((m) => m.default)));
409
- program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
410
- "Open up an interactive guide to creating new things in your app [DEPRECATED]"
411
- ).option(
412
- "--select <name>",
413
- "Select the thing you want to be creating upfront"
414
- ).option(
415
- "--option <name>=<value>",
416
- "Pre-fill options for the creation process",
417
- (opt, arr) => [...arr, opt],
418
- []
419
- ).option("--scope <scope>", "The scope to use for new packages").option(
420
- "--npm-registry <URL>",
421
- "The package registry to use for new packages"
422
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-DJUBFwiF.cjs.js'); }).then((m) => m.default)));
423
- program.command("create-plugin", { hidden: true }).option(
424
- "--backend",
425
- "Create plugin with the backend dependencies as default"
426
- ).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(
427
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-Dj7O_us6.cjs.js'); }).then((m) => m.default))
428
- );
429
- program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
430
- "Diff an existing plugin with the creation template [DEPRECATED]"
431
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-Drt115Zb.cjs.js'); }).then((m) => m.default)));
432
- program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
433
- "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
434
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-Diil1uTk.cjs.js'); }).then((m) => m.default)));
401
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-CEnFhTT-.cjs.js'); }).then((m) => m.default)));
435
402
  program.command("config:docs").option(
436
403
  "--package <name>",
437
404
  "Only include the schema that applies to the given package"
438
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-DPzCP6Jp.cjs.js'); }).then((m) => m.default)));
405
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-BGyA6jwW.cjs.js'); }).then((m) => m.default)));
439
406
  program.command("config:print").option(
440
407
  "--package <name>",
441
408
  "Only load config schema that applies to the given package"
442
409
  ).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(
443
410
  "--format <format>",
444
411
  "Format to print the configuration in, either json or yaml [yaml]"
445
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-CQU7JzAh.cjs.js'); }).then((m) => m.default)));
412
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-Dd6aChXU.cjs.js'); }).then((m) => m.default)));
446
413
  program.command("config:check").option(
447
414
  "--package <name>",
448
415
  "Only load config schema that applies to the given package"
@@ -451,18 +418,17 @@ function registerCommands(program) {
451
418
  "Enable strict config validation, forbidding errors and unknown keys"
452
419
  ).option(...configOption).description(
453
420
  "Validate that the given configuration loads and matches schema"
454
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-DDIGkK2r.cjs.js'); }).then((m) => m.default)));
421
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-CELljsEX.cjs.js'); }).then((m) => m.default)));
455
422
  program.command("config:schema").option(
456
423
  "--package <name>",
457
424
  "Only output config schema that applies to the given package"
458
425
  ).option(
459
426
  "--format <format>",
460
427
  "Format to print the schema in, either json or yaml [yaml]"
461
- ).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-B4250t0W.cjs.js'); }).then((m) => m.default)));
428
+ ).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-D93FRhBL.cjs.js'); }).then((m) => m.default)));
462
429
  registerRepoCommand(program);
463
430
  registerScriptCommand(program);
464
431
  registerMigrateCommand(program);
465
- registerOnboardCommand(program);
466
432
  program.command("versions:bump").option(
467
433
  "--pattern <glob>",
468
434
  "Override glob for matching packages to upgrade"
@@ -470,8 +436,7 @@ function registerCommands(program) {
470
436
  "--release <version|next|main>",
471
437
  "Bump to a specific Backstage release line or version",
472
438
  "main"
473
- ).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-BQ6YRL6D.cjs.js'); }).then(function (n) { return n.bump; }).then((m) => m.default)));
474
- program.command("versions:check", { hidden: true }).option("--fix", "Fix any auto-fixable versioning problems").description("Check Backstage package versioning").action(lazy(() => Promise.resolve().then(function () { return require('./lint-Dkx_fBkS.cjs.js'); }).then((m) => m.default)));
439
+ ).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-BHEh5ytx.cjs.js'); }).then(function (n) { return n.bump; }).then((m) => m.default)));
475
440
  program.command("versions:migrate").option(
476
441
  "--pattern <glob>",
477
442
  "Override glob for matching packages to upgrade"
@@ -480,18 +445,33 @@ function registerCommands(program) {
480
445
  "Skip code changes and only update package.json files"
481
446
  ).description(
482
447
  "Migrate any plugins that have been moved to the @backstage-community namespace automatically"
483
- ).action(lazy(() => Promise.resolve().then(function () { return require('./bump-BQ6YRL6D.cjs.js'); }).then(function (n) { return n.migrate; }).then((m) => m.default)));
484
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-BllZTky1.cjs.js'); }).then((m) => m.default)));
448
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./bump-BHEh5ytx.cjs.js'); }).then(function (n) { return n.migrate; }).then((m) => m.default)));
485
449
  program.command("build-workspace <workspace-dir> [packages...]").option(
486
450
  "--alwaysYarnPack",
487
451
  "Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
488
- ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-C4wCq5WM.cjs.js'); }).then((m) => m.default)));
489
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-BgEQ8aeF.cjs.js'); }).then((m) => m.default)));
490
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-FKrzx-9W.cjs.js'); }).then((m) => m.default)));
491
- program.command("install [plugin-id]", { hidden: true }).option(
492
- "--from <packageJsonFilePath>",
493
- "Install from a local package.json containing the installation recipe"
494
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-BMA3RshT.cjs.js'); }).then((m) => m.default)));
452
+ ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-CZPp9oRm.cjs.js'); }).then((m) => m.default)));
453
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-j193pV_Y.cjs.js'); }).then((m) => m.default)));
454
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-DuAv1Tsx.cjs.js'); }).then((m) => m.default)));
455
+ program.command("create").allowUnknownOption(true).action(removed("use 'backstage-cli new' instead"));
456
+ program.command("create-plugin").allowUnknownOption(true).action(removed("use 'backstage-cli new' instead"));
457
+ program.command("plugin:diff").allowUnknownOption(true).action(removed("use 'backstage-cli fix' instead"));
458
+ program.command("test").allowUnknownOption(true).action(
459
+ removed(
460
+ "use 'backstage-cli repo test' or 'backstage-cli package test' instead"
461
+ )
462
+ );
463
+ program.command("clean").allowUnknownOption(true).action(removed("use 'backstage-cli package clean' instead"));
464
+ program.command("versions:check").allowUnknownOption(true).action(removed("use 'yarn dedupe' or 'yarn-deduplicate' instead"));
465
+ program.command("install").allowUnknownOption(true).action(removed());
466
+ program.command("onboard").allowUnknownOption(true).action(removed());
467
+ }
468
+ function removed(message) {
469
+ return () => {
470
+ console.error(
471
+ message ? `This command has been removed, ${message}` : "This command has been removed"
472
+ );
473
+ process.exit(1);
474
+ };
495
475
  }
496
476
  function lazy(getActionFunc) {
497
477
  return async (...args) => {
@@ -535,4 +515,4 @@ exports.devDependencies = devDependencies;
535
515
  exports.paths = paths;
536
516
  exports.version = version;
537
517
  exports.version$1 = version$c;
538
- //# sourceMappingURL=index-DmUbBCFk.cjs.js.map
518
+ //# sourceMappingURL=index-b1ouG3q6.cjs.js.map
@@ -4,7 +4,7 @@ var fs = require('fs-extra');
4
4
  var chalk = require('chalk');
5
5
  var yaml = require('yaml');
6
6
  var inquirer = require('inquirer');
7
- var index$1 = require('./index-DmUbBCFk.cjs.js');
7
+ var index$1 = require('./index-b1ouG3q6.cjs.js');
8
8
  var crypto = require('crypto');
9
9
  var openBrowser = require('react-dev-utils/openBrowser');
10
10
  var request = require('@octokit/request');
@@ -230,4 +230,4 @@ async function verifyGithubOrg(org) {
230
230
  }
231
231
 
232
232
  exports.default = index;
233
- //# sourceMappingURL=index-BgEQ8aeF.cjs.js.map
233
+ //# sourceMappingURL=index-j193pV_Y.cjs.js.map
@@ -1,13 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DmUbBCFk.cjs.js');
3
+ var index = require('./index-b1ouG3q6.cjs.js');
4
4
  var os = require('os');
5
- var run = require('./run-CSt1n0F1.cjs.js');
6
- var Lockfile = require('./Lockfile-B4mqBkH6.cjs.js');
5
+ var run = require('./run-CpZGNJQr.cjs.js');
6
+ var yarn = require('./yarn-6FNAgNBK.cjs.js');
7
7
  require('minimatch');
8
8
  require('@manypkg/get-packages');
9
9
  require('chalk');
10
- require('./yarn-Ukl9MOS0.cjs.js');
11
10
  var fs = require('fs-extra');
12
11
  require('commander');
13
12
  require('semver');
@@ -46,7 +45,7 @@ var info = async () => {
46
45
  console.log();
47
46
  console.log("Dependencies:");
48
47
  const lockfilePath = index.paths.resolveTargetRoot("yarn.lock");
49
- const lockfile = await Lockfile.Lockfile.load(lockfilePath);
48
+ const lockfile = await yarn.Lockfile.load(lockfilePath);
50
49
  const deps = [...lockfile.keys()].filter((n) => n.startsWith("@backstage/"));
51
50
  const maxLength = Math.max(...deps.map((d) => d.length));
52
51
  for (const dep of deps) {
@@ -57,4 +56,4 @@ var info = async () => {
57
56
  };
58
57
 
59
58
  exports.default = info;
60
- //# sourceMappingURL=info-FKrzx-9W.cjs.js.map
59
+ //# sourceMappingURL=info-DuAv1Tsx.cjs.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DmUbBCFk.cjs.js');
3
+ var index = require('./index-b1ouG3q6.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-6vrbdjyg.cjs.js.map
36
+ //# sourceMappingURL=lint-BwiDJkjE.cjs.js.map
@@ -3,7 +3,7 @@
3
3
  var chalk = require('chalk');
4
4
  var path = require('path');
5
5
  var cliNode = require('@backstage/cli-node');
6
- var index = require('./index-DmUbBCFk.cjs.js');
6
+ var index = require('./index-b1ouG3q6.cjs.js');
7
7
  var parallel = require('./parallel-BszNaKyc.cjs.js');
8
8
  require('commander');
9
9
  require('fs-extra');
@@ -88,4 +88,4 @@ async function command(opts) {
88
88
  }
89
89
 
90
90
  exports.command = command;
91
- //# sourceMappingURL=lint-Cm_9pg85.cjs.js.map
91
+ //# sourceMappingURL=lint-Dsiocf9K.cjs.js.map
@@ -4,7 +4,7 @@ var chalk = require('chalk');
4
4
  var eslint = require('eslint');
5
5
  var path = require('path');
6
6
  var cliNode = require('@backstage/cli-node');
7
- var index = require('./index-DmUbBCFk.cjs.js');
7
+ var index = require('./index-b1ouG3q6.cjs.js');
8
8
  require('commander');
9
9
  require('fs-extra');
10
10
  require('semver');
@@ -76,4 +76,4 @@ async function command(opts) {
76
76
  }
77
77
 
78
78
  exports.command = command;
79
- //# sourceMappingURL=list-deprecations-C6R3rEyS.cjs.js.map
79
+ //# sourceMappingURL=list-deprecations-CtUaQgaP.cjs.js.map
@@ -11,13 +11,13 @@ var cliCommon = require('@backstage/cli-common');
11
11
  var ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
12
12
  var runScriptWebpackPlugin = require('run-script-webpack-plugin');
13
13
  var ReactRefreshPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
14
- var index = require('./index-DmUbBCFk.cjs.js');
14
+ var index = require('./index-b1ouG3q6.cjs.js');
15
15
  var fs = require('fs-extra');
16
16
  var getPackages = require('@manypkg/get-packages');
17
17
  var nodeExternals = require('webpack-node-externals');
18
18
  var pickBy = require('lodash/pickBy');
19
- var entryPoints = require('./entryPoints-CoHH4lBA.cjs.js');
20
- var run = require('./run-CSt1n0F1.cjs.js');
19
+ var entryPoints = require('./entryPoints-coip0t-x.cjs.js');
20
+ var run = require('./run-CpZGNJQr.cjs.js');
21
21
  var MiniCssExtractPlugin = require('mini-css-extract-plugin');
22
22
  var svgrTemplate = require('./svgrTemplate-BTjBQ3by.cjs.js');
23
23
  var yn = require('yn');
@@ -907,4 +907,4 @@ exports.resolveBaseUrl = resolveBaseUrl;
907
907
  exports.resolveBundlingPaths = resolveBundlingPaths;
908
908
  exports.resolveEndpoint = resolveEndpoint;
909
909
  exports.resolveOptionalBundlingPaths = resolveOptionalBundlingPaths;
910
- //# sourceMappingURL=moduleFederation-8XXecxLD.cjs.js.map
910
+ //# sourceMappingURL=moduleFederation-DmStnvEg.cjs.js.map