@backstage/cli 0.23.1 → 0.24.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 (44) hide show
  1. package/CHANGELOG.md +37 -2
  2. package/dist/cjs/{build-27a34e5d.cjs.js → build-abeea96e.cjs.js} +10 -11
  3. package/dist/cjs/{buildBackend-bb6ecade.cjs.js → buildBackend-43984aaf.cjs.js} +7 -7
  4. package/dist/cjs/{buildWorkspace-9de61967.cjs.js → buildWorkspace-e84d81f1.cjs.js} +7 -7
  5. package/dist/cjs/{bump-332128e5.cjs.js → bump-6f5eafee.cjs.js} +6 -6
  6. package/dist/cjs/{clean-a24eded0.cjs.js → clean-1e88f351.cjs.js} +2 -2
  7. package/dist/cjs/{clean-fcbc16a9.cjs.js → clean-56cba0c6.cjs.js} +2 -2
  8. package/dist/cjs/{codeowners-c90142e3.cjs.js → codeowners-524a1ae2.cjs.js} +2 -2
  9. package/dist/cjs/{config-864614b9.cjs.js → config-5070905f.cjs.js} +2 -2
  10. package/dist/cjs/{createDistWorkspace-f023a2c9.cjs.js → createDistWorkspace-0714cd1a.cjs.js} +7 -155
  11. package/dist/cjs/{createPlugin-a4796872.cjs.js → createPlugin-d38a681b.cjs.js} +4 -4
  12. package/dist/cjs/{diff-e193cc5c.cjs.js → diff-6e46a126.cjs.js} +2 -2
  13. package/dist/cjs/{docs-5603b020.cjs.js → docs-f4525db2.cjs.js} +3 -3
  14. package/dist/cjs/{fix-c878a75e.cjs.js → fix-4efe3191.cjs.js} +2 -2
  15. package/dist/cjs/{index-0954b0a9.cjs.js → index-2b568c50.cjs.js} +123 -55
  16. package/dist/cjs/{index-f2ecec6c.cjs.js → index-5756ab31.cjs.js} +3 -3
  17. package/dist/cjs/{index-592f2a54.cjs.js → index-5d057489.cjs.js} +2 -2
  18. package/dist/cjs/{index-90619a49.cjs.js → index-691ac584.cjs.js} +11 -12
  19. package/dist/cjs/{index-148826cb.cjs.js → index-c1a68166.cjs.js} +48 -51
  20. package/dist/cjs/{info-d76b408b.cjs.js → info-224a5354.cjs.js} +3 -3
  21. package/dist/cjs/{install-2e390e27.cjs.js → install-ade97143.cjs.js} +4 -4
  22. package/dist/cjs/{lint-29ebbcf4.cjs.js → lint-5ae74a9a.cjs.js} +3 -3
  23. package/dist/cjs/{lint-d45f133d.cjs.js → lint-692a0706.cjs.js} +3 -3
  24. package/dist/cjs/{lint-527efdef.cjs.js → lint-f12d46ab.cjs.js} +2 -2
  25. package/dist/cjs/{list-deprecations-0fdb13ae.cjs.js → list-deprecations-ca9c7061.cjs.js} +2 -2
  26. package/dist/cjs/{new-e0569069.cjs.js → new-e324e245.cjs.js} +4 -4
  27. package/dist/cjs/{pack-b755dc5d.cjs.js → pack-0a6afd18.cjs.js} +3 -3
  28. package/dist/cjs/{packageDetection-4281c9dc.cjs.js → packageDetection-60b734bd.cjs.js} +30 -25
  29. package/dist/cjs/{packageExports-2323fa69.cjs.js → packageExports-a39f9d87.cjs.js} +3 -3
  30. package/dist/cjs/{packageLintConfigs-8c269c68.cjs.js → packageLintConfigs-94db4d13.cjs.js} +3 -3
  31. package/dist/cjs/{packageRole-9318ff16.cjs.js → packageRole-f428eb9e.cjs.js} +2 -2
  32. package/dist/cjs/{packageScripts-c6721fac.cjs.js → packageScripts-bb7b6de2.cjs.js} +5 -8
  33. package/dist/cjs/{packages-ea62bc19.cjs.js → packages-b616bf24.cjs.js} +3 -3
  34. package/dist/cjs/{parallel-a8f6219c.cjs.js → parallel-2d9d247e.cjs.js} +1 -48
  35. package/dist/cjs/{print-ec4b9878.cjs.js → print-06b17d5c.cjs.js} +3 -3
  36. package/dist/cjs/{productionPack-d569941a.cjs.js → productionPack-8b9ac9b7.cjs.js} +4 -42
  37. package/dist/cjs/{role-1092264b.cjs.js → role-56df969b.cjs.js} +2 -2
  38. package/dist/cjs/{run-b8799a58.cjs.js → run-31c52485.cjs.js} +2 -2
  39. package/dist/cjs/{schema-04e7321f.cjs.js → schema-6c264625.cjs.js} +3 -3
  40. package/dist/cjs/{test-87ae3d0d.cjs.js → test-6e9a0d08.cjs.js} +3 -3
  41. package/dist/cjs/{test-56e64a6d.cjs.js → test-870d60f6.cjs.js} +3 -3
  42. package/dist/cjs/{validate-81616b20.cjs.js → validate-9dac0c57.cjs.js} +3 -3
  43. package/dist/index.cjs.js +1 -1
  44. package/package.json +29 -17
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var role = require('./role-1092264b.cjs.js');
3
+ var role = require('./role-56df969b.cjs.js');
4
4
  var fs = require('fs-extra');
