@backstage/cli 0.26.3-next.1 → 0.26.4
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 +42 -0
- package/dist/cjs/{build-B2svdnE0.cjs.js → build-utVvLEah.cjs.js} +7 -7
- package/dist/cjs/{buildBackend-wIkIb27c.cjs.js → buildBackend-Cv6N14cB.cjs.js} +18 -12
- package/dist/cjs/{buildWorkspace-BkKiBaCw.cjs.js → buildWorkspace-DGKvYFIj.cjs.js} +4 -4
- package/dist/cjs/{bump-6D57qa0M.cjs.js → bump-XGQA1gKg.cjs.js} +126 -19
- package/dist/cjs/{clean-gk4pzfML.cjs.js → clean-C6SPRIp1.cjs.js} +2 -2
- package/dist/cjs/{clean-Dnx7f8Rj.cjs.js → clean-DCboBDiG.cjs.js} +2 -2
- package/dist/cjs/{codeowners-CHWeznQB.cjs.js → codeowners-BYrqMw1o.cjs.js} +2 -2
- package/dist/cjs/{config-ZgOEftdd.cjs.js → config-OeQcmdz6.cjs.js} +2 -2
- package/dist/cjs/{createDistWorkspace-C9BkNGbd.cjs.js → createDistWorkspace-CLrZPAfL.cjs.js} +3 -3
- package/dist/cjs/{createPlugin-CtrzKitG.cjs.js → createPlugin-CYmaPNu_.cjs.js} +4 -4
- package/dist/cjs/{diff-DRypuEzJ.cjs.js → diff-BY86Taqq.cjs.js} +2 -2
- package/dist/cjs/{docs-JrjM9zNA.cjs.js → docs-B0CQkEw9.cjs.js} +3 -3
- package/dist/cjs/{fix-CNt0672D.cjs.js → fix-FWgJ8c2m.cjs.js} +2 -2
- package/dist/cjs/{index-D-cEdcSs.cjs.js → index-B7dlVlWC.cjs.js} +8 -8
- package/dist/cjs/{index-6CsX8IAB.cjs.js → index-BEAuaU6W.cjs.js} +2 -2
- package/dist/cjs/{index-DOV8fBNP.cjs.js → index-BGjvavg9.cjs.js} +3 -3
- package/dist/cjs/{index-rEce7XZY.cjs.js → index-BVuheGHy.cjs.js} +7 -7
- package/dist/cjs/{index-oSzSNpPa.cjs.js → index-CCLafGQH.cjs.js} +58 -48
- package/dist/cjs/{info-CISUc4Vp.cjs.js → info-CpkBUBIC.cjs.js} +3 -3
- package/dist/cjs/{install-Cy8csyOa.cjs.js → install-a70I9AV7.cjs.js} +4 -4
- package/dist/cjs/{lint-B_Gw0vBK.cjs.js → lint-BHw1vR1K.cjs.js} +3 -3
- package/dist/cjs/{lint-nbsE5tUZ.cjs.js → lint-CxL5YvXa.cjs.js} +2 -2
- package/dist/cjs/{lint-CDrbFOZR.cjs.js → lint-D1cUQzlq.cjs.js} +2 -2
- package/dist/cjs/{list-deprecations-BRWBMTCl.cjs.js → list-deprecations-CJyw8gP3.cjs.js} +2 -2
- package/dist/cjs/{new-DJp8KkJi.cjs.js → new-CfGQG6Qx.cjs.js} +4 -4
- package/dist/cjs/{pack-DutJbz5U.cjs.js → pack-BWpG6Q1Q.cjs.js} +2 -2
- package/dist/cjs/{packageDetection-C93c2UFV.cjs.js → packageDetection-C__AGK-g.cjs.js} +8 -5
- package/dist/cjs/{packageExports-DP2jy6MS.cjs.js → packageExports-BWXuj98y.cjs.js} +3 -3
- package/dist/cjs/{packageLintConfigs-DpxgbKkb.cjs.js → packageLintConfigs-DfJEbmNy.cjs.js} +3 -3
- package/dist/cjs/{packageRole-B0mz5OXx.cjs.js → packageRole-DqT0OXAm.cjs.js} +2 -2
- package/dist/cjs/{packages-CjP9eNkl.cjs.js → packages-O225IQzG.cjs.js} +3 -3
- package/dist/cjs/{print-DMNykwR3.cjs.js → print-Brf_w0UC.cjs.js} +3 -3
- package/dist/cjs/{role-BJISTkQQ.cjs.js → role-6YZbMsXe.cjs.js} +2 -2
- package/dist/cjs/{run-7dPS1ROK.cjs.js → run-BcxUFacd.cjs.js} +2 -2
- package/dist/cjs/{schema-B47AxJsx.cjs.js → schema-_RJzkqy4.cjs.js} +3 -3
- package/dist/cjs/{test-DBwkwpTT.cjs.js → test-BEHilerQ.cjs.js} +3 -3
- package/dist/cjs/{test-Bh29ol4B.cjs.js → test-Bhiqn_8K.cjs.js} +3 -3
- package/dist/cjs/{validate-BQaM9BJ8.cjs.js → validate-uBFU47Vl.cjs.js} +3 -3
- package/dist/index.cjs.js +1 -1
- package/package.json +15 -14
|
@@ -53,13 +53,13 @@ class NotFoundError extends CustomError {
|
|
|
53
53
|
|
|
54
54
|
const paths = cliCommon.findPaths(__dirname);
|
|
55
55
|
|
|
56
|
-
var version$f = "0.21.7
|
|
56
|
+
var version$f = "0.21.7";
|
|
57
57
|
|
|
58
|
-
var version$e = "0.6.17
|
|
58
|
+
var version$e = "0.6.17";
|
|
59
59
|
|
|
60
|
-
var version$d = "0.3.7
|
|
60
|
+
var version$d = "0.3.7";
|
|
61
61
|
|
|
62
|
-
var version$c = "0.26.
|
|
62
|
+
var version$c = "0.26.4";
|
|
63
63
|
var dependencies = {
|
|
64
64
|
"@backstage/catalog-model": "workspace:^",
|
|
65
65
|
"@backstage/cli-common": "workspace:^",
|
|
@@ -151,6 +151,7 @@ var dependencies = {
|
|
|
151
151
|
"react-dev-utils": "^12.0.0-next.60",
|
|
152
152
|
"react-refresh": "^0.14.0",
|
|
153
153
|
"recursive-readdir": "^2.2.2",
|
|
154
|
+
"replace-in-file": "^7.1.0",
|
|
154
155
|
rollup: "^4.0.0",
|
|
155
156
|
"rollup-plugin-dts": "^6.1.0",
|
|
156
157
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
@@ -210,25 +211,25 @@ var devDependencies = {
|
|
|
210
211
|
|
|
211
212
|
var version$b = "1.2.0";
|
|
212
213
|
|
|
213
|
-
var version$a = "1.12.4
|
|
214
|
+
var version$a = "1.12.4";
|
|
214
215
|
|
|
215
|
-
var version$9 = "0.14.4
|
|
216
|
+
var version$9 = "0.14.4";
|
|
216
217
|
|
|
217
|
-
var version$8 = "1.9.
|
|
218
|
+
var version$8 = "1.9.2";
|
|
218
219
|
|
|
219
|
-
var version$7 = "1.0.31
|
|
220
|
+
var version$7 = "1.0.31";
|
|
220
221
|
|
|
221
|
-
var version$6 = "1.5.4
|
|
222
|
+
var version$6 = "1.5.4";
|
|
222
223
|
|
|
223
|
-
var version$5 = "0.4.3
|
|
224
|
+
var version$5 = "0.4.3";
|
|
224
225
|
|
|
225
|
-
var version$4 = "0.22.4
|
|
226
|
+
var version$4 = "0.22.4";
|
|
226
227
|
|
|
227
|
-
var version$3 = "0.1.3
|
|
228
|
+
var version$3 = "0.1.3";
|
|
228
229
|
|
|
229
|
-
var version$2 = "0.5.
|
|
230
|
+
var version$2 = "0.5.3";
|
|
230
231
|
|
|
231
|
-
var version$1 = "0.2.17
|
|
232
|
+
var version$1 = "0.2.17";
|
|
232
233
|
|
|
233
234
|
const packageVersions = {
|
|
234
235
|
"@backstage/backend-common": version$f,
|
|
@@ -295,7 +296,7 @@ const configOption = [
|
|
|
295
296
|
Array()
|
|
296
297
|
];
|
|
297
298
|
function registerOnboardCommand(program) {
|
|
298
|
-
program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
299
|
+
program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-BGjvavg9.cjs.js'); }).then((m) => m.command)));
|
|
299
300
|
}
|
|
300
301
|
function registerRepoCommand(program) {
|
|
301
302
|
const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
|
|
@@ -307,7 +308,7 @@ function registerRepoCommand(program) {
|
|
|
307
308
|
).option(
|
|
308
309
|
"--since <ref>",
|
|
309
310
|
"Only build packages and their dev dependents that changed since the specified ref"
|
|
310
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
311
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./build-utVvLEah.cjs.js'); }).then((m) => m.command)));
|
|
311
312
|
command.command("lint").description("Lint all packages in the project").option(
|
|
312
313
|
"--format <format>",
|
|
313
314
|
"Lint report output format",
|
|
@@ -315,14 +316,14 @@ function registerRepoCommand(program) {
|
|
|
315
316
|
).option(
|
|
316
317
|
"--since <ref>",
|
|
317
318
|
"Only lint packages that changed since the specified ref"
|
|
318
|
-
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
319
|
+
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-CxL5YvXa.cjs.js'); }).then((m) => m.command)));
|
|
319
320
|
command.command("fix").description("Automatically fix packages in the project").option(
|
|
320
321
|
"--check",
|
|
321
322
|
"Fail if any packages would have been changed by the command"
|
|
322
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./fix-
|
|
323
|
-
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
323
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./fix-FWgJ8c2m.cjs.js'); }).then((m) => m.command)));
|
|
324
|
+
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-DCboBDiG.cjs.js'); }).then((m) => m.command)));
|
|
324
325
|
command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
|
|
325
|
-
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-
|
|
326
|
+
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-CJyw8gP3.cjs.js'); }).then((m) => m.command))
|
|
326
327
|
);
|
|
327
328
|
command.command("test").allowUnknownOption(true).option(
|
|
328
329
|
"--since <ref>",
|
|
@@ -330,14 +331,14 @@ function registerRepoCommand(program) {
|
|
|
330
331
|
).option(
|
|
331
332
|
"--jest-help",
|
|
332
333
|
"Show help for Jest CLI options, which are passed through"
|
|
333
|
-
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
334
|
+
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-BEHilerQ.cjs.js'); }).then((m) => m.command)));
|
|
334
335
|
}
|
|
335
336
|
function registerScriptCommand(program) {
|
|
336
337
|
const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
|
|
337
338
|
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(
|
|
338
339
|
"--inspect-brk [host]",
|
|
339
340
|
"Enable debugger in Node.js environments, breaking before code starts"
|
|
340
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
341
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-BVuheGHy.cjs.js'); }).then((m) => m.command)));
|
|
341
342
|
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
|
|
342
343
|
"--minify",
|
|
343
344
|
"Minify the generated code. Does not apply to app package (app is minified by default)."
|
|
@@ -352,30 +353,30 @@ function registerScriptCommand(program) {
|
|
|
352
353
|
"Config files to load instead of app-config.yaml. Applies to app packages only.",
|
|
353
354
|
(opt, opts) => opts ? [...opts, opt] : [opt],
|
|
354
355
|
Array()
|
|
355
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
356
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-B7dlVlWC.cjs.js'); }).then((m) => m.command)));
|
|
356
357
|
command.command("lint [directories...]").option(
|
|
357
358
|
"--format <format>",
|
|
358
359
|
"Lint report output format",
|
|
359
360
|
"eslint-formatter-friendly"
|
|
360
|
-
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
361
|
-
command.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
362
|
-
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
363
|
-
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
364
|
-
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
361
|
+
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-D1cUQzlq.cjs.js'); }).then((m) => m.default)));
|
|
362
|
+
command.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-Bhiqn_8K.cjs.js'); }).then((m) => m.default)));
|
|
363
|
+
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-C6SPRIp1.cjs.js'); }).then((m) => m.default)));
|
|
364
|
+
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-BWpG6Q1Q.cjs.js'); }).then((m) => m.pre)));
|
|
365
|
+
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-BWpG6Q1Q.cjs.js'); }).then((m) => m.post)));
|
|
365
366
|
}
|
|
366
367
|
function registerMigrateCommand(program) {
|
|
367
368
|
const command = program.command("migrate [command]").description("Migration utilities");
|
|
368
|
-
command.command("package-roles").description(`Add package role field to packages that don't have it`).action(lazy(() => Promise.resolve().then(function () { return require('./packageRole-
|
|
369
|
+
command.command("package-roles").description(`Add package role field to packages that don't have it`).action(lazy(() => Promise.resolve().then(function () { return require('./packageRole-DqT0OXAm.cjs.js'); }).then((m) => m.default)));
|
|
369
370
|
command.command("package-scripts").description("Set package scripts according to each package role").action(
|
|
370
371
|
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-CPnlPBBs.cjs.js'); }).then((m) => m.command))
|
|
371
372
|
);
|
|
372
373
|
command.command("package-exports").description("Synchronize package subpath export definitions").action(
|
|
373
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageExports-
|
|
374
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageExports-BWXuj98y.cjs.js'); }).then((m) => m.command))
|
|
374
375
|
);
|
|
375
376
|
command.command("package-lint-configs").description(
|
|
376
377
|
"Migrates all packages to use @backstage/cli/config/eslint-factory"
|
|
377
378
|
).action(
|
|
378
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-
|
|
379
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-DfJEbmNy.cjs.js'); }).then((m) => m.command))
|
|
379
380
|
);
|
|
380
381
|
command.command("react-router-deps").description(
|
|
381
382
|
"Migrates the react-router dependencies for all packages to be peer dependencies"
|
|
@@ -400,7 +401,7 @@ function registerCommands(program) {
|
|
|
400
401
|
).option(
|
|
401
402
|
"--baseVersion <version>",
|
|
402
403
|
"The version to use for any new packages (default: 0.1.0)"
|
|
403
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
404
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-CfGQG6Qx.cjs.js'); }).then((m) => m.default)));
|
|
404
405
|
program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
|
|
405
406
|
"Open up an interactive guide to creating new things in your app [DEPRECATED]"
|
|
406
407
|
).option(
|
|
@@ -414,30 +415,30 @@ function registerCommands(program) {
|
|
|
414
415
|
).option("--scope <scope>", "The scope to use for new packages").option(
|
|
415
416
|
"--npm-registry <URL>",
|
|
416
417
|
"The package registry to use for new packages"
|
|
417
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
418
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-CfGQG6Qx.cjs.js'); }).then((m) => m.default)));
|
|
418
419
|
program.command("create-plugin", { hidden: true }).option(
|
|
419
420
|
"--backend",
|
|
420
421
|
"Create plugin with the backend dependencies as default"
|
|
421
422
|
).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(
|
|
422
|
-
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-
|
|
423
|
+
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-CYmaPNu_.cjs.js'); }).then((m) => m.default))
|
|
423
424
|
);
|
|
424
425
|
program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
|
|
425
426
|
"Diff an existing plugin with the creation template [DEPRECATED]"
|
|
426
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-
|
|
427
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-BY86Taqq.cjs.js'); }).then((m) => m.default)));
|
|
427
428
|
program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
|
|
428
429
|
"Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
|
|
429
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
430
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./test-Bhiqn_8K.cjs.js'); }).then((m) => m.default)));
|
|
430
431
|
program.command("config:docs").option(
|
|
431
432
|
"--package <name>",
|
|
432
433
|
"Only include the schema that applies to the given package"
|
|
433
|
-
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-
|
|
434
|
+
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-B0CQkEw9.cjs.js'); }).then((m) => m.default)));
|
|
434
435
|
program.command("config:print").option(
|
|
435
436
|
"--package <name>",
|
|
436
437
|
"Only load config schema that applies to the given package"
|
|
437
438
|
).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(
|
|
438
439
|
"--format <format>",
|
|
439
440
|
"Format to print the configuration in, either json or yaml [yaml]"
|
|
440
|
-
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-
|
|
441
|
+
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-Brf_w0UC.cjs.js'); }).then((m) => m.default)));
|
|
441
442
|
program.command("config:check").option(
|
|
442
443
|
"--package <name>",
|
|
443
444
|
"Only load config schema that applies to the given package"
|
|
@@ -446,14 +447,14 @@ function registerCommands(program) {
|
|
|
446
447
|
"Enable strict config validation, forbidding errors and unknown keys"
|
|
447
448
|
).option(...configOption).description(
|
|
448
449
|
"Validate that the given configuration loads and matches schema"
|
|
449
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-
|
|
450
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-uBFU47Vl.cjs.js'); }).then((m) => m.default)));
|
|
450
451
|
program.command("config:schema").option(
|
|
451
452
|
"--package <name>",
|
|
452
453
|
"Only output config schema that applies to the given package"
|
|
453
454
|
).option(
|
|
454
455
|
"--format <format>",
|
|
455
456
|
"Format to print the schema in, either json or yaml [yaml]"
|
|
456
|
-
).option("--merge", "Print the config schemas merged", true).option("--no-merge", "Print the config schemas not merged").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-
|
|
457
|
+
).option("--merge", "Print the config schemas merged", true).option("--no-merge", "Print the config schemas not merged").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-_RJzkqy4.cjs.js'); }).then((m) => m.default)));
|
|
457
458
|
registerRepoCommand(program);
|
|
458
459
|
registerScriptCommand(program);
|
|
459
460
|
registerMigrateCommand(program);
|
|
@@ -465,19 +466,28 @@ function registerCommands(program) {
|
|
|
465
466
|
"--release <version|next|main>",
|
|
466
467
|
"Bump to a specific Backstage release line or version",
|
|
467
468
|
"main"
|
|
468
|
-
).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-
|
|
469
|
-
program.command("versions:check").option("--fix", "Fix any auto-fixable versioning problems").description("Check Backstage package versioning").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
470
|
-
program.command("
|
|
469
|
+
).option("--skip-install", "Skips yarn install step").option("--skip-migrate", "Skips migration of any moved packages").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-XGQA1gKg.cjs.js'); }).then(function (n) { return n.bump; }).then((m) => m.default)));
|
|
470
|
+
program.command("versions:check").option("--fix", "Fix any auto-fixable versioning problems").description("Check Backstage package versioning").action(lazy(() => Promise.resolve().then(function () { return require('./lint-BHw1vR1K.cjs.js'); }).then((m) => m.default)));
|
|
471
|
+
program.command("versions:migrate").option(
|
|
472
|
+
"--pattern <glob>",
|
|
473
|
+
"Override glob for matching packages to upgrade"
|
|
474
|
+
).option(
|
|
475
|
+
"--skip-code-changes",
|
|
476
|
+
"Skip code changes and only update package.json files"
|
|
477
|
+
).description(
|
|
478
|
+
"Migrate any plugins that have been moved to the @backstage-community namespace automatically"
|
|
479
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./bump-XGQA1gKg.cjs.js'); }).then(function (n) { return n.migrate; }).then((m) => m.default)));
|
|
480
|
+
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-C6SPRIp1.cjs.js'); }).then((m) => m.default)));
|
|
471
481
|
program.command("build-workspace <workspace-dir> [packages...]").option(
|
|
472
482
|
"--alwaysYarnPack",
|
|
473
483
|
"Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
|
|
474
|
-
).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-
|
|
475
|
-
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
476
|
-
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-
|
|
484
|
+
).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-DGKvYFIj.cjs.js'); }).then((m) => m.default)));
|
|
485
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-BEAuaU6W.cjs.js'); }).then((m) => m.default)));
|
|
486
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-CpkBUBIC.cjs.js'); }).then((m) => m.default)));
|
|
477
487
|
program.command("install [plugin-id]", { hidden: true }).option(
|
|
478
488
|
"--from <packageJsonFilePath>",
|
|
479
489
|
"Install from a local package.json containing the installation recipe"
|
|
480
|
-
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-
|
|
490
|
+
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-a70I9AV7.cjs.js'); }).then((m) => m.default)));
|
|
481
491
|
}
|
|
482
492
|
function lazy(getActionFunc) {
|
|
483
493
|
return async (...args) => {
|
|
@@ -521,4 +531,4 @@ exports.devDependencies = devDependencies;
|
|
|
521
531
|
exports.paths = paths;
|
|
522
532
|
exports.version = version;
|
|
523
533
|
exports.version$1 = version$c;
|
|
524
|
-
//# sourceMappingURL=index-
|
|
534
|
+
//# sourceMappingURL=index-CCLafGQH.cjs.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CCLafGQH.cjs.js');
|
|
4
4
|
var os = require('os');
|
|
5
|
-
var run = require('./run-
|
|
5
|
+
var run = require('./run-BcxUFacd.cjs.js');
|
|
6
6
|
var Lockfile = require('./Lockfile-C7rtIlD6.cjs.js');
|
|
7
7
|
require('minimatch');
|
|
8
8
|
require('@manypkg/get-packages');
|
|
@@ -58,4 +58,4 @@ var info = async () => {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
exports.default = info;
|
|
61
|
-
//# sourceMappingURL=info-
|
|
61
|
+
//# sourceMappingURL=info-CpkBUBIC.cjs.js.map
|
|
@@ -4,12 +4,12 @@ var fs = require('fs-extra');
|
|
|
4
4
|
require('semver');
|
|
5
5
|
require('@yarnpkg/parsers');
|
|
6
6
|
require('@yarnpkg/lockfile');
|
|
7
|
-
var packages = require('./packages-
|
|
8
|
-
var index = require('./index-
|
|
7
|
+
var packages = require('./packages-O225IQzG.cjs.js');
|
|
8
|
+
var index = require('./index-CCLafGQH.cjs.js');
|
|
9
9
|
var chalk = require('chalk');
|
|
10
10
|
var sortBy = require('lodash/sortBy');
|
|
11
11
|
var groupBy = require('lodash/groupBy');
|
|
12
|
-
var run = require('./run-
|
|
12
|
+
var run = require('./run-BcxUFacd.cjs.js');
|
|
13
13
|
require('minimatch');
|
|
14
14
|
require('@manypkg/get-packages');
|
|
15
15
|
require('./yarn-BDZCENk5.cjs.js');
|
|
@@ -268,4 +268,4 @@ var install = async (pluginId, cmd) => {
|
|
|
268
268
|
};
|
|
269
269
|
|
|
270
270
|
exports.default = install;
|
|
271
|
-
//# sourceMappingURL=install-
|
|
271
|
+
//# sourceMappingURL=install-a70I9AV7.cjs.js.map
|
|
@@ -5,8 +5,8 @@ require('minimatch');
|
|
|
5
5
|
require('@manypkg/get-packages');
|
|
6
6
|
require('chalk');
|
|
7
7
|
require('./yarn-BDZCENk5.cjs.js');
|
|
8
|
-
require('./run-
|
|
9
|
-
var index = require('./index-
|
|
8
|
+
require('./run-BcxUFacd.cjs.js');
|
|
9
|
+
var index = require('./index-CCLafGQH.cjs.js');
|
|
10
10
|
var partition = require('lodash/partition');
|
|
11
11
|
var cliNode = require('@backstage/cli-node');
|
|
12
12
|
require('fs-extra');
|
|
@@ -112,4 +112,4 @@ function logArray(arr, header, each) {
|
|
|
112
112
|
exports.default = lint;
|
|
113
113
|
exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
|
|
114
114
|
exports.includedFilter = includedFilter;
|
|
115
|
-
//# sourceMappingURL=lint-
|
|
115
|
+
//# sourceMappingURL=lint-BHw1vR1K.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-CCLafGQH.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-CxL5YvXa.cjs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CCLafGQH.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-D1cUQzlq.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-CCLafGQH.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-CJyw8gP3.cjs.js.map
|
|
@@ -7,14 +7,14 @@ var chalk = require('chalk');
|
|
|
7
7
|
var inquirer = require('inquirer');
|
|
8
8
|
var camelCase = require('lodash/camelCase');
|
|
9
9
|
var upperFirst = require('lodash/upperFirst');
|
|
10
|
-
var index = require('./index-
|
|
11
|
-
var codeowners = require('./codeowners-
|
|
10
|
+
var index = require('./index-CCLafGQH.cjs.js');
|
|
11
|
+
var codeowners = require('./codeowners-BYrqMw1o.cjs.js');
|
|
12
12
|
var tasks = require('./tasks-mGXy8WjR.cjs.js');
|
|
13
13
|
var Lockfile = require('./Lockfile-C7rtIlD6.cjs.js');
|
|
14
14
|
require('minimatch');
|
|
15
15
|
require('@manypkg/get-packages');
|
|
16
16
|
require('./yarn-BDZCENk5.cjs.js');
|
|
17
|
-
require('./run-
|
|
17
|
+
require('./run-BcxUFacd.cjs.js');
|
|
18
18
|
var partition = require('lodash/partition');
|
|
19
19
|
var cliNode = require('@backstage/cli-node');
|
|
20
20
|
var errors = require('@backstage/errors');
|
|
@@ -777,4 +777,4 @@ var _new = async (opts) => {
|
|
|
777
777
|
};
|
|
778
778
|
|
|
779
779
|
exports.default = _new;
|
|
780
|
-
//# sourceMappingURL=new-
|
|
780
|
+
//# sourceMappingURL=new-CfGQG6Qx.cjs.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var productionPack = require('./productionPack-DotlEIE2.cjs.js');
|
|
4
|
-
var index = require('./index-
|
|
4
|
+
var index = require('./index-CCLafGQH.cjs.js');
|
|
5
5
|
require('fs-extra');
|
|
6
6
|
require('npm-packlist');
|
|
7
7
|
require('path');
|
|
@@ -21,4 +21,4 @@ const post = async () => {
|
|
|
21
21
|
|
|
22
22
|
exports.post = post;
|
|
23
23
|
exports.pre = pre;
|
|
24
|
-
//# sourceMappingURL=pack-
|
|
24
|
+
//# sourceMappingURL=pack-BWpG6Q1Q.cjs.js.map
|
|
@@ -8,13 +8,13 @@ var HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
|
8
8
|
var cliCommon = require('@backstage/cli-common');
|
|
9
9
|
var ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
|
|
10
10
|
var runScriptWebpackPlugin = require('run-script-webpack-plugin');
|
|
11
|
-
var index = require('./index-
|
|
11
|
+
var index = require('./index-CCLafGQH.cjs.js');
|
|
12
12
|
var fs = require('fs-extra');
|
|
13
13
|
var getPackages = require('@manypkg/get-packages');
|
|
14
14
|
var nodeExternals = require('webpack-node-externals');
|
|
15
15
|
var pickBy = require('lodash/pickBy');
|
|
16
16
|
var entryPoints = require('./entryPoints-CoHH4lBA.cjs.js');
|
|
17
|
-
var run = require('./run-
|
|
17
|
+
var run = require('./run-BcxUFacd.cjs.js');
|
|
18
18
|
var MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
19
19
|
var svgrTemplate = require('./svgrTemplate-BTjBQ3by.cjs.js');
|
|
20
20
|
var ReactRefreshPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
|
|
@@ -348,7 +348,7 @@ async function readBuildInfo() {
|
|
|
348
348
|
};
|
|
349
349
|
}
|
|
350
350
|
async function createConfig(paths, options) {
|
|
351
|
-
var _a;
|
|
351
|
+
var _a, _b;
|
|
352
352
|
const { checksEnabled, isDev, frontendConfig, publicSubPath = "" } = options;
|
|
353
353
|
const { plugins, loaders } = transforms(options);
|
|
354
354
|
const { packages } = await getPackages.getPackages(index.paths.targetDir);
|
|
@@ -377,6 +377,9 @@ async function createConfig(paths, options) {
|
|
|
377
377
|
);
|
|
378
378
|
plugins.push(
|
|
379
379
|
new HtmlWebpackPlugin__default.default({
|
|
380
|
+
meta: {
|
|
381
|
+
"backstage-app-mode": (_a = options == null ? void 0 : options.appMode) != null ? _a : "public"
|
|
382
|
+
},
|
|
380
383
|
template: paths.targetHtml,
|
|
381
384
|
templateParameters: {
|
|
382
385
|
publicPath,
|
|
@@ -416,7 +419,7 @@ async function createConfig(paths, options) {
|
|
|
416
419
|
},
|
|
417
420
|
devtool: isDev ? "eval-cheap-module-source-map" : "source-map",
|
|
418
421
|
context: paths.targetPath,
|
|
419
|
-
entry: [...(
|
|
422
|
+
entry: [...(_b = options.additionalEntryPoints) != null ? _b : [], paths.targetEntry],
|
|
420
423
|
resolve: {
|
|
421
424
|
extensions: [".ts", ".tsx", ".mjs", ".js", ".jsx", ".json", ".wasm"],
|
|
422
425
|
mainFields: ["browser", "module", "main"],
|
|
@@ -744,4 +747,4 @@ exports.hasReactDomClient = hasReactDomClient;
|
|
|
744
747
|
exports.resolveBaseUrl = resolveBaseUrl;
|
|
745
748
|
exports.resolveBundlingPaths = resolveBundlingPaths;
|
|
746
749
|
exports.resolveOptionalBundlingPaths = resolveOptionalBundlingPaths;
|
|
747
|
-
//# sourceMappingURL=packageDetection-
|
|
750
|
+
//# sourceMappingURL=packageDetection-C__AGK-g.cjs.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var fix = require('./fix-
|
|
3
|
+
var fix = require('./fix-FWgJ8c2m.cjs.js');
|
|
4
4
|
require('@backstage/cli-node');
|
|
5
5
|
require('fs-extra');
|
|
6
6
|
require('path');
|
|
7
|
-
require('./index-
|
|
7
|
+
require('./index-CCLafGQH.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('semver');
|
|
@@ -23,4 +23,4 @@ async function command() {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
exports.command = command;
|
|
26
|
-
//# sourceMappingURL=packageExports-
|
|
26
|
+
//# sourceMappingURL=packageExports-BWXuj98y.cjs.js.map
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
4
|
var path = require('path');
|
|
5
5
|
var cliNode = require('@backstage/cli-node');
|
|
6
|
-
var run = require('./run-
|
|
6
|
+
var run = require('./run-BcxUFacd.cjs.js');
|
|
7
7
|
require('child_process');
|
|
8
|
-
require('./index-
|
|
8
|
+
require('./index-CCLafGQH.cjs.js');
|
|
9
9
|
require('commander');
|
|
10
10
|
require('chalk');
|
|
11
11
|
require('semver');
|
|
@@ -79,4 +79,4 @@ async function command() {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
exports.command = command;
|
|
82
|
-
//# sourceMappingURL=packageLintConfigs-
|
|
82
|
+
//# sourceMappingURL=packageLintConfigs-DfJEbmNy.cjs.js.map
|
|
@@ -4,7 +4,7 @@ var fs = require('fs-extra');
|
|
|
4
4
|
var path = require('path');
|
|
5
5
|
var getPackages = require('@manypkg/get-packages');
|
|
6
6
|
var cliNode = require('@backstage/cli-node');
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-CCLafGQH.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('semver');
|
|
@@ -55,4 +55,4 @@ var packageRole = async () => {
|
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
exports.default = packageRole;
|
|
58
|
-
//# sourceMappingURL=packageRole-
|
|
58
|
+
//# sourceMappingURL=packageRole-DqT0OXAm.cjs.js.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var minimatch = require('minimatch');
|
|
4
4
|
var getPackages = require('@manypkg/get-packages');
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-CCLafGQH.cjs.js');
|
|
6
6
|
var yarn = require('./yarn-BDZCENk5.cjs.js');
|
|
7
|
-
var run = require('./run-
|
|
7
|
+
var run = require('./run-BcxUFacd.cjs.js');
|
|
8
8
|
|
|
9
9
|
const DEP_TYPES = [
|
|
10
10
|
"dependencies",
|
|
@@ -76,4 +76,4 @@ async function mapDependencies(targetDir, pattern) {
|
|
|
76
76
|
|
|
77
77
|
exports.fetchPackageInfo = fetchPackageInfo;
|
|
78
78
|
exports.mapDependencies = mapDependencies;
|
|
79
|
-
//# sourceMappingURL=packages-
|
|
79
|
+
//# sourceMappingURL=packages-O225IQzG.cjs.js.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var yaml = require('yaml');
|
|
4
4
|
var config$1 = require('@backstage/config');
|
|
5
|
-
var config = require('./config-
|
|
5
|
+
var config = require('./config-OeQcmdz6.cjs.js');
|
|
6
6
|
require('@backstage/config-loader');
|
|
7
|
-
require('./index-
|
|
7
|
+
require('./index-CCLafGQH.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('fs-extra');
|
|
@@ -58,4 +58,4 @@ function serializeConfigData(appConfigs, schema, visibility) {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
exports.default = print;
|
|
61
|
-
//# sourceMappingURL=print-
|
|
61
|
+
//# sourceMappingURL=print-Brf_w0UC.cjs.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
|
-
var index = require('./index-
|
|
4
|
+
var index = require('./index-CCLafGQH.cjs.js');
|
|
5
5
|
var cliNode = require('@backstage/cli-node');
|
|
6
6
|
|
|
7
7
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -22,4 +22,4 @@ async function findRoleFromCommand(opts) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
exports.findRoleFromCommand = findRoleFromCommand;
|
|
25
|
-
//# sourceMappingURL=role-
|
|
25
|
+
//# sourceMappingURL=role-6YZbMsXe.cjs.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var child_process = require('child_process');
|
|
4
|
-
var index = require('./index-
|
|
4
|
+
var index = require('./index-CCLafGQH.cjs.js');
|
|
5
5
|
var util = require('util');
|
|
6
6
|
var errors = require('@backstage/errors');
|
|
7
7
|
|
|
@@ -79,4 +79,4 @@ exports.execFile = execFile;
|
|
|
79
79
|
exports.run = run;
|
|
80
80
|
exports.runCheck = runCheck;
|
|
81
81
|
exports.runPlain = runPlain;
|
|
82
|
-
//# sourceMappingURL=run-
|
|
82
|
+
//# sourceMappingURL=run-BcxUFacd.cjs.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var yaml = require('yaml');
|
|
4
|
-
var config = require('./config-
|
|
4
|
+
var config = require('./config-OeQcmdz6.cjs.js');
|
|
5
5
|
var configLoader = require('@backstage/config-loader');
|
|
6
6
|
require('@backstage/config');
|
|
7
|
-
require('./index-
|
|
7
|
+
require('./index-CCLafGQH.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('fs-extra');
|
|
@@ -42,4 +42,4 @@ var schema = async (opts) => {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
exports.default = schema;
|
|
45
|
-
//# sourceMappingURL=schema-
|
|
45
|
+
//# sourceMappingURL=schema-_RJzkqy4.cjs.js.map
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var os = require('os');
|
|
4
4
|
var cliNode = require('@backstage/cli-node');
|
|
5
|
-
var index = require('./index-
|
|
6
|
-
var run = require('./run-
|
|
5
|
+
var index = require('./index-CCLafGQH.cjs.js');
|
|
6
|
+
var run = require('./run-BcxUFacd.cjs.js');
|
|
7
7
|
require('commander');
|
|
8
8
|
require('chalk');
|
|
9
9
|
require('fs-extra');
|
|
@@ -123,4 +123,4 @@ async function command(opts, cmd) {
|
|
|
123
123
|
|
|
124
124
|
exports.command = command;
|
|
125
125
|
exports.createFlagFinder = createFlagFinder;
|
|
126
|
-
//# sourceMappingURL=test-
|
|
126
|
+
//# sourceMappingURL=test-BEHilerQ.cjs.js.map
|