@backstage/cli 0.19.0-next.2 → 0.19.0-next.3
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 +13 -0
- package/dist/cjs/{PackageGraph-7f6ce640.cjs.js → PackageGraph-cbbcb60d.cjs.js} +2 -2
- package/dist/cjs/{build-1348e377.cjs.js → build-a80c880d.cjs.js} +9 -9
- package/dist/cjs/{buildBackend-c6ecd150.cjs.js → buildBackend-f7c77b0b.cjs.js} +6 -6
- package/dist/cjs/{buildWorkspace-5a2c7a44.cjs.js → buildWorkspace-54b59635.cjs.js} +6 -6
- package/dist/cjs/{bump-03bb3d5a.cjs.js → bump-1b765f38.cjs.js} +6 -5
- package/dist/cjs/{clean-314d90b0.cjs.js → clean-44c36da0.cjs.js} +3 -3
- package/dist/cjs/{clean-6c2e6474.cjs.js → clean-d0639824.cjs.js} +2 -2
- package/dist/cjs/{config-0584f4a4.cjs.js → config-b04e9537.cjs.js} +3 -3
- package/dist/cjs/{createDistWorkspace-ebaeac2b.cjs.js → createDistWorkspace-ee244c42.cjs.js} +5 -5
- package/dist/cjs/{createPlugin-bbb0c1ce.cjs.js → createPlugin-38bde20d.cjs.js} +5 -4
- package/dist/cjs/{diff-ebba1180.cjs.js → diff-106d4724.cjs.js} +2 -2
- package/dist/cjs/{docs-aae92f2e.cjs.js → docs-b4ec9616.cjs.js} +4 -4
- package/dist/cjs/{fix-37c5344c.cjs.js → fix-2e7bcb7b.cjs.js} +3 -3
- package/dist/cjs/{index-a0a5df42.cjs.js → index-0b77afc5.cjs.js} +9 -8
- package/dist/cjs/{index-438ca541.cjs.js → index-22d71d53.cjs.js} +9 -9
- package/dist/cjs/{index-477a1b06.cjs.js → index-4a52b979.cjs.js} +55 -54
- package/dist/cjs/{index-26e52421.cjs.js → index-ddecf380.cjs.js} +2 -2
- package/dist/cjs/{info-d8c0e2b2.cjs.js → info-dde556a3.cjs.js} +4 -3
- package/dist/cjs/{install-0cefc510.cjs.js → install-0198741a.cjs.js} +7 -6
- package/dist/cjs/{lint-4260c3e6.cjs.js → lint-4ea1cd7d.cjs.js} +2 -2
- package/dist/cjs/{lint-c098b94a.cjs.js → lint-bac940ad.cjs.js} +5 -4
- package/dist/cjs/{lint-df95a247.cjs.js → lint-bbf17e89.cjs.js} +3 -3
- package/dist/cjs/{list-deprecations-91fc7b6c.cjs.js → list-deprecations-1a376bc8.cjs.js} +3 -3
- package/dist/cjs/{new-2e629087.cjs.js → new-dc185c76.cjs.js} +5 -4
- package/dist/cjs/{pack-c1ade706.cjs.js → pack-17918a36.cjs.js} +2 -2
- package/dist/cjs/{packageLintConfigs-dd31914f.cjs.js → packageLintConfigs-4b48e7c0.cjs.js} +4 -4
- package/dist/cjs/{packageRole-4afa588d.cjs.js → packageRole-5a08fd56.cjs.js} +3 -3
- package/dist/cjs/{packageRoles-f485bb0b.cjs.js → packageRoles-1f3cfecc.cjs.js} +2 -2
- package/dist/cjs/{packageScripts-926909d2.cjs.js → packageScripts-3d6c88f7.cjs.js} +4 -4
- package/dist/cjs/{packages-c8abe608.cjs.js → packages-032b4d94.cjs.js} +35 -11
- package/dist/cjs/{paths-73d8c4fd.cjs.js → paths-adb593c7.cjs.js} +3 -3
- package/dist/cjs/{print-71f20339.cjs.js → print-69c54f76.cjs.js} +4 -4
- package/dist/cjs/{reactRouterDeps-b22fb782.cjs.js → reactRouterDeps-af437b7b.cjs.js} +4 -4
- package/dist/cjs/{run-274b954a.cjs.js → run-20edcac9.cjs.js} +3 -2
- package/dist/cjs/{schema-28b70f3e.cjs.js → schema-6176df9d.cjs.js} +4 -4
- package/dist/cjs/{tasks-ba198fb1.cjs.js → tasks-93484977.cjs.js} +2 -2
- package/dist/cjs/{test-130c28c6.cjs.js → test-7f135639.cjs.js} +3 -3
- package/dist/cjs/{validate-48f9f572.cjs.js → validate-6dc3e551.cjs.js} +4 -4
- package/dist/cjs/yarn-6cd89e16.cjs.js +34 -0
- package/dist/index.cjs.js +1 -1
- package/package.json +15 -14
- package/templates/default-plugin/package.json.hbs +0 -1
|
@@ -46,15 +46,15 @@ class NotFoundError extends CustomError {
|
|
|
46
46
|
|
|
47
47
|
const paths = cliCommon.findPaths(__dirname);
|
|
48
48
|
|
|
49
|
-
var version$a = "0.15.1-next.
|
|
49
|
+
var version$a = "0.15.1-next.3";
|
|
50
50
|
|
|
51
|
-
var version$9 = "0.19.0-next.
|
|
51
|
+
var version$9 = "0.19.0-next.3";
|
|
52
52
|
var dependencies = {
|
|
53
|
-
"@backstage/cli-common": "^0.1.
|
|
54
|
-
"@backstage/config": "^1.0.
|
|
55
|
-
"@backstage/config-loader": "^1.1.4-next.
|
|
56
|
-
"@backstage/errors": "^1.1.0",
|
|
57
|
-
"@backstage/release-manifests": "^0.0.6-next.
|
|
53
|
+
"@backstage/cli-common": "^0.1.10-next.0",
|
|
54
|
+
"@backstage/config": "^1.0.2-next.0",
|
|
55
|
+
"@backstage/config-loader": "^1.1.4-next.2",
|
|
56
|
+
"@backstage/errors": "^1.1.1-next.0",
|
|
57
|
+
"@backstage/release-manifests": "^0.0.6-next.2",
|
|
58
58
|
"@backstage/types": "^1.0.0",
|
|
59
59
|
"@manypkg/get-packages": "^1.1.3",
|
|
60
60
|
"@octokit/request": "^6.0.0",
|
|
@@ -75,6 +75,7 @@ var dependencies = {
|
|
|
75
75
|
"@swc/core": "^1.2.239",
|
|
76
76
|
"@swc/helpers": "^0.4.7",
|
|
77
77
|
"@swc/jest": "^0.2.22",
|
|
78
|
+
"@types/jest": "^27",
|
|
78
79
|
"@types/webpack-env": "^1.15.2",
|
|
79
80
|
"@typescript-eslint/eslint-plugin": "^5.9.0",
|
|
80
81
|
"@typescript-eslint/parser": "^5.9.0",
|
|
@@ -148,13 +149,13 @@ var dependencies = {
|
|
|
148
149
|
zod: "^3.11.6"
|
|
149
150
|
};
|
|
150
151
|
var devDependencies = {
|
|
151
|
-
"@backstage/backend-common": "^0.15.1-next.
|
|
152
|
-
"@backstage/config": "^1.0.
|
|
153
|
-
"@backstage/core-app-api": "^1.1.0-next.
|
|
154
|
-
"@backstage/core-components": "^0.11.1-next.
|
|
155
|
-
"@backstage/core-plugin-api": "^1.0.6-next.
|
|
156
|
-
"@backstage/dev-utils": "^1.0.6-next.
|
|
157
|
-
"@backstage/test-utils": "^1.2.0-next.
|
|
152
|
+
"@backstage/backend-common": "^0.15.1-next.3",
|
|
153
|
+
"@backstage/config": "^1.0.2-next.0",
|
|
154
|
+
"@backstage/core-app-api": "^1.1.0-next.3",
|
|
155
|
+
"@backstage/core-components": "^0.11.1-next.3",
|
|
156
|
+
"@backstage/core-plugin-api": "^1.0.6-next.3",
|
|
157
|
+
"@backstage/dev-utils": "^1.0.6-next.2",
|
|
158
|
+
"@backstage/test-utils": "^1.2.0-next.3",
|
|
158
159
|
"@backstage/theme": "^0.2.16",
|
|
159
160
|
"@types/diff": "^5.0.0",
|
|
160
161
|
"@types/express": "^4.17.6",
|
|
@@ -180,21 +181,21 @@ var devDependencies = {
|
|
|
180
181
|
"type-fest": "^2.0.0"
|
|
181
182
|
};
|
|
182
183
|
|
|
183
|
-
var version$8 = "1.0.
|
|
184
|
+
var version$8 = "1.0.2-next.0";
|
|
184
185
|
|
|
185
|
-
var version$7 = "1.1.0-next.
|
|
186
|
+
var version$7 = "1.1.0-next.3";
|
|
186
187
|
|
|
187
|
-
var version$6 = "0.11.1-next.
|
|
188
|
+
var version$6 = "0.11.1-next.3";
|
|
188
189
|
|
|
189
|
-
var version$5 = "1.0.6-next.
|
|
190
|
+
var version$5 = "1.0.6-next.3";
|
|
190
191
|
|
|
191
|
-
var version$4 = "1.0.6-next.
|
|
192
|
+
var version$4 = "1.0.6-next.2";
|
|
192
193
|
|
|
193
|
-
var version$3 = "1.2.0-next.
|
|
194
|
+
var version$3 = "1.2.0-next.3";
|
|
194
195
|
|
|
195
196
|
var version$2 = "0.2.16";
|
|
196
197
|
|
|
197
|
-
var version$1 = "1.6.0-next.
|
|
198
|
+
var version$1 = "1.6.0-next.3";
|
|
198
199
|
|
|
199
200
|
const packageVersions = {
|
|
200
201
|
"@backstage/backend-common": version$a,
|
|
@@ -259,7 +260,7 @@ function registerRepoCommand(program) {
|
|
|
259
260
|
).option(
|
|
260
261
|
"--since <ref>",
|
|
261
262
|
"Only build packages and their dev dependents that changed since the specified ref"
|
|
262
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
263
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./build-a80c880d.cjs.js'); }).then((m) => m.command)));
|
|
263
264
|
command.command("lint").description("Lint all packages in the project").option(
|
|
264
265
|
"--format <format>",
|
|
265
266
|
"Lint report output format",
|
|
@@ -267,10 +268,10 @@ function registerRepoCommand(program) {
|
|
|
267
268
|
).option(
|
|
268
269
|
"--since <ref>",
|
|
269
270
|
"Only lint packages that changed since the specified ref"
|
|
270
|
-
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
271
|
-
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
271
|
+
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-bbf17e89.cjs.js'); }).then((m) => m.command)));
|
|
272
|
+
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-44c36da0.cjs.js'); }).then((m) => m.command)));
|
|
272
273
|
command.command("list-deprecations", { hidden: true }).description("List deprecations. [EXPERIMENTAL]").option("--json", "Output as JSON").action(
|
|
273
|
-
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-
|
|
274
|
+
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-1a376bc8.cjs.js'); }).then((m) => m.command))
|
|
274
275
|
);
|
|
275
276
|
}
|
|
276
277
|
function registerScriptCommand(program) {
|
|
@@ -278,7 +279,7 @@ function registerScriptCommand(program) {
|
|
|
278
279
|
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", "Enable debugger in Node.js environments").option(
|
|
279
280
|
"--inspect-brk",
|
|
280
281
|
"Enable debugger in Node.js environments, breaking before code starts"
|
|
281
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
282
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-0b77afc5.cjs.js'); }).then((m) => m.command)));
|
|
282
283
|
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
|
|
283
284
|
"--minify",
|
|
284
285
|
"Minify the generated code. Does not apply to app or backend packages."
|
|
@@ -296,33 +297,33 @@ function registerScriptCommand(program) {
|
|
|
296
297
|
"Config files to load instead of app-config.yaml. Applies to app packages only.",
|
|
297
298
|
(opt, opts) => opts ? [...opts, opt] : [opt],
|
|
298
299
|
Array()
|
|
299
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
300
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-22d71d53.cjs.js'); }).then((m) => m.command)));
|
|
300
301
|
command.command("lint [directories...]").option(
|
|
301
302
|
"--format <format>",
|
|
302
303
|
"Lint report output format",
|
|
303
304
|
"eslint-formatter-friendly"
|
|
304
|
-
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
305
|
-
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-
|
|
306
|
-
command.command("fix", { hidden: true }).description("Applies automated fixes to the package. [EXPERIMENTAL]").option("--deps", "Only fix monorepo dependencies in package.json").action(lazy(() => Promise.resolve().then(function () { return require('./fix-
|
|
307
|
-
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
308
|
-
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
309
|
-
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
305
|
+
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-4ea1cd7d.cjs.js'); }).then((m) => m.default)));
|
|
306
|
+
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-7f135639.cjs.js'); }).then((m) => m.default)));
|
|
307
|
+
command.command("fix", { hidden: true }).description("Applies automated fixes to the package. [EXPERIMENTAL]").option("--deps", "Only fix monorepo dependencies in package.json").action(lazy(() => Promise.resolve().then(function () { return require('./fix-2e7bcb7b.cjs.js'); }).then((m) => m.command)));
|
|
308
|
+
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-d0639824.cjs.js'); }).then((m) => m.default)));
|
|
309
|
+
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-17918a36.cjs.js'); }).then((m) => m.pre)));
|
|
310
|
+
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-17918a36.cjs.js'); }).then((m) => m.post)));
|
|
310
311
|
}
|
|
311
312
|
function registerMigrateCommand(program) {
|
|
312
313
|
const command = program.command("migrate [command]").description("Migration utilities");
|
|
313
|
-
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-
|
|
314
|
+
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-5a08fd56.cjs.js'); }).then((m) => m.default)));
|
|
314
315
|
command.command("package-scripts").description("Set package scripts according to each package role").action(
|
|
315
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-
|
|
316
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-3d6c88f7.cjs.js'); }).then((m) => m.command))
|
|
316
317
|
);
|
|
317
318
|
command.command("package-lint-configs").description(
|
|
318
319
|
"Migrates all packages to use @backstage/cli/config/eslint-factory"
|
|
319
320
|
).action(
|
|
320
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-
|
|
321
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-4b48e7c0.cjs.js'); }).then((m) => m.command))
|
|
321
322
|
);
|
|
322
323
|
command.command("react-router-deps").description(
|
|
323
324
|
"Migrates the react-router dependencies for all packages to be peer dependencies"
|
|
324
325
|
).action(
|
|
325
|
-
lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-
|
|
326
|
+
lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-af437b7b.cjs.js'); }).then((m) => m.command))
|
|
326
327
|
);
|
|
327
328
|
}
|
|
328
329
|
function registerCommands(program) {
|
|
@@ -342,7 +343,7 @@ function registerCommands(program) {
|
|
|
342
343
|
).option(
|
|
343
344
|
"--baseVersion <version>",
|
|
344
345
|
"The version to use for any new packages (default: 0.1.0)"
|
|
345
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
346
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-dc185c76.cjs.js'); }).then((m) => m.default)));
|
|
346
347
|
program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
|
|
347
348
|
"Open up an interactive guide to creating new things in your app [DEPRECATED]"
|
|
348
349
|
).option(
|
|
@@ -356,43 +357,43 @@ function registerCommands(program) {
|
|
|
356
357
|
).option("--scope <scope>", "The scope to use for new packages").option(
|
|
357
358
|
"--npm-registry <URL>",
|
|
358
359
|
"The package registry to use for new packages"
|
|
359
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
360
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-dc185c76.cjs.js'); }).then((m) => m.default)));
|
|
360
361
|
program.command("create-plugin", { hidden: true }).option(
|
|
361
362
|
"--backend",
|
|
362
363
|
"Create plugin with the backend dependencies as default"
|
|
363
364
|
).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(
|
|
364
|
-
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-
|
|
365
|
+
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-38bde20d.cjs.js'); }).then((m) => m.default))
|
|
365
366
|
);
|
|
366
367
|
program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
|
|
367
368
|
"Diff an existing plugin with the creation template [DEPRECATED]"
|
|
368
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-
|
|
369
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-106d4724.cjs.js'); }).then((m) => m.default)));
|
|
369
370
|
program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
|
|
370
371
|
"Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
|
|
371
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
372
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./test-7f135639.cjs.js'); }).then((m) => m.default)));
|
|
372
373
|
program.command("config:docs").option(
|
|
373
374
|
"--package <name>",
|
|
374
375
|
"Only include the schema that applies to the given package"
|
|
375
|
-
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-
|
|
376
|
+
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-b4ec9616.cjs.js'); }).then((m) => m.default)));
|
|
376
377
|
program.command("config:print").option(
|
|
377
378
|
"--package <name>",
|
|
378
379
|
"Only load config schema that applies to the given package"
|
|
379
380
|
).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(
|
|
380
381
|
"--format <format>",
|
|
381
382
|
"Format to print the configuration in, either json or yaml [yaml]"
|
|
382
|
-
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-
|
|
383
|
+
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-69c54f76.cjs.js'); }).then((m) => m.default)));
|
|
383
384
|
program.command("config:check").option(
|
|
384
385
|
"--package <name>",
|
|
385
386
|
"Only load config schema that applies to the given package"
|
|
386
387
|
).option("--lax", "Do not require environment variables to be set").option("--frontend", "Only validate the frontend configuration").option("--deprecated", "Output deprecated configuration settings").option(...configOption).description(
|
|
387
388
|
"Validate that the given configuration loads and matches schema"
|
|
388
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-
|
|
389
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-6dc3e551.cjs.js'); }).then((m) => m.default)));
|
|
389
390
|
program.command("config:schema").option(
|
|
390
391
|
"--package <name>",
|
|
391
392
|
"Only output config schema that applies to the given package"
|
|
392
393
|
).option(
|
|
393
394
|
"--format <format>",
|
|
394
395
|
"Format to print the schema in, either json or yaml [yaml]"
|
|
395
|
-
).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-
|
|
396
|
+
).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-6176df9d.cjs.js'); }).then((m) => m.default)));
|
|
396
397
|
registerRepoCommand(program);
|
|
397
398
|
registerScriptCommand(program);
|
|
398
399
|
registerMigrateCommand(program);
|
|
@@ -403,16 +404,16 @@ function registerCommands(program) {
|
|
|
403
404
|
"--release <version|next|main>",
|
|
404
405
|
"Bump to a specific Backstage release line or version",
|
|
405
406
|
"main"
|
|
406
|
-
).description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-
|
|
407
|
-
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-
|
|
408
|
-
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
409
|
-
program.command("build-workspace <workspace-dir> [packages...]").description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-
|
|
410
|
-
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
411
|
-
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-
|
|
407
|
+
).description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-1b765f38.cjs.js'); }).then((m) => m.default)));
|
|
408
|
+
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-bac940ad.cjs.js'); }).then((m) => m.default)));
|
|
409
|
+
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-d0639824.cjs.js'); }).then((m) => m.default)));
|
|
410
|
+
program.command("build-workspace <workspace-dir> [packages...]").description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-54b59635.cjs.js'); }).then((m) => m.default)));
|
|
411
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-ddecf380.cjs.js'); }).then((m) => m.default)));
|
|
412
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-dde556a3.cjs.js'); }).then((m) => m.default)));
|
|
412
413
|
program.command("install [plugin-id]", { hidden: true }).option(
|
|
413
414
|
"--from <packageJsonFilePath>",
|
|
414
415
|
"Install from a local package.json containing the installation recipe"
|
|
415
|
-
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-
|
|
416
|
+
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-0198741a.cjs.js'); }).then((m) => m.default)));
|
|
416
417
|
}
|
|
417
418
|
function lazy(getActionFunc) {
|
|
418
419
|
return async (...args) => {
|
|
@@ -456,4 +457,4 @@ exports.devDependencies = devDependencies;
|
|
|
456
457
|
exports.paths = paths;
|
|
457
458
|
exports.version = version;
|
|
458
459
|
exports.version$1 = version$9;
|
|
459
|
-
//# sourceMappingURL=index-
|
|
460
|
+
//# sourceMappingURL=index-4a52b979.cjs.js.map
|
|
@@ -4,7 +4,7 @@ var fs = require('fs-extra');
|
|
|
4
4
|
var chalk = require('chalk');
|
|
5
5
|
var yaml = require('yaml');
|
|
6
6
|
var inquirer = require('inquirer');
|
|
7
|
-
var index$1 = require('./index-
|
|
7
|
+
var index$1 = require('./index-4a52b979.cjs.js');
|
|
8
8
|
var crypto = require('crypto');
|
|
9
9
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
10
10
|
var request = require('@octokit/request');
|
|
@@ -222,4 +222,4 @@ async function verifyGithubOrg(org) {
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
exports["default"] = index;
|
|
225
|
-
//# sourceMappingURL=index-
|
|
225
|
+
//# sourceMappingURL=index-ddecf380.cjs.js.map
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-4a52b979.cjs.js');
|
|
4
4
|
var os = require('os');
|
|
5
|
-
var run = require('./run-
|
|
5
|
+
var run = require('./run-20edcac9.cjs.js');
|
|
6
6
|
var Lockfile = require('./Lockfile-72b7072e.cjs.js');
|
|
7
7
|
require('minimatch');
|
|
8
8
|
require('@manypkg/get-packages');
|
|
9
9
|
require('chalk');
|
|
10
|
+
require('./yarn-6cd89e16.cjs.js');
|
|
10
11
|
var fs = require('fs-extra');
|
|
11
12
|
require('commander');
|
|
12
13
|
require('semver');
|
|
@@ -57,4 +58,4 @@ var info = async () => {
|
|
|
57
58
|
};
|
|
58
59
|
|
|
59
60
|
exports["default"] = info;
|
|
60
|
-
//# sourceMappingURL=info-
|
|
61
|
+
//# sourceMappingURL=info-dde556a3.cjs.js.map
|
|
@@ -4,19 +4,20 @@ 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-032b4d94.cjs.js');
|
|
8
|
+
var index = require('./index-4a52b979.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-20edcac9.cjs.js');
|
|
13
13
|
require('minimatch');
|
|
14
14
|
require('@manypkg/get-packages');
|
|
15
|
-
require('
|
|
16
|
-
require('@backstage/cli-common');
|
|
15
|
+
require('./yarn-6cd89e16.cjs.js');
|
|
17
16
|
require('@backstage/errors');
|
|
18
17
|
require('child_process');
|
|
19
18
|
require('util');
|
|
19
|
+
require('commander');
|
|
20
|
+
require('@backstage/cli-common');
|
|
20
21
|
|
|
21
22
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
22
23
|
|
|
@@ -267,4 +268,4 @@ var install = async (pluginId, cmd) => {
|
|
|
267
268
|
};
|
|
268
269
|
|
|
269
270
|
exports["default"] = install;
|
|
270
|
-
//# sourceMappingURL=install-
|
|
271
|
+
//# sourceMappingURL=install-0198741a.cjs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-4a52b979.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-4ea1cd7d.cjs.js.map
|
|
@@ -3,17 +3,18 @@
|
|
|
3
3
|
var Lockfile = require('./Lockfile-72b7072e.cjs.js');
|
|
4
4
|
require('minimatch');
|
|
5
5
|
require('@manypkg/get-packages');
|
|
6
|
-
require('./run-274b954a.cjs.js');
|
|
7
6
|
require('chalk');
|
|
8
|
-
|
|
7
|
+
require('./yarn-6cd89e16.cjs.js');
|
|
8
|
+
require('./run-20edcac9.cjs.js');
|
|
9
|
+
var index = require('./index-4a52b979.cjs.js');
|
|
9
10
|
var partition = require('lodash/partition');
|
|
10
11
|
require('fs-extra');
|
|
11
12
|
require('semver');
|
|
12
13
|
require('@yarnpkg/parsers');
|
|
13
14
|
require('@yarnpkg/lockfile');
|
|
15
|
+
require('@backstage/errors');
|
|
14
16
|
require('child_process');
|
|
15
17
|
require('util');
|
|
16
|
-
require('@backstage/errors');
|
|
17
18
|
require('commander');
|
|
18
19
|
require('@backstage/cli-common');
|
|
19
20
|
|
|
@@ -104,4 +105,4 @@ function logArray(arr, header, each) {
|
|
|
104
105
|
exports["default"] = lint;
|
|
105
106
|
exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
|
|
106
107
|
exports.includedFilter = includedFilter;
|
|
107
|
-
//# sourceMappingURL=lint-
|
|
108
|
+
//# sourceMappingURL=lint-bac940ad.cjs.js.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var path = require('path');
|
|
5
|
-
var PackageGraph = require('./PackageGraph-
|
|
5
|
+
var PackageGraph = require('./PackageGraph-cbbcb60d.cjs.js');
|
|
6
6
|
var parallel = require('./parallel-a8f6219c.cjs.js');
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-4a52b979.cjs.js');
|
|
8
8
|
require('@manypkg/get-packages');
|
|
9
9
|
require('@backstage/errors');
|
|
10
10
|
require('child_process');
|
|
@@ -88,4 +88,4 @@ async function command(opts) {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
exports.command = command;
|
|
91
|
-
//# sourceMappingURL=lint-
|
|
91
|
+
//# sourceMappingURL=lint-bbf17e89.cjs.js.map
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var eslint = require('eslint');
|
|
5
5
|
var path = require('path');
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var PackageGraph = require('./PackageGraph-
|
|
6
|
+
var index = require('./index-4a52b979.cjs.js');
|
|
7
|
+
var PackageGraph = require('./PackageGraph-cbbcb60d.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('fs-extra');
|
|
10
10
|
require('semver');
|
|
@@ -79,4 +79,4 @@ async function command(opts) {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
exports.command = command;
|
|
82
|
-
//# sourceMappingURL=list-deprecations-
|
|
82
|
+
//# sourceMappingURL=list-deprecations-1a376bc8.cjs.js.map
|
|
@@ -7,12 +7,13 @@ 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 tasks = require('./tasks-
|
|
10
|
+
var index = require('./index-4a52b979.cjs.js');
|
|
11
|
+
var tasks = require('./tasks-93484977.cjs.js');
|
|
12
12
|
var Lockfile = require('./Lockfile-72b7072e.cjs.js');
|
|
13
13
|
require('minimatch');
|
|
14
14
|
require('@manypkg/get-packages');
|
|
15
|
-
require('./
|
|
15
|
+
require('./yarn-6cd89e16.cjs.js');
|
|
16
|
+
require('./run-20edcac9.cjs.js');
|
|
16
17
|
var partition = require('lodash/partition');
|
|
17
18
|
var errors = require('@backstage/errors');
|
|
18
19
|
require('commander');
|
|
@@ -522,4 +523,4 @@ var _new = async (opts) => {
|
|
|
522
523
|
};
|
|
523
524
|
|
|
524
525
|
exports["default"] = _new;
|
|
525
|
-
//# sourceMappingURL=new-
|
|
526
|
+
//# sourceMappingURL=new-dc185c76.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-4a52b979.cjs.js');
|
|
5
5
|
var path = require('path');
|
|
6
6
|
require('commander');
|
|
7
7
|
require('chalk');
|
|
@@ -75,4 +75,4 @@ const post = async () => {
|
|
|
75
75
|
|
|
76
76
|
exports.post = post;
|
|
77
77
|
exports.pre = pre;
|
|
78
|
-
//# sourceMappingURL=pack-
|
|
78
|
+
//# sourceMappingURL=pack-17918a36.cjs.js.map
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
4
|
var path = require('path');
|
|
5
|
-
var PackageGraph = require('./PackageGraph-
|
|
6
|
-
var run = require('./run-
|
|
5
|
+
var PackageGraph = require('./PackageGraph-cbbcb60d.cjs.js');
|
|
6
|
+
var run = require('./run-20edcac9.cjs.js');
|
|
7
7
|
require('@manypkg/get-packages');
|
|
8
|
-
require('./index-
|
|
8
|
+
require('./index-4a52b979.cjs.js');
|
|
9
9
|
require('commander');
|
|
10
10
|
require('chalk');
|
|
11
11
|
require('semver');
|
|
@@ -80,4 +80,4 @@ async function command() {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
exports.command = command;
|
|
83
|
-
//# sourceMappingURL=packageLintConfigs-
|
|
83
|
+
//# sourceMappingURL=packageLintConfigs-4b48e7c0.cjs.js.map
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
4
|
var path = require('path');
|
|
5
5
|
var getPackages = require('@manypkg/get-packages');
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var packageRoles = require('./packageRoles-
|
|
6
|
+
var index = require('./index-4a52b979.cjs.js');
|
|
7
|
+
var packageRoles = require('./packageRoles-1f3cfecc.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('semver');
|
|
@@ -56,4 +56,4 @@ var packageRole = async () => {
|
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
exports["default"] = packageRole;
|
|
59
|
-
//# sourceMappingURL=packageRole-
|
|
59
|
+
//# sourceMappingURL=packageRole-5a08fd56.cjs.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var zod = require('zod');
|
|
4
4
|
var fs = require('fs-extra');
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-4a52b979.cjs.js');
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -157,4 +157,4 @@ exports.detectRoleFromPackage = detectRoleFromPackage;
|
|
|
157
157
|
exports.findRoleFromCommand = findRoleFromCommand;
|
|
158
158
|
exports.getRoleFromPackage = getRoleFromPackage;
|
|
159
159
|
exports.getRoleInfo = getRoleInfo;
|
|
160
|
-
//# sourceMappingURL=packageRoles-
|
|
160
|
+
//# sourceMappingURL=packageRoles-1f3cfecc.cjs.js.map
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
4
|
var path = require('path');
|
|
5
|
-
var PackageGraph = require('./PackageGraph-
|
|
6
|
-
var packageRoles = require('./packageRoles-
|
|
5
|
+
var PackageGraph = require('./PackageGraph-cbbcb60d.cjs.js');
|
|
6
|
+
var packageRoles = require('./packageRoles-1f3cfecc.cjs.js');
|
|
7
7
|
require('@manypkg/get-packages');
|
|
8
|
-
require('./index-
|
|
8
|
+
require('./index-4a52b979.cjs.js');
|
|
9
9
|
require('commander');
|
|
10
10
|
require('chalk');
|
|
11
11
|
require('semver');
|
|
@@ -95,4 +95,4 @@ async function command() {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
exports.command = command;
|
|
98
|
-
//# sourceMappingURL=packageScripts-
|
|
98
|
+
//# sourceMappingURL=packageScripts-3d6c88f7.cjs.js.map
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var minimatch = require('minimatch');
|
|
4
4
|
var getPackages = require('@manypkg/get-packages');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var index = require('./index-4a52b979.cjs.js');
|
|
6
|
+
var yarn = require('./yarn-6cd89e16.cjs.js');
|
|
7
|
+
var run = require('./run-20edcac9.cjs.js');
|
|
7
8
|
|
|
8
9
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
10
|
|
|
@@ -16,15 +17,38 @@ const DEP_TYPES = [
|
|
|
16
17
|
"optionalDependencies"
|
|
17
18
|
];
|
|
18
19
|
async function fetchPackageInfo(name) {
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
const yarnVersion = await yarn.detectYarnVersion();
|
|
21
|
+
const cmd = yarnVersion === "classic" ? ["info"] : ["npm", "info"];
|
|
22
|
+
try {
|
|
23
|
+
const { stdout: output } = await run.execFile(
|
|
24
|
+
"yarn",
|
|
25
|
+
[...cmd, "--json", name],
|
|
26
|
+
{ shell: true }
|
|
27
|
+
);
|
|
28
|
+
if (!output) {
|
|
29
|
+
throw new index.NotFoundError(
|
|
30
|
+
`No package information found for package ${name}`
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
if (yarnVersion === "berry") {
|
|
34
|
+
return JSON.parse(output);
|
|
35
|
+
}
|
|
36
|
+
const info = JSON.parse(output);
|
|
37
|
+
if (info.type !== "inspect") {
|
|
38
|
+
throw new Error(`Received unknown yarn info for ${name}, ${output}`);
|
|
39
|
+
}
|
|
40
|
+
return info.data;
|
|
41
|
+
} catch (error) {
|
|
42
|
+
if (yarnVersion === "classic") {
|
|
43
|
+
throw error;
|
|
44
|
+
}
|
|
45
|
+
if (error == null ? void 0 : error.stdout.includes("Response Code: 404")) {
|
|
46
|
+
throw new index.NotFoundError(
|
|
47
|
+
`No package information found for package ${name}`
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
throw error;
|
|
26
51
|
}
|
|
27
|
-
return info.data;
|
|
28
52
|
}
|
|
29
53
|
async function mapDependencies(targetDir, pattern) {
|
|
30
54
|
var _a;
|
|
@@ -56,4 +80,4 @@ async function mapDependencies(targetDir, pattern) {
|
|
|
56
80
|
|
|
57
81
|
exports.fetchPackageInfo = fetchPackageInfo;
|
|
58
82
|
exports.mapDependencies = mapDependencies;
|
|
59
|
-
//# sourceMappingURL=packages-
|
|
83
|
+
//# sourceMappingURL=packages-032b4d94.cjs.js.map
|
|
@@ -13,8 +13,8 @@ var getPackages = require('@manypkg/get-packages');
|
|
|
13
13
|
var MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
14
14
|
var svgrTemplate = require('./svgrTemplate-550efce6.cjs.js');
|
|
15
15
|
var ReactRefreshPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
|
|
16
|
-
var index = require('./index-
|
|
17
|
-
var run = require('./run-
|
|
16
|
+
var index = require('./index-4a52b979.cjs.js');
|
|
17
|
+
var run = require('./run-20edcac9.cjs.js');
|
|
18
18
|
var ESLintPlugin = require('eslint-webpack-plugin');
|
|
19
19
|
var pickBy = require('lodash/pickBy');
|
|
20
20
|
|
|
@@ -574,4 +574,4 @@ exports.createBackendConfig = createBackendConfig;
|
|
|
574
574
|
exports.createConfig = createConfig;
|
|
575
575
|
exports.resolveBaseUrl = resolveBaseUrl;
|
|
576
576
|
exports.resolveBundlingPaths = resolveBundlingPaths;
|
|
577
|
-
//# sourceMappingURL=paths-
|
|
577
|
+
//# sourceMappingURL=paths-adb593c7.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-b04e9537.cjs.js');
|
|
6
6
|
require('@backstage/config-loader');
|
|
7
|
-
require('./index-
|
|
7
|
+
require('./index-4a52b979.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('fs-extra');
|
|
@@ -12,7 +12,7 @@ require('semver');
|
|
|
12
12
|
require('@backstage/cli-common');
|
|
13
13
|
require('@backstage/errors');
|
|
14
14
|
require('@manypkg/get-packages');
|
|
15
|
-
require('./PackageGraph-
|
|
15
|
+
require('./PackageGraph-cbbcb60d.cjs.js');
|
|
16
16
|
require('path');
|
|
17
17
|
require('child_process');
|
|
18
18
|
require('util');
|
|
@@ -61,4 +61,4 @@ function serializeConfigData(appConfigs, schema, visibility) {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
exports["default"] = print;
|
|
64
|
-
//# sourceMappingURL=print-
|
|
64
|
+
//# sourceMappingURL=print-69c54f76.cjs.js.map
|