5
- var index = require('./index-148826cb.cjs.js');
5
+ var index = require('./index-c1a68166.cjs.js');
6
6
  var webpack = require('webpack');
7
- var packageDetection = require('./packageDetection-4281c9dc.cjs.js');
7
+ var packageDetection = require('./packageDetection-60b734bd.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-b8799a58.cjs.js');
21
+ require('./run-31c52485.cjs.js');
22
22
  require('mini-css-extract-plugin');
23
23
  require('@pmmmwh/react-refresh-webpack-plugin');
24
24
  var chalk = require('chalk');
@@ -40,8 +40,8 @@ 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-29ebbcf4.cjs.js');
44
- var config = require('./config-864614b9.cjs.js');
43
+ var lint = require('./lint-5ae74a9a.cjs.js');
44
+ var config = require('./config-5070905f.cjs.js');
45
45
  var Lockfile = require('./Lockfile-eced6070.cjs.js');
46
46
  require('commander');
47
47
  require('./entryPoints-0cc55995.cjs.js');
@@ -51,6 +51,24 @@ require('util');
51
51
 
52
52
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
53
53
 
54
+ function _interopNamespace(e) {
55
+ if (e && e.__esModule) return e;
56
+ var n = Object.create(null);
57
+ if (e) {
58
+ Object.keys(e).forEach(function (k) {
59
+ if (k !== 'default') {
60
+ var d = Object.getOwnPropertyDescriptor(e, k);
61
+ Object.defineProperty(n, k, d.get ? d : {
62
+ enumerable: true,
63
+ get: function () { return e[k]; }
64
+ });
65
+ }
66
+ });
67
+ }
68
+ n["default"] = e;
69
+ return Object.freeze(n);
70
+ }
71
+
54
72
  var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
55
73
  var webpack__default = /*#__PURE__*/_interopDefaultLegacy(webpack);
56
74
  var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
@@ -86,7 +104,7 @@ async function serveBackend(options) {
86
104
  }
87
105
 
