@backstage/cli 0.27.1-next.2 → 0.28.0-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.
- package/CHANGELOG.md +70 -0
- package/dist/cjs/{build-4xYS_mRN.cjs.js → build-gNEKjjhr.cjs.js} +12 -11
- package/dist/cjs/{buildBackend-tihc2jXI.cjs.js → buildBackend-DXvz7jvh.cjs.js} +6 -6
- package/dist/cjs/{buildWorkspace-DzGmnLIA.cjs.js → buildWorkspace-DLfI3EjD.cjs.js} +6 -5
- package/dist/cjs/{bump-D7bCh9so.cjs.js → bump-d9dS56p9.cjs.js} +73 -9
- package/dist/cjs/{clean-o78W1uJm.cjs.js → clean-Dpgqc3P2.cjs.js} +2 -2
- package/dist/cjs/{clean-CC3Mt_l3.cjs.js → clean-bdpRw-oZ.cjs.js} +2 -2
- package/dist/cjs/{config-l0OM68oC.cjs.js → config-nCB2LQK-.cjs.js} +2 -2
- package/dist/cjs/{createDistWorkspace-BKOuT4y9.cjs.js → createDistWorkspace-DKzy-L-f.cjs.js} +7 -5
- package/dist/cjs/{docs-SFsAHMuR.cjs.js → docs-CDE82fWG.cjs.js} +3 -3
- package/dist/cjs/{fix-CO-_RT-P.cjs.js → fix-BTjof5XT.cjs.js} +2 -2
- package/dist/cjs/{index-BCv17c0S.cjs.js → index-7LxfekFu.cjs.js} +14 -11
- package/dist/cjs/{index-DjaukhiC.cjs.js → index-DVDDx3pk.cjs.js} +2 -2
- package/dist/cjs/{index-DMR3AyQl.cjs.js → index-DsP5wbju.cjs.js} +10 -9
- package/dist/cjs/{index-DnKsJMXl.cjs.js → index-v57xnvgT.cjs.js} +67 -82
- package/dist/cjs/{info-qvh6nVXW.cjs.js → info-CB7ln5K_.cjs.js} +5 -6
- package/dist/cjs/{lint-CYb5eR4F.cjs.js → lint-6_0f9f26.cjs.js} +2 -2
- package/dist/cjs/{lint-Bi9nq5Vm.cjs.js → lint-DYO_SeK3.cjs.js} +2 -2
- package/dist/cjs/{list-deprecations-BNbOuUo4.cjs.js → list-deprecations-DFgQENam.cjs.js} +2 -2
- package/dist/cjs/{moduleFederation-BHgfCDl2.cjs.js → moduleFederation-Dq0n1quT.cjs.js} +8 -3
- package/dist/cjs/{new-Dhd6Pd1w.cjs.js → new-C0D_k25O.cjs.js} +336 -97
- package/dist/cjs/{pack-JD01KVjk.cjs.js → pack-D8AK7Uem.cjs.js} +4 -3
- package/dist/cjs/{packageExports-B5-mokCQ.cjs.js → packageExports-bg4mFuFZ.cjs.js} +3 -3
- package/dist/cjs/{packageLintConfigs-4_zdCGPD.cjs.js → packageLintConfigs-BBvQehRd.cjs.js} +3 -3
- package/dist/cjs/{packageRole-C_9jXdSu.cjs.js → packageRole-CkpKfhJA.cjs.js} +2 -2
- package/dist/cjs/{print-B5DqDsG6.cjs.js → print-BX8-7Nzg.cjs.js} +3 -3
- package/dist/cjs/{productionPack-BWU8WkGs.cjs.js → productionPack-Dfl28j3c.cjs.js} +105 -4
- package/dist/cjs/{role-AqzuEJaH.cjs.js → role-e0emQj8q.cjs.js} +2 -2
- package/dist/cjs/{run-TuUxKRac.cjs.js → run-HW3lfDbM.cjs.js} +2 -2
- package/dist/cjs/{schema-BQdbH61z.cjs.js → schema-Cabm6I6c.cjs.js} +3 -3
- package/dist/cjs/{test-C7TgF1oU.cjs.js → test-5bQM0VRL.cjs.js} +3 -3
- package/dist/cjs/{test-DHxhB9qW.cjs.js → test-YJMOGqXG.cjs.js} +3 -3
- package/dist/cjs/{validate-DNEzV9o_.cjs.js → validate-DKBlShmI.cjs.js} +3 -3
- package/dist/cjs/{Lockfile-B4mqBkH6.cjs.js → yarn-6FNAgNBK.cjs.js} +31 -1
- package/dist/index.cjs.js +1 -1
- package/package.json +18 -17
- package/dist/cjs/codeowners-DOH0XAJ6.cjs.js +0 -91
- package/dist/cjs/createPlugin-BjaWNEr7.cjs.js +0 -280
- package/dist/cjs/diff-qR_Krjfe.cjs.js +0 -436
- package/dist/cjs/index-DM0DxIJs.cjs.js +0 -1027
- package/dist/cjs/install-B40PDdfZ.cjs.js +0 -268
- package/dist/cjs/lint-Dkx_fBkS.cjs.js +0 -10
- package/dist/cjs/packages-DAN7bURf.cjs.js +0 -75
- package/dist/cjs/tasks-knkf4kMY.cjs.js +0 -188
- package/dist/cjs/yarn-Ukl9MOS0.cjs.js +0 -34
|
@@ -47,13 +47,11 @@ class NotFoundError extends CustomError {
|
|
|
47
47
|
|
|
48
48
|
const paths = cliCommon.findPaths(__dirname);
|
|
49
49
|
|
|
50
|
-
var version$
|
|
50
|
+
var version$e = "1.0.1-next.0";
|
|
51
51
|
|
|
52
|
-
var version$
|
|
52
|
+
var version$d = "1.0.1-next.0";
|
|
53
53
|
|
|
54
|
-
var version$
|
|
55
|
-
|
|
56
|
-
var version$c = "0.27.1-next.2";
|
|
54
|
+
var version$c = "0.28.0-next.0";
|
|
57
55
|
var dependencies = {
|
|
58
56
|
"@backstage/catalog-model": "workspace:^",
|
|
59
57
|
"@backstage/cli-common": "workspace:^",
|
|
@@ -72,7 +70,7 @@ var dependencies = {
|
|
|
72
70
|
"@octokit/oauth-app": "^4.2.0",
|
|
73
71
|
"@octokit/request": "^6.0.0",
|
|
74
72
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
|
|
75
|
-
"@rollup/plugin-commonjs": "^
|
|
73
|
+
"@rollup/plugin-commonjs": "^26.0.0",
|
|
76
74
|
"@rollup/plugin-json": "^6.0.0",
|
|
77
75
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
78
76
|
"@rollup/plugin-yaml": "^4.0.0",
|
|
@@ -111,7 +109,7 @@ var dependencies = {
|
|
|
111
109
|
"eslint-formatter-friendly": "^7.0.0",
|
|
112
110
|
"eslint-plugin-deprecation": "^2.0.0",
|
|
113
111
|
"eslint-plugin-import": "^2.25.4",
|
|
114
|
-
"eslint-plugin-jest": "^
|
|
112
|
+
"eslint-plugin-jest": "^28.0.0",
|
|
115
113
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
116
114
|
"eslint-plugin-react": "^7.28.0",
|
|
117
115
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
@@ -160,6 +158,7 @@ var dependencies = {
|
|
|
160
158
|
"swc-loader": "^0.2.3",
|
|
161
159
|
tar: "^6.1.12",
|
|
162
160
|
"terser-webpack-plugin": "^5.1.3",
|
|
161
|
+
"ts-morph": "^23.0.0",
|
|
163
162
|
util: "^0.12.3",
|
|
164
163
|
webpack: "^5.70.0",
|
|
165
164
|
"webpack-dev-server": "^5.0.0",
|
|
@@ -170,7 +169,7 @@ var dependencies = {
|
|
|
170
169
|
zod: "^3.22.4"
|
|
171
170
|
};
|
|
172
171
|
var devDependencies = {
|
|
173
|
-
"@backstage/backend-common": "
|
|
172
|
+
"@backstage/backend-common": "^0.25.0",
|
|
174
173
|
"@backstage/backend-plugin-api": "workspace:^",
|
|
175
174
|
"@backstage/backend-test-utils": "workspace:^",
|
|
176
175
|
"@backstage/config": "workspace:^",
|
|
@@ -207,28 +206,27 @@ var devDependencies = {
|
|
|
207
206
|
|
|
208
207
|
var version$b = "1.2.0";
|
|
209
208
|
|
|
210
|
-
var version$a = "1.
|
|
209
|
+
var version$a = "1.15.1-next.0";
|
|
211
210
|
|
|
212
|
-
var version$9 = "0.
|
|
211
|
+
var version$9 = "0.15.1-next.0";
|
|
213
212
|
|
|
214
|
-
var version$8 = "1.
|
|
213
|
+
var version$8 = "1.10.0-next.0";
|
|
215
214
|
|
|
216
|
-
var version$7 = "1.1.
|
|
215
|
+
var version$7 = "1.1.1-next.0";
|
|
217
216
|
|
|
218
|
-
var version$6 = "1.6.
|
|
217
|
+
var version$6 = "1.6.1-next.0";
|
|
219
218
|
|
|
220
|
-
var version$5 = "0.
|
|
219
|
+
var version$5 = "0.5.0-next.0";
|
|
221
220
|
|
|
222
|
-
var version$4 = "0.23.
|
|
221
|
+
var version$4 = "0.23.1-next.0";
|
|
223
222
|
|
|
224
|
-
var version$3 = "0.2.
|
|
223
|
+
var version$3 = "0.2.1-next.0";
|
|
225
224
|
|
|
226
|
-
var version$2 = "0.5.7
|
|
225
|
+
var version$2 = "0.5.7";
|
|
227
226
|
|
|
228
|
-
var version$1 = "0.5.
|
|
227
|
+
var version$1 = "0.5.1-next.0";
|
|
229
228
|
|
|
230
229
|
const packageVersions = {
|
|
231
|
-
"@backstage/backend-common": version$f,
|
|
232
230
|
"@backstage/backend-defaults": version$1,
|
|
233
231
|
"@backstage/backend-plugin-api": version$e,
|
|
234
232
|
"@backstage/backend-test-utils": version$d,
|
|
@@ -290,9 +288,6 @@ const configOption = [
|
|
|
290
288
|
(opt, opts) => opts ? [...opts, opt] : [opt],
|
|
291
289
|
Array()
|
|
292
290
|
];
|
|
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-DM0DxIJs.cjs.js'); }).then((m) => m.command)));
|
|
295
|
-
}
|
|
296
291
|
function registerRepoCommand(program) {
|
|
297
292
|
const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
|
|
298
293
|
command.command("build").description(
|
|
@@ -303,7 +298,10 @@ function registerRepoCommand(program) {
|
|
|
303
298
|
).option(
|
|
304
299
|
"--since <ref>",
|
|
305
300
|
"Only build packages and their dev dependents that changed since the specified ref"
|
|
306
|
-
).
|
|
301
|
+
).option(
|
|
302
|
+
"--minify",
|
|
303
|
+
"Minify the generated code. Does not apply to app package (app is minified by default)."
|
|
304
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./build-gNEKjjhr.cjs.js'); }).then((m) => m.command)));
|
|
307
305
|
command.command("lint").description("Lint all packages in the project").option(
|
|
308
306
|
"--format <format>",
|
|
309
307
|
"Lint report output format",
|
|
@@ -311,17 +309,17 @@ function registerRepoCommand(program) {
|
|
|
311
309
|
).option(
|
|
312
310
|
"--since <ref>",
|
|
313
311
|
"Only lint packages that changed since the specified ref"
|
|
314
|
-
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
312
|
+
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-DYO_SeK3.cjs.js'); }).then((m) => m.command)));
|
|
315
313
|
command.command("fix").description("Automatically fix packages in the project").option(
|
|
316
314
|
"--publish",
|
|
317
315
|
"Enable additional fixes that only apply when publishing packages"
|
|
318
316
|
).option(
|
|
319
317
|
"--check",
|
|
320
318
|
"Fail if any packages would have been changed by the command"
|
|
321
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./fix-
|
|
322
|
-
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
319
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./fix-BTjof5XT.cjs.js'); }).then((m) => m.command)));
|
|
320
|
+
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-bdpRw-oZ.cjs.js'); }).then((m) => m.command)));
|
|
323
321
|
command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
|
|
324
|
-
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-
|
|
322
|
+
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-DFgQENam.cjs.js'); }).then((m) => m.command))
|
|
325
323
|
);
|
|
326
324
|
command.command("test").allowUnknownOption(true).option(
|
|
327
325
|
"--since <ref>",
|
|
@@ -329,14 +327,14 @@ function registerRepoCommand(program) {
|
|
|
329
327
|
).option(
|
|
330
328
|
"--jest-help",
|
|
331
329
|
"Show help for Jest CLI options, which are passed through"
|
|
332
|
-
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
330
|
+
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-5bQM0VRL.cjs.js'); }).then((m) => m.command)));
|
|
333
331
|
}
|
|
334
332
|
function registerScriptCommand(program) {
|
|
335
333
|
const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
|
|
336
334
|
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(
|
|
337
335
|
"--inspect-brk [host]",
|
|
338
336
|
"Enable debugger in Node.js environments, breaking before code starts"
|
|
339
|
-
).option("--require <path>", "Add a --require argument to the node process").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
337
|
+
).option("--require <path>", "Add a --require argument to the node process").action(lazy(() => Promise.resolve().then(function () { return require('./index-7LxfekFu.cjs.js'); }).then((m) => m.command)));
|
|
340
338
|
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
|
|
341
339
|
"--minify",
|
|
342
340
|
"Minify the generated code. Does not apply to app package (app is minified by default)."
|
|
@@ -351,30 +349,30 @@ function registerScriptCommand(program) {
|
|
|
351
349
|
"Config files to load instead of app-config.yaml. Applies to app packages only.",
|
|
352
350
|
(opt, opts) => opts ? [...opts, opt] : [opt],
|
|
353
351
|
Array()
|
|
354
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
352
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-DsP5wbju.cjs.js'); }).then((m) => m.command)));
|
|
355
353
|
command.command("lint [directories...]").option(
|
|
356
354
|
"--format <format>",
|
|
357
355
|
"Lint report output format",
|
|
358
356
|
"eslint-formatter-friendly"
|
|
359
|
-
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
360
|
-
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-
|
|
361
|
-
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
362
|
-
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
363
|
-
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
357
|
+
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-6_0f9f26.cjs.js'); }).then((m) => m.default)));
|
|
358
|
+
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-YJMOGqXG.cjs.js'); }).then((m) => m.default)));
|
|
359
|
+
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-Dpgqc3P2.cjs.js'); }).then((m) => m.default)));
|
|
360
|
+
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-D8AK7Uem.cjs.js'); }).then((m) => m.pre)));
|
|
361
|
+
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-D8AK7Uem.cjs.js'); }).then((m) => m.post)));
|
|
364
362
|
}
|
|
365
363
|
function registerMigrateCommand(program) {
|
|
366
364
|
const command = program.command("migrate [command]").description("Migration utilities");
|
|
367
|
-
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-
|
|
365
|
+
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-CkpKfhJA.cjs.js'); }).then((m) => m.default)));
|
|
368
366
|
command.command("package-scripts").description("Set package scripts according to each package role").action(
|
|
369
367
|
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-DX6dilK6.cjs.js'); }).then((m) => m.command))
|
|
370
368
|
);
|
|
371
369
|
command.command("package-exports").description("Synchronize package subpath export definitions").action(
|
|
372
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageExports-
|
|
370
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageExports-bg4mFuFZ.cjs.js'); }).then((m) => m.command))
|
|
373
371
|
);
|
|
374
372
|
command.command("package-lint-configs").description(
|
|
375
373
|
"Migrates all packages to use @backstage/cli/config/eslint-factory"
|
|
376
374
|
).action(
|
|
377
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-
|
|
375
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-BBvQehRd.cjs.js'); }).then((m) => m.command))
|
|
378
376
|
);
|
|
379
377
|
command.command("react-router-deps").description(
|
|
380
378
|
"Migrates the react-router dependencies for all packages to be peer dependencies"
|
|
@@ -402,44 +400,18 @@ function registerCommands(program) {
|
|
|
402
400
|
).option(
|
|
403
401
|
"--license <license>",
|
|
404
402
|
"The license to use for any new packages (default: Apache-2.0)"
|
|
405
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
406
|
-
program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
|
|
407
|
-
"Open up an interactive guide to creating new things in your app [DEPRECATED]"
|
|
408
|
-
).option(
|
|
409
|
-
"--select <name>",
|
|
410
|
-
"Select the thing you want to be creating upfront"
|
|
411
|
-
).option(
|
|
412
|
-
"--option <name>=<value>",
|
|
413
|
-
"Pre-fill options for the creation process",
|
|
414
|
-
(opt, arr) => [...arr, opt],
|
|
415
|
-
[]
|
|
416
|
-
).option("--scope <scope>", "The scope to use for new packages").option(
|
|
417
|
-
"--npm-registry <URL>",
|
|
418
|
-
"The package registry to use for new packages"
|
|
419
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-Dhd6Pd1w.cjs.js'); }).then((m) => m.default)));
|
|
420
|
-
program.command("create-plugin", { hidden: true }).option(
|
|
421
|
-
"--backend",
|
|
422
|
-
"Create plugin with the backend dependencies as default"
|
|
423
|
-
).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(
|
|
424
|
-
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-BjaWNEr7.cjs.js'); }).then((m) => m.default))
|
|
425
|
-
);
|
|
426
|
-
program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
|
|
427
|
-
"Diff an existing plugin with the creation template [DEPRECATED]"
|
|
428
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-qR_Krjfe.cjs.js'); }).then((m) => m.default)));
|
|
429
|
-
program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
|
|
430
|
-
"Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
|
|
431
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./test-DHxhB9qW.cjs.js'); }).then((m) => m.default)));
|
|
403
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-C0D_k25O.cjs.js'); }).then((m) => m.default)));
|
|
432
404
|
program.command("config:docs").option(
|
|
433
405
|
"--package <name>",
|
|
434
406
|
"Only include the schema that applies to the given package"
|
|
435
|
-
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-
|
|
407
|
+
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-CDE82fWG.cjs.js'); }).then((m) => m.default)));
|
|
436
408
|
program.command("config:print").option(
|
|
437
409
|
"--package <name>",
|
|
438
410
|
"Only load config schema that applies to the given package"
|
|
439
411
|
).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(
|
|
440
412
|
"--format <format>",
|
|
441
413
|
"Format to print the configuration in, either json or yaml [yaml]"
|
|
442
|
-
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-
|
|
414
|
+
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-BX8-7Nzg.cjs.js'); }).then((m) => m.default)));
|
|
443
415
|
program.command("config:check").option(
|
|
444
416
|
"--package <name>",
|
|
445
417
|
"Only load config schema that applies to the given package"
|
|
@@ -448,18 +420,17 @@ function registerCommands(program) {
|
|
|
448
420
|
"Enable strict config validation, forbidding errors and unknown keys"
|
|
449
421
|
).option(...configOption).description(
|
|
450
422
|
"Validate that the given configuration loads and matches schema"
|
|
451
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-
|
|
423
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-DKBlShmI.cjs.js'); }).then((m) => m.default)));
|
|
452
424
|
program.command("config:schema").option(
|
|
453
425
|
"--package <name>",
|
|
454
426
|
"Only output config schema that applies to the given package"
|
|
455
427
|
).option(
|
|
456
428
|
"--format <format>",
|
|
457
429
|
"Format to print the schema in, either json or yaml [yaml]"
|
|
458
|
-
).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-
|
|
430
|
+
).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-Cabm6I6c.cjs.js'); }).then((m) => m.default)));
|
|
459
431
|
registerRepoCommand(program);
|
|
460
432
|
registerScriptCommand(program);
|
|
461
433
|
registerMigrateCommand(program);
|
|
462
|
-
registerOnboardCommand(program);
|
|
463
434
|
program.command("versions:bump").option(
|
|
464
435
|
"--pattern <glob>",
|
|
465
436
|
"Override glob for matching packages to upgrade"
|
|
@@ -467,8 +438,7 @@ function registerCommands(program) {
|
|
|
467
438
|
"--release <version|next|main>",
|
|
468
439
|
"Bump to a specific Backstage release line or version",
|
|
469
440
|
"main"
|
|
470
|
-
).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-
|
|
471
|
-
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)));
|
|
441
|
+
).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-d9dS56p9.cjs.js'); }).then(function (n) { return n.bump; }).then((m) => m.default)));
|
|
472
442
|
program.command("versions:migrate").option(
|
|
473
443
|
"--pattern <glob>",
|
|
474
444
|
"Override glob for matching packages to upgrade"
|
|
@@ -477,18 +447,33 @@ function registerCommands(program) {
|
|
|
477
447
|
"Skip code changes and only update package.json files"
|
|
478
448
|
).description(
|
|
479
449
|
"Migrate any plugins that have been moved to the @backstage-community namespace automatically"
|
|
480
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./bump-
|
|
481
|
-
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-o78W1uJm.cjs.js'); }).then((m) => m.default)));
|
|
450
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./bump-d9dS56p9.cjs.js'); }).then(function (n) { return n.migrate; }).then((m) => m.default)));
|
|
482
451
|
program.command("build-workspace <workspace-dir> [packages...]").option(
|
|
483
452
|
"--alwaysYarnPack",
|
|
484
453
|
"Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
|
|
485
|
-
).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-
|
|
486
|
-
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
487
|
-
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-
|
|
488
|
-
program.command("
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
454
|
+
).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-DLfI3EjD.cjs.js'); }).then((m) => m.default)));
|
|
455
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-DVDDx3pk.cjs.js'); }).then((m) => m.default)));
|
|
456
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-CB7ln5K_.cjs.js'); }).then((m) => m.default)));
|
|
457
|
+
program.command("create").allowUnknownOption(true).action(removed("use 'backstage-cli new' instead"));
|
|
458
|
+
program.command("create-plugin").allowUnknownOption(true).action(removed("use 'backstage-cli new' instead"));
|
|
459
|
+
program.command("plugin:diff").allowUnknownOption(true).action(removed("use 'backstage-cli fix' instead"));
|
|
460
|
+
program.command("test").allowUnknownOption(true).action(
|
|
461
|
+
removed(
|
|
462
|
+
"use 'backstage-cli repo test' or 'backstage-cli package test' instead"
|
|
463
|
+
)
|
|
464
|
+
);
|
|
465
|
+
program.command("clean").allowUnknownOption(true).action(removed("use 'backstage-cli package clean' instead"));
|
|
466
|
+
program.command("versions:check").allowUnknownOption(true).action(removed("use 'yarn dedupe' or 'yarn-deduplicate' instead"));
|
|
467
|
+
program.command("install").allowUnknownOption(true).action(removed());
|
|
468
|
+
program.command("onboard").allowUnknownOption(true).action(removed());
|
|
469
|
+
}
|
|
470
|
+
function removed(message) {
|
|
471
|
+
return () => {
|
|
472
|
+
console.error(
|
|
473
|
+
message ? `This command has been removed, ${message}` : "This command has been removed"
|
|
474
|
+
);
|
|
475
|
+
process.exit(1);
|
|
476
|
+
};
|
|
492
477
|
}
|
|
493
478
|
function lazy(getActionFunc) {
|
|
494
479
|
return async (...args) => {
|
|
@@ -532,4 +517,4 @@ exports.devDependencies = devDependencies;
|
|
|
532
517
|
exports.paths = paths;
|
|
533
518
|
exports.version = version;
|
|
534
519
|
exports.version$1 = version$c;
|
|
535
|
-
//# sourceMappingURL=index-
|
|
520
|
+
//# sourceMappingURL=index-v57xnvgT.cjs.js.map
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-v57xnvgT.cjs.js');
|
|
4
4
|
var os = require('os');
|
|
5
|
-
var run = require('./run-
|
|
6
|
-
var
|
|
5
|
+
var run = require('./run-HW3lfDbM.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
|
|
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-
|
|
59
|
+
//# sourceMappingURL=info-CB7ln5K_.cjs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-v57xnvgT.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-
|
|
36
|
+
//# sourceMappingURL=lint-6_0f9f26.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-
|
|
6
|
+
var index = require('./index-v57xnvgT.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-
|
|
91
|
+
//# sourceMappingURL=lint-DYO_SeK3.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-
|
|
7
|
+
var index = require('./index-v57xnvgT.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-
|
|
79
|
+
//# sourceMappingURL=list-deprecations-DFgQENam.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-
|
|
14
|
+
var index = require('./index-v57xnvgT.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
19
|
var entryPoints = require('./entryPoints-CoHH4lBA.cjs.js');
|
|
20
|
-
var run = require('./run-
|
|
20
|
+
var run = require('./run-HW3lfDbM.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');
|
|
@@ -541,6 +541,11 @@ async function createConfig(paths, options) {
|
|
|
541
541
|
return {
|
|
542
542
|
mode,
|
|
543
543
|
profile: false,
|
|
544
|
+
...isDev ? {
|
|
545
|
+
watchOptions: {
|
|
546
|
+
ignored: /node_modules/
|
|
547
|
+
}
|
|
548
|
+
} : {},
|
|
544
549
|
optimization: optimization$1,
|
|
545
550
|
bail: false,
|
|
546
551
|
performance: {
|
|
@@ -902,4 +907,4 @@ exports.resolveBaseUrl = resolveBaseUrl;
|
|
|
902
907
|
exports.resolveBundlingPaths = resolveBundlingPaths;
|
|
903
908
|
exports.resolveEndpoint = resolveEndpoint;
|
|
904
909
|
exports.resolveOptionalBundlingPaths = resolveOptionalBundlingPaths;
|
|
905
|
-
//# sourceMappingURL=moduleFederation-
|
|
910
|
+
//# sourceMappingURL=moduleFederation-Dq0n1quT.cjs.js.map
|