@backstage/cli 0.23.0-next.2 → 0.23.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 +56 -1
- package/config/jest.js +7 -0
- package/dist/cjs/{build-266b6426.cjs.js → build-b2d59a62.cjs.js} +8 -8
- package/dist/cjs/{buildBackend-8019130f.cjs.js → buildBackend-73fb40c0.cjs.js} +7 -6
- package/dist/cjs/{buildWorkspace-1433113e.cjs.js → buildWorkspace-edb9bf88.cjs.js} +4 -4
- package/dist/cjs/{bump-62013d22.cjs.js → bump-2e8bea56.cjs.js} +5 -5
- package/dist/cjs/{clean-03de4134.cjs.js → clean-9f682b9f.cjs.js} +2 -2
- package/dist/cjs/{clean-f043613b.cjs.js → clean-a349dbb4.cjs.js} +2 -2
- package/dist/cjs/{codeowners-1d7f21df.cjs.js → codeowners-70c73aee.cjs.js} +2 -2
- package/dist/cjs/{config-306bf5a2.cjs.js → config-588c8815.cjs.js} +2 -2
- package/dist/cjs/{createDistWorkspace-ffd6e7a2.cjs.js → createDistWorkspace-689658dd.cjs.js} +3 -3
- package/dist/cjs/{createPlugin-f0cccf2e.cjs.js → createPlugin-d2dd186c.cjs.js} +4 -4
- package/dist/cjs/{diff-f698ae5f.cjs.js → diff-c53024e7.cjs.js} +2 -2
- package/dist/cjs/{docs-cc299e7c.cjs.js → docs-b023ba4c.cjs.js} +3 -3
- package/dist/cjs/{fix-94798ad7.cjs.js → fix-889c755d.cjs.js} +2 -2
- package/dist/cjs/{index-96a9946a.cjs.js → index-38012d61.cjs.js} +9 -10
- package/dist/cjs/{index-5f67cdfb.cjs.js → index-7029b530.cjs.js} +9 -9
- package/dist/cjs/{index-6cf6638f.cjs.js → index-8a8396a9.cjs.js} +2 -2
- package/dist/cjs/{index-56da7468.cjs.js → index-8c92e7ea.cjs.js} +47 -49
- package/dist/cjs/{index-1c74d3d4.cjs.js → index-b8ebd727.cjs.js} +4 -4
- package/dist/cjs/{info-5c3c252a.cjs.js → info-6e62343f.cjs.js} +3 -3
- package/dist/cjs/{install-4907bfa0.cjs.js → install-e0fae686.cjs.js} +4 -4
- package/dist/cjs/{lint-a63bec2d.cjs.js → lint-23477f0c.cjs.js} +3 -3
- package/dist/cjs/{lint-01d4b10c.cjs.js → lint-b05beefc.cjs.js} +2 -2
- package/dist/cjs/{lint-47693b83.cjs.js → lint-bb657028.cjs.js} +2 -2
- package/dist/cjs/{list-deprecations-f4e44f85.cjs.js → list-deprecations-bdc3bae1.cjs.js} +2 -2
- package/dist/cjs/{new-de8e682d.cjs.js → new-87ab84b7.cjs.js} +4 -4
- package/dist/cjs/{pack-414d8d0d.cjs.js → pack-4823376b.cjs.js} +2 -2
- package/dist/cjs/{packageDetection-4af1c8ac.cjs.js → packageDetection-8f2367a5.cjs.js} +46 -20
- package/dist/cjs/{packageExports-eded9a5f.cjs.js → packageExports-5852d902.cjs.js} +3 -3
- package/dist/cjs/{packageLintConfigs-47676d49.cjs.js → packageLintConfigs-59c092df.cjs.js} +3 -3
- package/dist/cjs/{packageRole-69a52f21.cjs.js → packageRole-fba2eebf.cjs.js} +2 -2
- package/dist/cjs/{packages-cd549fee.cjs.js → packages-cf681a73.cjs.js} +3 -3
- package/dist/cjs/{print-70faa981.cjs.js → print-2f64bdf5.cjs.js} +3 -3
- package/dist/cjs/{role-829916a6.cjs.js → role-a1f8262c.cjs.js} +2 -2
- package/dist/cjs/{run-ea727d91.cjs.js → run-5c051ac6.cjs.js} +2 -2
- package/dist/cjs/{schema-721e1c55.cjs.js → schema-ace3bb5e.cjs.js} +3 -3
- package/dist/cjs/{test-295e2ea3.cjs.js → test-59b4bd42.cjs.js} +3 -3
- package/dist/cjs/{test-8b333130.cjs.js → test-cdeaa87a.cjs.js} +3 -3
- package/dist/cjs/{validate-3f650475.cjs.js → validate-a303a8e3.cjs.js} +3 -3
- package/dist/index.cjs.js +1 -1
- package/package.json +19 -21
- package/templates/scaffolder-module/src/actions/example/example.test.ts +1 -1
|
@@ -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.8";
|
|
57
57
|
|
|
58
|
-
var version$b = "0.6.6
|
|
58
|
+
var version$b = "0.6.6";
|
|
59
59
|
|
|
60
|
-
var version$a = "0.2.7
|
|
60
|
+
var version$a = "0.2.7";
|
|
61
61
|
|
|
62
|
-
var version$9 = "0.23.0
|
|
62
|
+
var version$9 = "0.23.0";
|
|
63
63
|
var dependencies = {
|
|
64
64
|
"@backstage/catalog-model": "workspace:^",
|
|
65
65
|
"@backstage/cli-common": "workspace:^",
|
|
@@ -97,7 +97,7 @@ var dependencies = {
|
|
|
97
97
|
"@swc/jest": "^0.2.22",
|
|
98
98
|
"@types/jest": "^29.0.0",
|
|
99
99
|
"@types/webpack-env": "^1.15.2",
|
|
100
|
-
"@typescript-eslint/eslint-plugin": "6.7.
|
|
100
|
+
"@typescript-eslint/eslint-plugin": "6.7.5",
|
|
101
101
|
"@typescript-eslint/parser": "^6.7.2",
|
|
102
102
|
"@yarnpkg/lockfile": "^1.1.0",
|
|
103
103
|
"@yarnpkg/parsers": "^3.0.0-rc.4",
|
|
@@ -189,7 +189,6 @@ var devDependencies = {
|
|
|
189
189
|
"@types/http-proxy": "^1.17.4",
|
|
190
190
|
"@types/inquirer": "^8.1.3",
|
|
191
191
|
"@types/minimatch": "^5.0.0",
|
|
192
|
-
"@types/mock-fs": "^4.13.0",
|
|
193
192
|
"@types/node": "^18.17.8",
|
|
194
193
|
"@types/npm-packlist": "^3.0.0",
|
|
195
194
|
"@types/recursive-readdir": "^2.2.0",
|
|
@@ -200,28 +199,27 @@ var devDependencies = {
|
|
|
200
199
|
"@types/terser-webpack-plugin": "^5.0.4",
|
|
201
200
|
"@types/yarnpkg__lockfile": "^1.1.4",
|
|
202
201
|
del: "^7.0.0",
|
|
203
|
-
"mock-fs": "^5.2.0",
|
|
204
202
|
msw: "^1.0.0",
|
|
205
203
|
nodemon: "^3.0.1",
|
|
206
204
|
"ts-node": "^10.0.0",
|
|
207
205
|
"type-fest": "^2.19.0"
|
|
208
206
|
};
|
|
209
207
|
|
|
210
|
-
var version$8 = "1.1.1
|
|
208
|
+
var version$8 = "1.1.1";
|
|
211
209
|
|
|
212
|
-
var version$7 = "1.11.0
|
|
210
|
+
var version$7 = "1.11.0";
|
|
213
211
|
|
|
214
|
-
var version$6 = "0.13.6
|
|
212
|
+
var version$6 = "0.13.6";
|
|
215
213
|
|
|
216
|
-
var version$5 = "1.7.0
|
|
214
|
+
var version$5 = "1.7.0";
|
|
217
215
|
|
|
218
|
-
var version$4 = "1.0.22
|
|
216
|
+
var version$4 = "1.0.22";
|
|
219
217
|
|
|
220
|
-
var version$3 = "1.4.4
|
|
218
|
+
var version$3 = "1.4.4";
|
|
221
219
|
|
|
222
|
-
var version$2 = "0.4.3
|
|
220
|
+
var version$2 = "0.4.3";
|
|
223
221
|
|
|
224
|
-
var version$1 = "1.18.0
|
|
222
|
+
var version$1 = "1.18.0";
|
|
225
223
|
|
|
226
224
|
const packageVersions = {
|
|
227
225
|
"@backstage/backend-common": version$c,
|
|
@@ -285,7 +283,7 @@ const configOption = [
|
|
|
285
283
|
Array()
|
|
286
284
|
];
|
|
287
285
|
function registerOnboardCommand(program) {
|
|
288
|
-
program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
286
|
+
program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-b8ebd727.cjs.js'); }).then((m) => m.command)));
|
|
289
287
|
}
|
|
290
288
|
function registerRepoCommand(program) {
|
|
291
289
|
const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
|
|
@@ -297,7 +295,7 @@ function registerRepoCommand(program) {
|
|
|
297
295
|
).option(
|
|
298
296
|
"--since <ref>",
|
|
299
297
|
"Only build packages and their dev dependents that changed since the specified ref"
|
|
300
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
298
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./build-b2d59a62.cjs.js'); }).then((m) => m.command)));
|
|
301
299
|
command.command("lint").description("Lint all packages in the project").option(
|
|
302
300
|
"--format <format>",
|
|
303
301
|
"Lint report output format",
|
|
@@ -305,14 +303,14 @@ function registerRepoCommand(program) {
|
|
|
305
303
|
).option(
|
|
306
304
|
"--since <ref>",
|
|
307
305
|
"Only lint packages that changed since the specified ref"
|
|
308
|
-
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
306
|
+
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-bb657028.cjs.js'); }).then((m) => m.command)));
|
|
309
307
|
command.command("fix").description("Automatically fix packages in the project").option(
|
|
310
308
|
"--check",
|
|
311
309
|
"Fail if any packages would have been changed by the command"
|
|
312
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./fix-
|
|
313
|
-
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
310
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./fix-889c755d.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-a349dbb4.cjs.js'); }).then((m) => m.command)));
|
|
314
312
|
command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
|
|
315
|
-
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-
|
|
313
|
+
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-bdc3bae1.cjs.js'); }).then((m) => m.command))
|
|
316
314
|
);
|
|
317
315
|
command.command("test").allowUnknownOption(true).option(
|
|
318
316
|
"--since <ref>",
|
|
@@ -320,14 +318,14 @@ function registerRepoCommand(program) {
|
|
|
320
318
|
).option(
|
|
321
319
|
"--jest-help",
|
|
322
320
|
"Show help for Jest CLI options, which are passed through"
|
|
323
|
-
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
321
|
+
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-cdeaa87a.cjs.js'); }).then((m) => m.command)));
|
|
324
322
|
}
|
|
325
323
|
function registerScriptCommand(program) {
|
|
326
324
|
const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
|
|
327
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(
|
|
328
326
|
"--inspect-brk [host]",
|
|
329
327
|
"Enable debugger in Node.js environments, breaking before code starts"
|
|
330
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
328
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-38012d61.cjs.js'); }).then((m) => m.command)));
|
|
331
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(
|
|
332
330
|
"--minify",
|
|
333
331
|
"Minify the generated code. Does not apply to app or backend packages."
|
|
@@ -345,30 +343,30 @@ function registerScriptCommand(program) {
|
|
|
345
343
|
"Config files to load instead of app-config.yaml. Applies to app packages only.",
|
|
346
344
|
(opt, opts) => opts ? [...opts, opt] : [opt],
|
|
347
345
|
Array()
|
|
348
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
346
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-7029b530.cjs.js'); }).then((m) => m.command)));
|
|
349
347
|
command.command("lint [directories...]").option(
|
|
350
348
|
"--format <format>",
|
|
351
349
|
"Lint report output format",
|
|
352
350
|
"eslint-formatter-friendly"
|
|
353
|
-
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
354
|
-
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-
|
|
355
|
-
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
356
|
-
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
357
|
-
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
351
|
+
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-b05beefc.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-59b4bd42.cjs.js'); }).then((m) => m.default)));
|
|
353
|
+
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-9f682b9f.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-4823376b.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-4823376b.cjs.js'); }).then((m) => m.post)));
|
|
358
356
|
}
|
|
359
357
|
function registerMigrateCommand(program) {
|
|
360
358
|
const command = program.command("migrate [command]").description("Migration utilities");
|
|
361
|
-
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-
|
|
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-fba2eebf.cjs.js'); }).then((m) => m.default)));
|
|
362
360
|
command.command("package-scripts").description("Set package scripts according to each package role").action(
|
|
363
361
|
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-c6721fac.cjs.js'); }).then((m) => m.command))
|
|
364
362
|
);
|
|
365
363
|
command.command("package-exports").description("Synchronize package subpath export definitions").action(
|
|
366
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageExports-
|
|
364
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageExports-5852d902.cjs.js'); }).then((m) => m.command))
|
|
367
365
|
);
|
|
368
366
|
command.command("package-lint-configs").description(
|
|
369
367
|
"Migrates all packages to use @backstage/cli/config/eslint-factory"
|
|
370
368
|
).action(
|
|
371
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-
|
|
369
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-59c092df.cjs.js'); }).then((m) => m.command))
|
|
372
370
|
);
|
|
373
371
|
command.command("react-router-deps").description(
|
|
374
372
|
"Migrates the react-router dependencies for all packages to be peer dependencies"
|
|
@@ -393,7 +391,7 @@ function registerCommands(program) {
|
|
|
393
391
|
).option(
|
|
394
392
|
"--baseVersion <version>",
|
|
395
393
|
"The version to use for any new packages (default: 0.1.0)"
|
|
396
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
394
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-87ab84b7.cjs.js'); }).then((m) => m.default)));
|
|
397
395
|
program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
|
|
398
396
|
"Open up an interactive guide to creating new things in your app [DEPRECATED]"
|
|
399
397
|
).option(
|
|
@@ -407,30 +405,30 @@ function registerCommands(program) {
|
|
|
407
405
|
).option("--scope <scope>", "The scope to use for new packages").option(
|
|
408
406
|
"--npm-registry <URL>",
|
|
409
407
|
"The package registry to use for new packages"
|
|
410
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
408
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-87ab84b7.cjs.js'); }).then((m) => m.default)));
|
|
411
409
|
program.command("create-plugin", { hidden: true }).option(
|
|
412
410
|
"--backend",
|
|
413
411
|
"Create plugin with the backend dependencies as default"
|
|
414
412
|
).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(
|
|
415
|
-
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-
|
|
413
|
+
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-d2dd186c.cjs.js'); }).then((m) => m.default))
|
|
416
414
|
);
|
|
417
415
|
program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
|
|
418
416
|
"Diff an existing plugin with the creation template [DEPRECATED]"
|
|
419
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-
|
|
417
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-c53024e7.cjs.js'); }).then((m) => m.default)));
|
|
420
418
|
program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
|
|
421
419
|
"Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
|
|
422
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
420
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./test-59b4bd42.cjs.js'); }).then((m) => m.default)));
|
|
423
421
|
program.command("config:docs").option(
|
|
424
422
|
"--package <name>",
|
|
425
423
|
"Only include the schema that applies to the given package"
|
|
426
|
-
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-
|
|
424
|
+
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-b023ba4c.cjs.js'); }).then((m) => m.default)));
|
|
427
425
|
program.command("config:print").option(
|
|
428
426
|
"--package <name>",
|
|
429
427
|
"Only load config schema that applies to the given package"
|
|
430
428
|
).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(
|
|
431
429
|
"--format <format>",
|
|
432
430
|
"Format to print the configuration in, either json or yaml [yaml]"
|
|
433
|
-
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-
|
|
431
|
+
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-2f64bdf5.cjs.js'); }).then((m) => m.default)));
|
|
434
432
|
program.command("config:check").option(
|
|
435
433
|
"--package <name>",
|
|
436
434
|
"Only load config schema that applies to the given package"
|
|
@@ -439,14 +437,14 @@ function registerCommands(program) {
|
|
|
439
437
|
"Enable strict config validation, forbidding errors and unknown keys"
|
|
440
438
|
).option(...configOption).description(
|
|
441
439
|
"Validate that the given configuration loads and matches schema"
|
|
442
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-
|
|
440
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-a303a8e3.cjs.js'); }).then((m) => m.default)));
|
|
443
441
|
program.command("config:schema").option(
|
|
444
442
|
"--package <name>",
|
|
445
443
|
"Only output config schema that applies to the given package"
|
|
446
444
|
).option(
|
|
447
445
|
"--format <format>",
|
|
448
446
|
"Format to print the schema in, either json or yaml [yaml]"
|
|
449
|
-
).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-
|
|
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-ace3bb5e.cjs.js'); }).then((m) => m.default)));
|
|
450
448
|
registerRepoCommand(program);
|
|
451
449
|
registerScriptCommand(program);
|
|
452
450
|
registerMigrateCommand(program);
|
|
@@ -458,19 +456,19 @@ function registerCommands(program) {
|
|
|
458
456
|
"--release <version|next|main>",
|
|
459
457
|
"Bump to a specific Backstage release line or version",
|
|
460
458
|
"main"
|
|
461
|
-
).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-
|
|
462
|
-
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-
|
|
463
|
-
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
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-2e8bea56.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-23477f0c.cjs.js'); }).then((m) => m.default)));
|
|
461
|
+
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-9f682b9f.cjs.js'); }).then((m) => m.default)));
|
|
464
462
|
program.command("build-workspace <workspace-dir> [packages...]").option(
|
|
465
463
|
"--alwaysYarnPack",
|
|
466
464
|
"Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
|
|
467
|
-
).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-
|
|
468
|
-
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
469
|
-
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-
|
|
465
|
+
).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-edb9bf88.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-8a8396a9.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-6e62343f.cjs.js'); }).then((m) => m.default)));
|
|
470
468
|
program.command("install [plugin-id]", { hidden: true }).option(
|
|
471
469
|
"--from <packageJsonFilePath>",
|
|
472
470
|
"Install from a local package.json containing the installation recipe"
|
|
473
|
-
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-
|
|
471
|
+
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-e0fae686.cjs.js'); }).then((m) => m.default)));
|
|
474
472
|
}
|
|
475
473
|
function lazy(getActionFunc) {
|
|
476
474
|
return async (...args) => {
|
|
@@ -514,4 +512,4 @@ exports.devDependencies = devDependencies;
|
|
|
514
512
|
exports.paths = paths;
|
|
515
513
|
exports.version = version;
|
|
516
514
|
exports.version$1 = version$9;
|
|
517
|
-
//# sourceMappingURL=index-
|
|
515
|
+
//# sourceMappingURL=index-8c92e7ea.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-
|
|
12
|
+
var config = require('./config-588c8815.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-
|
|
27
|
+
require('./index-8c92e7ea.cjs.js');
|
|
28
28
|
require('commander');
|
|
29
29
|
require('semver');
|
|
30
30
|
require('@manypkg/get-packages');
|
|
@@ -839,7 +839,7 @@ getOrganizationRepositories_fn = async function(client, org) {
|
|
|
839
839
|
const query = `query repositories($org: String!, $cursor: String) {
|
|
840
840
|
repositoryOwner(login: $org) {
|
|
841
841
|
login
|
|
842
|
-
repositories(first:
|
|
842
|
+
repositories(first: 50, after: $cursor) {
|
|
843
843
|
nodes {
|
|
844
844
|
name
|
|
845
845
|
url
|
|
@@ -1208,4 +1208,4 @@ async function command() {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
1210
|
exports.command = command;
|
|
1211
|
-
//# sourceMappingURL=index-
|
|
1211
|
+
//# sourceMappingURL=index-b8ebd727.cjs.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-8c92e7ea.cjs.js');
|
|
4
4
|
var os = require('os');
|
|
5
|
-
var run = require('./run-
|
|
5
|
+
var run = require('./run-5c051ac6.cjs.js');
|
|
6
6
|
var Lockfile = require('./Lockfile-eced6070.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-6e62343f.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-cf681a73.cjs.js');
|
|
8
|
+
var index = require('./index-8c92e7ea.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-5c051ac6.cjs.js');
|
|
13
13
|
require('minimatch');
|
|
14
14
|
require('@manypkg/get-packages');
|
|
15
15
|
require('./yarn-6cd89e16.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-e0fae686.cjs.js.map
|
|
@@ -5,8 +5,8 @@ require('minimatch');
|
|
|
5
5
|
require('@manypkg/get-packages');
|
|
6
6
|
require('chalk');
|
|
7
7
|
require('./yarn-6cd89e16.cjs.js');
|
|
8
|
-
require('./run-
|
|
9
|
-
var index = require('./index-
|
|
8
|
+
require('./run-5c051ac6.cjs.js');
|
|
9
|
+
var index = require('./index-8c92e7ea.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-23477f0c.cjs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-8c92e7ea.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-b05beefc.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-8c92e7ea.cjs.js');
|
|
7
7
|
var parallel = require('./parallel-a8f6219c.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-bb657028.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-8c92e7ea.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-bdc3bae1.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-8c92e7ea.cjs.js');
|
|
11
|
+
var codeowners = require('./codeowners-70c73aee.cjs.js');
|
|
12
12
|
var tasks = require('./tasks-84de240c.cjs.js');
|
|
13
13
|
var Lockfile = require('./Lockfile-eced6070.cjs.js');
|
|
14
14
|
require('minimatch');
|
|
15
15
|
require('@manypkg/get-packages');
|
|
16
16
|
require('./yarn-6cd89e16.cjs.js');
|
|
17
|
-
require('./run-
|
|
17
|
+
require('./run-5c051ac6.cjs.js');
|
|
18
18
|
var partition = require('lodash/partition');
|
|
19
19
|
var cliNode = require('@backstage/cli-node');
|
|
20
20
|
var errors = require('@backstage/errors');
|
|
@@ -736,4 +736,4 @@ var _new = async (opts) => {
|
|
|
736
736
|
};
|
|
737
737
|
|
|
738
738
|
exports["default"] = _new;
|
|
739
|
-
//# sourceMappingURL=new-
|
|
739
|
+
//# sourceMappingURL=new-87ab84b7.cjs.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var productionPack = require('./productionPack-d569941a.cjs.js');
|
|
4
|
-
var index = require('./index-
|
|
4
|
+
var index = require('./index-8c92e7ea.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-4823376b.cjs.js.map
|
|
@@ -8,17 +8,18 @@ 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-8c92e7ea.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-0cc55995.cjs.js');
|
|
17
|
-
var run = require('./run-
|
|
17
|
+
var run = require('./run-5c051ac6.cjs.js');
|
|
18
18
|
var MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
19
19
|
var svgrTemplate = require('./svgrTemplate-3549ea1c.cjs.js');
|
|
20
20
|
var ReactRefreshPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
|
|
21
21
|
var yn = require('yn');
|
|
22
|
+
var config = require('@backstage/config');
|
|
22
23
|
var chokidar = require('chokidar');
|
|
23
24
|
|
|
24
25
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -331,6 +332,14 @@ async function readBuildInfo() {
|
|
|
331
332
|
commit
|
|
332
333
|
};
|
|
333
334
|
}
|
|
335
|
+
function hasReactDomClient() {
|
|
336
|
+
try {
|
|
337
|
+
require.resolve("react-dom/client");
|
|
338
|
+
return true;
|
|
339
|
+
} catch {
|
|
340
|
+
return false;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
334
343
|
async function createConfig(paths, options) {
|
|
335
344
|
var _a;
|
|
336
345
|
const { checksEnabled, isDev, frontendConfig } = options;
|
|
@@ -373,7 +382,10 @@ async function createConfig(paths, options) {
|
|
|
373
382
|
"process.env.APP_CONFIG": webpack__default["default"].DefinePlugin.runtimeValue(
|
|
374
383
|
() => JSON.stringify(options.getFrontendAppConfigs()),
|
|
375
384
|
true
|
|
376
|
-
)
|
|
385
|
+
),
|
|
386
|
+
// This allows for conditional imports of react-dom/client, since there's no way
|
|
387
|
+
// to check for presence of it in source code without module resolution errors.
|
|
388
|
+
"process.env.HAS_REACT_DOM_CLIENT": JSON.stringify(hasReactDomClient())
|
|
377
389
|
})
|
|
378
390
|
);
|
|
379
391
|
const reactRefreshFiles = [
|
|
@@ -604,8 +616,8 @@ function resolveBundlingPaths(options) {
|
|
|
604
616
|
}
|
|
605
617
|
|
|
606
618
|
const DETECTED_MODULES_MODULE_NAME = "__backstage-autodetected-plugins__";
|
|
607
|
-
function readPackageDetectionConfig(config) {
|
|
608
|
-
const packages = config.getOptional("app.experimental.packages");
|
|
619
|
+
function readPackageDetectionConfig(config$1) {
|
|
620
|
+
const packages = config$1.getOptional("app.experimental.packages");
|
|
609
621
|
if (packages === void 0 || packages === null) {
|
|
610
622
|
return void 0;
|
|
611
623
|
}
|
|
@@ -617,9 +629,18 @@ function readPackageDetectionConfig(config) {
|
|
|
617
629
|
}
|
|
618
630
|
return {};
|
|
619
631
|
}
|
|
632
|
+
if (typeof packages !== "object" || Array.isArray(packages)) {
|
|
633
|
+
throw new Error(
|
|
634
|
+
"Invalid config at 'app.experimental.packages', expected object"
|
|
635
|
+
);
|
|
636
|
+
}
|
|
637
|
+
const packagesConfig = new config.ConfigReader(
|
|
638
|
+
packages,
|
|
639
|
+
"app.experimental.packages"
|
|
640
|
+
);
|
|
620
641
|
return {
|
|
621
|
-
include:
|
|
622
|
-
exclude:
|
|
642
|
+
include: packagesConfig.getOptionalStringArray("include"),
|
|
643
|
+
exclude: packagesConfig.getOptionalStringArray("exclude")
|
|
623
644
|
};
|
|
624
645
|
}
|
|
625
646
|
async function detectPackages(targetPath, { include, exclude }) {
|
|
@@ -629,6 +650,12 @@ async function detectPackages(targetPath, { include, exclude }) {
|
|
|
629
650
|
);
|
|
630
651
|
return Object.keys((_a = pkg.dependencies) != null ? _a : {}).flatMap((depName) => {
|
|
631
652
|
var _a2, _b;
|
|
653
|
+
if (exclude == null ? void 0 : exclude.includes(depName)) {
|
|
654
|
+
return [];
|
|
655
|
+
}
|
|
656
|
+
if (include && !include.includes(depName)) {
|
|
657
|
+
return [];
|
|
658
|
+
}
|
|
632
659
|
const depPackageJson = require(require.resolve(
|
|
633
660
|
`${depName}/package.json`,
|
|
634
661
|
{ paths: [targetPath] }
|
|
@@ -638,23 +665,22 @@ async function detectPackages(targetPath, { include, exclude }) {
|
|
|
638
665
|
)) {
|
|
639
666
|
const exp = depPackageJson.exports;
|
|
640
667
|
if (exp && typeof exp === "object" && "./alpha" in exp) {
|
|
641
|
-
return [
|
|
668
|
+
return [
|
|
669
|
+
{ name: depName, import: depName },
|
|
670
|
+
{ name: depName, export: "./alpha", import: `${depName}/alpha` }
|
|
671
|
+
];
|
|
642
672
|
}
|
|
643
|
-
return [depName];
|
|
673
|
+
return [{ name: depName, import: depName }];
|
|
644
674
|
}
|
|
645
675
|
return [];
|
|
646
|
-
}).filter((name) => {
|
|
647
|
-
if (exclude == null ? void 0 : exclude.includes(name)) {
|
|
648
|
-
return false;
|
|
649
|
-
}
|
|
650
|
-
if (include && !include.includes(name)) {
|
|
651
|
-
return false;
|
|
652
|
-
}
|
|
653
|
-
return true;
|
|
654
676
|
});
|
|
655
677
|
}
|
|
656
|
-
async function writeDetectedPackagesModule(
|
|
657
|
-
const requirePackageScript =
|
|
678
|
+
async function writeDetectedPackagesModule(pkgs) {
|
|
679
|
+
const requirePackageScript = pkgs == null ? void 0 : pkgs.map(
|
|
680
|
+
(pkg) => `{ name: ${JSON.stringify(pkg.name)}, export: ${JSON.stringify(
|
|
681
|
+
pkg.export
|
|
682
|
+
)}, default: require('${pkg.import}').default }`
|
|
683
|
+
).join(",");
|
|
658
684
|
await fs__default["default"].writeFile(
|
|
659
685
|
path.join(
|
|
660
686
|
index.paths.targetRoot,
|
|
@@ -690,4 +716,4 @@ exports.createConfig = createConfig;
|
|
|
690
716
|
exports.createDetectedModulesEntryPoint = createDetectedModulesEntryPoint;
|
|
691
717
|
exports.resolveBaseUrl = resolveBaseUrl;
|
|
692
718
|
exports.resolveBundlingPaths = resolveBundlingPaths;
|
|
693
|
-
//# sourceMappingURL=packageDetection-
|
|
719
|
+
//# sourceMappingURL=packageDetection-8f2367a5.cjs.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var fix = require('./fix-
|
|
3
|
+
var fix = require('./fix-889c755d.cjs.js');
|
|
4
4
|
require('@backstage/cli-node');
|
|
5
5
|
require('fs-extra');
|
|
6
6
|
require('path');
|
|
7
|
-
require('./index-
|
|
7
|
+
require('./index-8c92e7ea.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-5852d902.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-5c051ac6.cjs.js');
|
|
7
7
|
require('child_process');
|
|
8
|
-
require('./index-
|
|
8
|
+
require('./index-8c92e7ea.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-59c092df.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-8c92e7ea.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-fba2eebf.cjs.js.map
|