88
106
  async function serveBundle(options) {
89
- var _a, _b, _c;
107
+ var _a, _b, _c, _d;
90
108
  const paths = packageDetection.resolveBundlingPaths(options);
91
109
  const targetPkg = await fs__default["default"].readJson(paths.targetPackageJson);
92
110
  if (options.verifyVersions) {
@@ -121,7 +139,8 @@ async function serveBundle(options) {
121
139
  }
122
140
  checkReactVersion();
123
141
  const { name } = await fs__default["default"].readJson(index.paths.resolveTarget("package.json"));
124
- let server = void 0;
142
+ let webpackServer = void 0;
143
+ let viteServer = void 0;
125
144
  let latestFrontendAppConfigs = [];
126
145
  const cliConfig = await config.loadCliConfig({
127
146
  args: options.configPaths,
@@ -129,7 +148,8 @@ async function serveBundle(options) {
129
148
  withFilteredKeys: true,
130
149
  watch(appConfigs) {
131
150
  latestFrontendAppConfigs = appConfigs;
132
- server == null ? void 0 : server.invalidate();
151
+ webpackServer == null ? void 0 : webpackServer.invalidate();
152
+ viteServer == null ? void 0 : viteServer.restart();
133
153
  }
134
154
  });
135
155
  latestFrontendAppConfigs = cliConfig.frontendAppConfigs;
@@ -158,7 +178,8 @@ async function serveBundle(options) {
158
178
  config: fullConfig,
159
179
  targetPath: paths.targetPath,
160
180
  watch() {
161
- server == null ? void 0 : server.invalidate();
181
+ webpackServer == null ? void 0 : webpackServer.invalidate();
182
+ viteServer == null ? void 0 : viteServer.restart();
162
183
  }
163
184
  });
164
185
  const config$1 = await packageDetection.createConfig(paths, {
@@ -172,54 +193,99 @@ async function serveBundle(options) {
172
193
  },
173
194
  additionalEntryPoints: detectedModulesEntryPoint
174
195
  });
175
- const compiler = webpack__default["default"](config$1);
176
- server = new WebpackDevServer__default["default"](
177
- {
178
- hot: !process.env.CI,
179
- devMiddleware: {
180
- publicPath: (_a = config$1.output) == null ? void 0 : _a.publicPath,
181
- stats: "errors-warnings"
196
+ if (process.env.EXPERIMENTAL_VITE) {
197
+ const { default: vite } = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('vite')); });
198
+ const { default: viteReact } = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@vitejs/plugin-react')); });
199
+ const { nodePolyfills: viteNodePolyfills } = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('vite-plugin-node-polyfills')); });
200
+ const { createHtmlPlugin: viteHtml } = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('vite-plugin-html')); });
201
+ viteServer = await vite.createServer({
202
+ define: {
203
+ global: "window",
204
+ "process.argv": JSON.stringify(process.argv),
205
+ "process.env.APP_CONFIG": JSON.stringify(cliConfig.frontendAppConfigs),
206
+ // This allows for conditional imports of react-dom/client, since there's no way
207
+ // to check for presence of it in source code without module resolution errors.
208
+ "process.env.HAS_REACT_DOM_CLIENT": JSON.stringify(packageDetection.hasReactDomClient())
182
209
  },
183
- static: paths.targetPublic ? {
184
- publicPath: (_b = config$1.output) == null ? void 0 : _b.publicPath,
185
- directory: paths.targetPublic
186
- } : void 0,
187
- historyApiFallback: {
188
- // Paths with dots should still use the history fallback.
189
- // See https://github.com/facebookincubator/create-react-app/issues/387.
190
- disableDotRule: true,
191
- // The index needs to be rewritten relative to the new public path, including subroutes.
192
- index: `${(_c = config$1.output) == null ? void 0 : _c.publicPath}index.html`
210
+ plugins: [
211
+ viteReact(),
212
+ viteNodePolyfills(),
213
+ viteHtml({
214
+ entry: paths.targetEntry,
215
+ // todo(blam): we should look at contributing to thPe plugin here
216
+ // to support absolute paths, but works in the interim at least.
217
+ template: "public/index.html",
218
+ inject: {
219
+ data: {
220
+ config: frontendConfig,
221
+ publicPath: (_a = config$1.output) == null ? void 0 : _a.publicPath
222
+ }
223
+ }
224
+ })
225
+ ],
226
+ server: {
227
+ host,
228
+ port
193
229
  },
194
- https: url.protocol === "https:" ? {
195
- cert: fullConfig.getString("app.https.certificate.cert"),
196
- key: fullConfig.getString("app.https.certificate.key")
197
- } : false,
198
- host,
199
- port,
200
- proxy: targetPkg.proxy,
201
- // When the dev server is behind a proxy, the host and public hostname differ
202
- allowedHosts: [url.hostname],
203
- client: {
204
- webSocketURL: "auto://0.0.0.0:0/ws"
205
- }
206
- },
207
- compiler
208
- );
209
- await new Promise((resolve, reject) => {
210
- server == null ? void 0 : server.startCallback((err) => {
211
- if (err) {
212
- reject(err);
213
- return;
214
- }
215
- openBrowser__default["default"](url.href);
216
- resolve();
230
+ publicDir: paths.targetPublic,
231
+ root: paths.targetPath
217
232
  });
233
+ } else {
234
+ const compiler = webpack__default["default"](config$1);
235
+ webpackServer = new WebpackDevServer__default["default"](
236
+ {
237
+ hot: !process.env.CI,
238
+ devMiddleware: {
239
+ publicPath: (_b = config$1.output) == null ? void 0 : _b.publicPath,
240
+ stats: "errors-warnings"
241
+ },
242
+ static: paths.targetPublic ? {
243
+ publicPath: (_c = config$1.output) == null ? void 0 : _c.publicPath,
244
+ directory: paths.targetPublic
245
+ } : void 0,
246
+ historyApiFallback: {
247
+ // Paths with dots should still use the history fallback.
248
+ // See https://github.com/facebookincubator/create-react-app/issues/387.
249
+ disableDotRule: true,
250
+ // The index needs to be rewritten relative to the new public path, including subroutes.
251
+ index: `${(_d = config$1.output) == null ? void 0 : _d.publicPath}index.html`
252
+ },
253
+ https: url.protocol === "https:" ? {
254
+ cert: fullConfig.getString("app.https.certificate.cert"),
255
+ key: fullConfig.getString("app.https.certificate.key")
256
+ } : false,
257
+ host,
258
+ port,
259
+ proxy: targetPkg.proxy,
260
+ // When the dev server is behind a proxy, the host and public hostname differ
261
+ allowedHosts: [url.hostname],
262
+ client: {
263
+ webSocketURL: "auto://0.0.0.0:0/ws"
264
+ }
265
+ },
266
+ compiler
267
+ );
268
+ }
269
+ await (viteServer == null ? void 0 : viteServer.listen());
270
+ await new Promise(async (resolve, reject) => {
271
+ if (webpackServer) {
272
+ webpackServer.startCallback((err) => {
273
+ if (err) {
274
+ reject(err);
275
+ return;
276
+ }
277
+ resolve();
278
+ });
279
+ } else {
280
+ resolve();
281
+ }
218
282
  });
283
+ openBrowser__default["default"](url.href);
219
284
  const waitForExit = async () => {
220
285
  for (const signal of ["SIGINT", "SIGTERM"]) {
221
286
  process.on(signal, () => {
222
- server == null ? void 0 : server.close();
287
+ webpackServer == null ? void 0 : webpackServer.close();
288
+ viteServer == null ? void 0 : viteServer.close();
223
289
  process.exit();
224
290
  });
225
291
  }
@@ -368,11 +434,13 @@ class ServerDataStore {
368
434
  }
369
435
  }
370
436
 
437
+ const [nodeMajor, nodeMinor] = process.versions.node.split(".").map(Number);
438
+ const supportsModuleLoaderRegister = nodeMajor >= 20 && nodeMinor >= 6;
371
439
  const loaderArgs = [
372
440
  "--require",
373
- require.resolve("@esbuild-kit/cjs-loader"),
374
- "--loader",
375
- url.pathToFileURL(require.resolve("@esbuild-kit/esm-loader")).toString()
441
+ require.resolve("tsx/preflight"),
442
+ supportsModuleLoaderRegister ? "--import" : "--loader",
443
+ url.pathToFileURL(require.resolve("tsx")).toString()
376
444
  // Windows prefers a URL here
377
445
  ];
378
446
  async function startBackendExperimental(options) {
@@ -536,4 +604,4 @@ async function command(opts) {
536
604
  }
537
605
 
538
606
  exports.command = command;
539
- //# sourceMappingURL=index-0954b0a9.cjs.js.map
607
+ //# sourceMappingURL=index-2b568c50.cjs.js.map
@@ -9,7 +9,7 @@ var yaml = require('yaml');
9
9
  var cliCommon = require('@backstage/cli-common');
10
10
  var path = require('path');
11
11
  var differ = require('diff');
12
- var config = require('./config-864614b9.cjs.js');
12
+ var config = require('./config-5070905f.cjs.js');
13
13
  var catalogModel = require('@backstage/catalog-model');
14
14
  var z = require('zod');
15
15
  var integration = require('@backstage/integration');
@@ -24,7 +24,7 @@ require('child_process');
24
24
  require('@backstage/errors');
25
25
  require('@backstage/config-loader');
26
26
  require('@backstage/config');
27
- require('./index-148826cb.cjs.js');
27
+ require('./index-c1a68166.cjs.js');
28
28
  require('commander');
29
29
  require('semver');
30
30
  require('@manypkg/get-packages');
@@ -1208,4 +1208,4 @@ async function command() {
1208
1208
  }
1209
1209
 
1210
1210
  exports.command = command;
1211
- //# sourceMappingURL=index-f2ecec6c.cjs.js.map
1211
+ //# sourceMappingURL=index-5756ab31.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-148826cb.cjs.js');
7
+ var index$1 = require('./index-c1a68166.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-592f2a54.cjs.js.map
233
+ //# sourceMappingURL=index-5d057489.cjs.js.map
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
 
3
- var createDistWorkspace = require('./createDistWorkspace-f023a2c9.cjs.js');
4
- var role = require('./role-1092264b.cjs.js');
3
+ var createDistWorkspace = require('./createDistWorkspace-0714cd1a.cjs.js');
4
+ var role = require('./role-56df969b.cjs.js');
5
5
  var cliNode = require('@backstage/cli-node');
6
- var index = require('./index-148826cb.cjs.js');
7
- var buildBackend = require('./buildBackend-bb6ecade.cjs.js');
8
- var config = require('./config-864614b9.cjs.js');
6
+ var index = require('./index-c1a68166.cjs.js');
7
+ var buildBackend = require('./buildBackend-43984aaf.cjs.js');
8
+ var config = require('./config-5070905f.cjs.js');
9
9
  require('chalk');
10
10
  require('fs-extra');
11
11
  require('path');
12
12
  require('os');
13
13
  require('tar');
14
14
  require('lodash/partition');
15
- require('./run-b8799a58.cjs.js');
15
+ require('./run-31c52485.cjs.js');
16
16
  require('child_process');
17
17
  require('util');
18
18
  require('@backstage/errors');
@@ -28,9 +28,9 @@ require('@rollup/plugin-yaml');
28
28
  require('rollup-pluginutils');
29
29
  require('./svgrTemplate-3549ea1c.cjs.js');
30
30
  require('./entryPoints-0cc55995.cjs.js');
31
- require('./parallel-a8f6219c.cjs.js');
31
+ require('./parallel-2d9d247e.cjs.js');
32
32
  require('worker_threads');
33
- require('./productionPack-d569941a.cjs.js');
33
+ require('./productionPack-8b9ac9b7.cjs.js');
34
34
  require('npm-packlist');
35
35
  require('commander');
36
36
  require('semver');
@@ -43,7 +43,7 @@ require('react-dev-utils/ModuleScopePlugin');
43
43
  require('run-script-webpack-plugin');
44
44
  require('@manypkg/get-packages');
45
45
  require('webpack-node-externals');
46
- require('./packageDetection-4281c9dc.cjs.js');
46
+ require('./packageDetection-60b734bd.cjs.js');
47
47
  require('lodash/pickBy');
48
48
  require('mini-css-extract-plugin');
49
49
  require('@pmmmwh/react-refresh-webpack-plugin');
@@ -96,10 +96,9 @@ async function command(opts) {
96
96
  }
97
97
  return createDistWorkspace.buildPackage({
98
98
  outputs,
99
- minify: Boolean(opts.minify),
100
- useApiExtractor: Boolean(opts.experimentalTypeBuild)
99
+ minify: Boolean(opts.minify)
101
100
  });
102
101
  }
103
102
 
104
103
  exports.command = command;
105
- //# sourceMappingURL=index-90619a49.cjs.js.map
104
+ //# sourceMappingURL=index-691ac584.cjs.js.map
@@ -53,13 +53,13 @@ class NotFoundError extends CustomError {
53
53
 
54
54
  const paths = cliCommon.findPaths(__dirname);
55
55
 
56
- var version$c = "0.19.8";
56
+ var version$c = "0.19.9-next.1";
57
57
 
58
- var version$b = "0.6.6";
58
+ var version$b = "0.6.7-next.1";
59
59
 
60
- var version$a = "0.2.7";
60
+ var version$a = "0.2.8-next.1";
61
61
 
62
- var version$9 = "0.23.1";
62
+ var version$9 = "0.24.0-next.1";
63
63
  var dependencies = {
64
64
  "@backstage/catalog-model": "workspace:^",
65
65
  "@backstage/cli-common": "workspace:^",
@@ -71,8 +71,6 @@ var dependencies = {
71
71
  "@backstage/integration": "workspace:^",
72
72
  "@backstage/release-manifests": "workspace:^",
73
73
  "@backstage/types": "workspace:^",
74
- "@esbuild-kit/cjs-loader": "^2.4.1",
75
- "@esbuild-kit/esm-loader": "^2.5.5",
76
74
  "@manypkg/get-packages": "^1.1.3",
77
75
  "@octokit/graphql": "^5.0.0",
78
76
  "@octokit/graphql-schema": "^13.7.0",
@@ -162,6 +160,7 @@ var dependencies = {
162
160
  "swc-loader": "^0.2.3",
163
161
  tar: "^6.1.12",
164
162
  "terser-webpack-plugin": "^5.1.3",
163
+ tsx: "^3.14.0",
165
164
  util: "^0.12.3",
166
165
  webpack: "^5.70.0",
167
166
  "webpack-dev-server": "^4.7.3",
@@ -184,6 +183,7 @@ var devDependencies = {
184
183
  "@backstage/theme": "workspace:^",
185
184
  "@types/cross-spawn": "^6.0.2",
186
185
  "@types/diff": "^5.0.0",
186
+ "@types/ejs": "^3.1.3",
187
187
  "@types/express": "^4.17.6",
188
188
  "@types/fs-extra": "^9.0.1",
189
189
  "@types/http-proxy": "^1.17.4",
@@ -207,19 +207,19 @@ var devDependencies = {
207
207
 
208
208
  var version$8 = "1.1.1";
209
209
 
210
- var version$7 = "1.11.0";
210
+ var version$7 = "1.11.1-next.0";
211
211
 
212
- var version$6 = "0.13.6";
212
+ var version$6 = "0.13.8-next.1";
213
213
 
214
- var version$5 = "1.7.0";
214
+ var version$5 = "1.8.0-next.0";
215
215
 
216
- var version$4 = "1.0.22";
216
+ var version$4 = "1.0.23-next.1";
217
217
 
218
- var version$3 = "1.4.4";
218
+ var version$3 = "1.4.5-next.0";
219
219
 
220
- var version$2 = "0.4.3";
220
+ var version$2 = "0.4.4-next.0";
221
221
 
222
- var version$1 = "1.18.1";
222
+ var version$1 = "1.19.0-next.1";
223
223
 
224
224
  const packageVersions = {
225
225
  "@backstage/backend-common": version$c,
@@ -283,7 +283,7 @@ const configOption = [
283
283
  Array()
284
284
  ];
285
285
  function registerOnboardCommand(program) {
286
- program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-f2ecec6c.cjs.js'); }).then((m) => m.command)));
286
+ program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-5756ab31.cjs.js'); }).then((m) => m.command)));
287
287
  }
288
288
  function registerRepoCommand(program) {
289
289
  const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
@@ -295,7 +295,7 @@ function registerRepoCommand(program) {
295
295
  ).option(
296
296
  "--since <ref>",
297
297
  "Only build packages and their dev dependents that changed since the specified ref"
298
- ).action(lazy(() => Promise.resolve().then(function () { return require('./build-27a34e5d.cjs.js'); }).then((m) => m.command)));
298
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./build-abeea96e.cjs.js'); }).then((m) => m.command)));
299
299
  command.command("lint").description("Lint all packages in the project").option(
300
300
  "--format <format>",
301
301
  "Lint report output format",
@@ -303,14 +303,14 @@ function registerRepoCommand(program) {
303
303
  ).option(
304
304
  "--since <ref>",
305
305
  "Only lint packages that changed since the specified ref"
306
- ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-d45f133d.cjs.js'); }).then((m) => m.command)));
306
+ ).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-692a0706.cjs.js'); }).then((m) => m.command)));
307
307
  command.command("fix").description("Automatically fix packages in the project").option(
308
308
  "--check",
309
309
  "Fail if any packages would have been changed by the command"
310
- ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-c878a75e.cjs.js'); }).then((m) => m.command)));
311
- command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-a24eded0.cjs.js'); }).then((m) => m.command)));
310
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./fix-4efe3191.cjs.js'); }).then((m) => m.command)));
311
+ command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-1e88f351.cjs.js'); }).then((m) => m.command)));
312
312
  command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
313
- lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-0fdb13ae.cjs.js'); }).then((m) => m.command))
313
+ lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-ca9c7061.cjs.js'); }).then((m) => m.command))
314
314
  );
315
315
  command.command("test").allowUnknownOption(true).option(
316
316
  "--since <ref>",
@@ -318,20 +318,17 @@ function registerRepoCommand(program) {
318
318
  ).option(
319
319
  "--jest-help",
320
320
  "Show help for Jest CLI options, which are passed through"
321
- ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-56e64a6d.cjs.js'); }).then((m) => m.command)));
321
+ ).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-870d60f6.cjs.js'); }).then((m) => m.command)));
322
322
  }
323
323
  function registerScriptCommand(program) {
324
324
  const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
325
325
  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(
326
326
  "--inspect-brk [host]",
327
327
  "Enable debugger in Node.js environments, breaking before code starts"
328
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-0954b0a9.cjs.js'); }).then((m) => m.command)));
328
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-2b568c50.cjs.js'); }).then((m) => m.command)));
329
329
  command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
330
330
  "--minify",
331
331
  "Minify the generated code. Does not apply to app or backend packages."
332
- ).option(
333
- "--experimental-type-build",
334
- "Enable experimental type build. Does not apply to app or backend packages. [DEPRECATED]"
335
332
  ).option(
336
333
  "--skip-build-dependencies",
337
334
  "Skip the automatic building of local dependencies. Applies to backend packages only."
@@ -343,30 +340,30 @@ function registerScriptCommand(program) {
343
340
  "Config files to load instead of app-config.yaml. Applies to app packages only.",
344
341
  (opt, opts) => opts ? [...opts, opt] : [opt],
345
342
  Array()
346
- ).action(lazy(() => Promise.resolve().then(function () { return require('./index-90619a49.cjs.js'); }).then((m) => m.command)));
343
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./index-691ac584.cjs.js'); }).then((m) => m.command)));
347
344
  command.command("lint [directories...]").option(
348
345
  "--format <format>",
349
346
  "Lint report output format",
350
347
  "eslint-formatter-friendly"
351
- ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-527efdef.cjs.js'); }).then((m) => m.default)));
352
- 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-87ae3d0d.cjs.js'); }).then((m) => m.default)));
353
- command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-fcbc16a9.cjs.js'); }).then((m) => m.default)));
354
- command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-b755dc5d.cjs.js'); }).then((m) => m.pre)));
355
- command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-b755dc5d.cjs.js'); }).then((m) => m.post)));
348
+ ).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-f12d46ab.cjs.js'); }).then((m) => m.default)));
349
+ 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-6e9a0d08.cjs.js'); }).then((m) => m.default)));
350
+ command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-56cba0c6.cjs.js'); }).then((m) => m.default)));
351
+ command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-0a6afd18.cjs.js'); }).then((m) => m.pre)));
352
+ command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-0a6afd18.cjs.js'); }).then((m) => m.post)));
356
353
  }
357
354
  function registerMigrateCommand(program) {
358
355
  const command = program.command("migrate [command]").description("Migration utilities");
359
- 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-9318ff16.cjs.js'); }).then((m) => m.default)));
356
+ 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-f428eb9e.cjs.js'); }).then((m) => m.default)));
360
357
  command.command("package-scripts").description("Set package scripts according to each package role").action(
361
- lazy(() => Promise.resolve().then(function () { return require('./packageScripts-c6721fac.cjs.js'); }).then((m) => m.command))
358
+ lazy(() => Promise.resolve().then(function () { return require('./packageScripts-bb7b6de2.cjs.js'); }).then((m) => m.command))
362
359
  );
363
360
  command.command("package-exports").description("Synchronize package subpath export definitions").action(
364
- lazy(() => Promise.resolve().then(function () { return require('./packageExports-2323fa69.cjs.js'); }).then((m) => m.command))
361
+ lazy(() => Promise.resolve().then(function () { return require('./packageExports-a39f9d87.cjs.js'); }).then((m) => m.command))
365
362
  );
366
363
  command.command("package-lint-configs").description(
367
364
  "Migrates all packages to use @backstage/cli/config/eslint-factory"
368
365
  ).action(
369
- lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-8c269c68.cjs.js'); }).then((m) => m.command))
366
+ lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-94db4d13.cjs.js'); }).then((m) => m.command))
370
367
  );
371
368
  command.command("react-router-deps").description(
372
369
  "Migrates the react-router dependencies for all packages to be peer dependencies"
@@ -391,7 +388,7 @@ function registerCommands(program) {
391
388
  ).option(
392
389
  "--baseVersion <version>",
393
390
  "The version to use for any new packages (default: 0.1.0)"
394
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-e0569069.cjs.js'); }).then((m) => m.default)));
391
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-e324e245.cjs.js'); }).then((m) => m.default)));
395
392
  program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
396
393
  "Open up an interactive guide to creating new things in your app [DEPRECATED]"
397
394
  ).option(
@@ -405,30 +402,30 @@ function registerCommands(program) {
405
402
  ).option("--scope <scope>", "The scope to use for new packages").option(
406
403
  "--npm-registry <URL>",
407
404
  "The package registry to use for new packages"
408
- ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-e0569069.cjs.js'); }).then((m) => m.default)));
405
+ ).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-e324e245.cjs.js'); }).then((m) => m.default)));
409
406
  program.command("create-plugin", { hidden: true }).option(
410
407
  "--backend",
411
408
  "Create plugin with the backend dependencies as default"
412
409
  ).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(
413
- lazy(() => Promise.resolve().then(function () { return require('./createPlugin-a4796872.cjs.js'); }).then((m) => m.default))
410
+ lazy(() => Promise.resolve().then(function () { return require('./createPlugin-d38a681b.cjs.js'); }).then((m) => m.default))
414
411
  );
415
412
  program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
416
413
  "Diff an existing plugin with the creation template [DEPRECATED]"
417
- ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-e193cc5c.cjs.js'); }).then((m) => m.default)));
414
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./diff-6e46a126.cjs.js'); }).then((m) => m.default)));
418
415
  program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
419
416
  "Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
420
- ).action(lazy(() => Promise.resolve().then(function () { return require('./test-87ae3d0d.cjs.js'); }).then((m) => m.default)));
417
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./test-6e9a0d08.cjs.js'); }).then((m) => m.default)));
421
418
  program.command("config:docs").option(
422
419
  "--package <name>",
423
420
  "Only include the schema that applies to the given package"
424
- ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-5603b020.cjs.js'); }).then((m) => m.default)));
421
+ ).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-f4525db2.cjs.js'); }).then((m) => m.default)));
425
422
  program.command("config:print").option(
426
423
  "--package <name>",
427
424
  "Only load config schema that applies to the given package"
428
425
  ).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(
429
426
  "--format <format>",
430
427
  "Format to print the configuration in, either json or yaml [yaml]"
431
- ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-ec4b9878.cjs.js'); }).then((m) => m.default)));
428
+ ).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-06b17d5c.cjs.js'); }).then((m) => m.default)));
432
429
  program.command("config:check").option(
433
430
  "--package <name>",
434
431
  "Only load config schema that applies to the given package"
@@ -437,14 +434,14 @@ function registerCommands(program) {
437
434
  "Enable strict config validation, forbidding errors and unknown keys"
438
435
  ).option(...configOption).description(
439
436
  "Validate that the given configuration loads and matches schema"
440
- ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-81616b20.cjs.js'); }).then((m) => m.default)));
437
+ ).action(lazy(() => Promise.resolve().then(function () { return require('./validate-9dac0c57.cjs.js'); }).then((m) => m.default)));
441
438
  program.command("config:schema").option(
442
439
  "--package <name>",
443
440
  "Only output config schema that applies to the given package"
444
441
  ).option(
445
442
  "--format <format>",
446
443
  "Format to print the schema in, either json or yaml [yaml]"
447
- ).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-04e7321f.cjs.js'); }).then((m) => m.default)));
444
+ ).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-6c264625.cjs.js'); }).then((m) => m.default)));
448
445
  registerRepoCommand(program);
449
446
  registerScriptCommand(program);
450
447
  registerMigrateCommand(program);
@@ -456,19 +453,19 @@ function registerCommands(program) {
456
453
  "--release <version|next|main>",
457
454
  "Bump to a specific Backstage release line or version",
458
455
  "main"
459
- ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-332128e5.cjs.js'); }).then((m) => m.default)));
460
- 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-29ebbcf4.cjs.js'); }).then((m) => m.default)));
461
- program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-fcbc16a9.cjs.js'); }).then((m) => m.default)));
456
+ ).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-6f5eafee.cjs.js'); }).then((m) => m.default)));
457
+ 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-5ae74a9a.cjs.js'); }).then((m) => m.default)));
458
+ program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-56cba0c6.cjs.js'); }).then((m) => m.default)));
462
459
  program.command("build-workspace <workspace-dir> [packages...]").option(
463
460
  "--alwaysYarnPack",
464
461
  "Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
465
- ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-9de61967.cjs.js'); }).then((m) => m.default)));
466
- program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-592f2a54.cjs.js'); }).then((m) => m.default)));
467
- program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-d76b408b.cjs.js'); }).then((m) => m.default)));
462
+ ).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-e84d81f1.cjs.js'); }).then((m) => m.default)));
463
+ program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-5d057489.cjs.js'); }).then((m) => m.default)));
464
+ program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-224a5354.cjs.js'); }).then((m) => m.default)));
468
465
  program.command("install [plugin-id]", { hidden: true }).option(
469
466
  "--from <packageJsonFilePath>",
470
467
  "Install from a local package.json containing the installation recipe"
471
- ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-2e390e27.cjs.js'); }).then((m) => m.default)));
468
+ ).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-ade97143.cjs.js'); }).then((m) => m.default)));
472
469
  }
473
470
  function lazy(getActionFunc) {
474
471
  return async (...args) => {
@@ -512,4 +509,4 @@ exports.devDependencies = devDependencies;
512
509
  exports.paths = paths;
513
510
  exports.version = version;
514
511
  exports.version$1 = version$9;
515
- //# sourceMappingURL=index-148826cb.cjs.js.map
512
+ //# sourceMappingURL=index-c1a68166.cjs.js.map