@backstage/cli 0.22.6-next.2 → 0.22.6
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 +41 -0
- package/dist/cjs/{Lockfile-bc3a8337.cjs.js → Lockfile-eced6070.cjs.js} +1 -65
- package/dist/cjs/{build-93a11339.cjs.js → build-42253311.cjs.js} +16 -23
- package/dist/cjs/{buildBackend-cd8e2fb5.cjs.js → buildBackend-e5152bf0.cjs.js} +6 -6
- package/dist/cjs/{buildWorkspace-9110c947.cjs.js → buildWorkspace-dadd783f.cjs.js} +7 -15
- package/dist/cjs/{bump-534e6cf6.cjs.js → bump-cc9b7e0a.cjs.js} +9 -9
- package/dist/cjs/{clean-72451e81.cjs.js → clean-5d1da9f9.cjs.js} +2 -2
- package/dist/cjs/{clean-61eae164.cjs.js → clean-75a372f2.cjs.js} +7 -14
- package/dist/cjs/{codeowners-9f57f2fb.cjs.js → codeowners-71136d75.cjs.js} +2 -2
- package/dist/cjs/{config-c50ac1c0.cjs.js → config-c2311c98.cjs.js} +4 -4
- package/dist/cjs/{createDistWorkspace-e41d7df9.cjs.js → createDistWorkspace-42fcd9f9.cjs.js} +10 -11
- package/dist/cjs/{createPlugin-e004e57e.cjs.js → createPlugin-a27e235a.cjs.js} +5 -5
- package/dist/cjs/{diff-75d413d6.cjs.js → diff-dadcc89b.cjs.js} +2 -2
- package/dist/cjs/{docs-a3ad7273.cjs.js → docs-1dc99846.cjs.js} +4 -13
- package/dist/cjs/{entryPoints-5e73783d.cjs.js → entryPoints-0cc55995.cjs.js} +1 -1
- package/dist/cjs/{fix-bbe5fb62.cjs.js → fix-49190457.cjs.js} +4 -13
- package/dist/cjs/{index-c738a2bc.cjs.js → index-3863f0e8.cjs.js} +2 -2
- package/dist/cjs/{index-e751f7ff.cjs.js → index-5927bba3.cjs.js} +15 -16
- package/dist/cjs/{index-f75043af.cjs.js → index-6ac1c897.cjs.js} +47 -46
- package/dist/cjs/{index-b64ebbe5.cjs.js → index-8e7e875b.cjs.js} +17 -23
- package/dist/cjs/{info-0fb827ce.cjs.js → info-f29147fa.cjs.js} +4 -4
- package/dist/cjs/{install-756429c4.cjs.js → install-f5b010e4.cjs.js} +4 -4
- package/dist/cjs/{lint-d0c16a43.cjs.js → lint-0b4fe419.cjs.js} +2 -2
- package/dist/cjs/{lint-6a316d15.cjs.js → lint-5a4cded6.cjs.js} +7 -8
- package/dist/cjs/{lint-e4d3b0ce.cjs.js → lint-c2f0e516.cjs.js} +8 -17
- package/dist/cjs/{list-deprecations-7d034d6f.cjs.js → list-deprecations-9896a9cf.cjs.js} +4 -13
- package/dist/cjs/{new-3450da88.cjs.js → new-f472e0fa.cjs.js} +7 -17
- package/dist/cjs/{pack-51e9d18e.cjs.js → pack-1019c4c8.cjs.js} +4 -4
- package/dist/cjs/{packageExports-8fc508ae.cjs.js → packageExports-50d8546d.cjs.js} +3 -18
- package/dist/cjs/{packageLintConfigs-2dd4bed3.cjs.js → packageLintConfigs-bf24ae9d.cjs.js} +6 -12
- package/dist/cjs/{packageRole-44235057.cjs.js → packageRole-a1e768bd.cjs.js} +5 -6
- package/dist/cjs/{packageScripts-6c74fd59.cjs.js → packageScripts-c6721fac.cjs.js} +5 -22
- package/dist/cjs/{packages-d3d3cf04.cjs.js → packages-cd0963a1.cjs.js} +3 -3
- package/dist/cjs/{paths-b1b0642b.cjs.js → paths-0561d135.cjs.js} +4 -4
- package/dist/cjs/{print-aed73507.cjs.js → print-4b403c4d.cjs.js} +4 -13
- package/dist/cjs/{productionPack-fdf62126.cjs.js → productionPack-d569941a.cjs.js} +2 -2
- package/dist/cjs/{reactRouterDeps-bb13ea12.cjs.js → reactRouterDeps-a2bb1d62.cjs.js} +4 -21
- package/dist/cjs/role-ee15df98.cjs.js +25 -0
- package/dist/cjs/{run-a93ca9aa.cjs.js → run-1e0be68d.cjs.js} +2 -2
- package/dist/cjs/{schema-bcf03162.cjs.js → schema-17d2b40e.cjs.js} +4 -13
- package/dist/cjs/{test-60e60b20.cjs.js → test-19c76d39.cjs.js} +11 -18
- package/dist/cjs/{test-a80c8387.cjs.js → test-f9de53cd.cjs.js} +3 -3
- package/dist/cjs/{validate-6b1c2a85.cjs.js → validate-b41a1961.cjs.js} +4 -13
- package/dist/index.cjs.js +1 -1
- package/package.json +13 -12
- package/dist/cjs/PackageGraph-e47555be.cjs.js +0 -250
- package/dist/cjs/packageRoles-e8484d59.cjs.js +0 -160
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
|
-
var index = require('./index-
|
|
4
|
+
var index = require('./index-6ac1c897.cjs.js');
|
|
5
5
|
var webpack = require('webpack');
|
|
6
|
-
var paths = require('./paths-
|
|
6
|
+
var paths = require('./paths-0561d135.cjs.js');
|
|
7
7
|
require('yn');
|
|
8
8
|
var path = require('path');
|
|
9
9
|
require('react-dev-utils/FileSizeReporter');
|
|
@@ -17,7 +17,7 @@ require('@backstage/cli-common');
|
|
|
17
17
|
require('@manypkg/get-packages');
|
|
18
18
|
require('mini-css-extract-plugin');
|
|
19
19
|
require('@pmmmwh/react-refresh-webpack-plugin');
|
|
20
|
-
require('./run-
|
|
20
|
+
require('./run-1e0be68d.cjs.js');
|
|
21
21
|
require('eslint-webpack-plugin');
|
|
22
22
|
require('lodash/pickBy');
|
|
23
23
|
var chalk = require('chalk');
|
|
@@ -29,17 +29,17 @@ var errors = require('@backstage/errors');
|
|
|
29
29
|
var debounce = require('lodash/debounce');
|
|
30
30
|
var spawn = require('cross-spawn');
|
|
31
31
|
var uniq = require('lodash/uniq');
|
|
32
|
-
var config = require('./config-
|
|
33
|
-
var
|
|
32
|
+
var config = require('./config-c2311c98.cjs.js');
|
|
33
|
+
var cliNode = require('@backstage/cli-node');
|
|
34
|
+
var Lockfile = require('./Lockfile-eced6070.cjs.js');
|
|
34
35
|
require('minimatch');
|
|
35
36
|
require('./yarn-6cd89e16.cjs.js');
|
|
36
|
-
var lint = require('./lint-
|
|
37
|
-
var
|
|
38
|
-
var packageRoles = require('./packageRoles-e8484d59.cjs.js');
|
|
37
|
+
var lint = require('./lint-5a4cded6.cjs.js');
|
|
38
|
+
var role = require('./role-ee15df98.cjs.js');
|
|
39
39
|
require('commander');
|
|
40
40
|
require('semver');
|
|
41
41
|
require('./svgrTemplate-550efce6.cjs.js');
|
|
42
|
-
require('./entryPoints-
|
|
42
|
+
require('./entryPoints-0cc55995.cjs.js');
|
|
43
43
|
require('child_process');
|
|
44
44
|
require('util');
|
|
45
45
|
require('@backstage/config-loader');
|
|
@@ -47,7 +47,6 @@ require('@backstage/config');
|
|
|
47
47
|
require('@yarnpkg/parsers');
|
|
48
48
|
require('@yarnpkg/lockfile');
|
|
49
49
|
require('lodash/partition');
|
|
50
|
-
require('zod');
|
|
51
50
|
|
|
52
51
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
53
52
|
|
|
@@ -383,8 +382,8 @@ async function startFrontend(options) {
|
|
|
383
382
|
const lockfile = await Lockfile.Lockfile.load(index.paths.resolveTargetRoot("yarn.lock"));
|
|
384
383
|
const result = lockfile.analyze({
|
|
385
384
|
filter: lint.includedFilter,
|
|
386
|
-
localPackages:
|
|
387
|
-
await
|
|
385
|
+
localPackages: cliNode.PackageGraph.fromPackages(
|
|
386
|
+
await cliNode.PackageGraph.listTargetPackages()
|
|
388
387
|
)
|
|
389
388
|
});
|
|
390
389
|
const problemPackages = [...result.newVersions, ...result.newRanges].map(({ name: name2 }) => name2).filter(lint.forbiddenDuplicatesFilter);
|
|
@@ -439,14 +438,14 @@ async function startFrontend(options) {
|
|
|
439
438
|
}
|
|
440
439
|
|
|
441
440
|
async function command(opts) {
|
|
442
|
-
const role = await
|
|
441
|
+
const role$1 = await role.findRoleFromCommand(opts);
|
|
443
442
|
const options = {
|
|
444
443
|
configPaths: opts.config,
|
|
445
444
|
checksEnabled: Boolean(opts.check),
|
|
446
445
|
inspectEnabled: Boolean(opts.inspect),
|
|
447
446
|
inspectBrkEnabled: Boolean(opts.inspectBrk)
|
|
448
447
|
};
|
|
449
|
-
switch (role) {
|
|
448
|
+
switch (role$1) {
|
|
450
449
|
case "backend":
|
|
451
450
|
case "backend-plugin":
|
|
452
451
|
case "backend-plugin-module":
|
|
@@ -464,10 +463,10 @@ async function command(opts) {
|
|
|
464
463
|
return startFrontend({ entry: "dev/index", ...options });
|
|
465
464
|
default:
|
|
466
465
|
throw new Error(
|
|
467
|
-
`Start command is not supported for package role '${role}'`
|
|
466
|
+
`Start command is not supported for package role '${role$1}'`
|
|
468
467
|
);
|
|
469
468
|
}
|
|
470
469
|
}
|
|
471
470
|
|
|
472
471
|
exports.command = command;
|
|
473
|
-
//# sourceMappingURL=index-
|
|
472
|
+
//# sourceMappingURL=index-5927bba3.cjs.js.map
|
|
@@ -46,11 +46,12 @@ class NotFoundError extends CustomError {
|
|
|
46
46
|
|
|
47
47
|
const paths = cliCommon.findPaths(__dirname);
|
|
48
48
|
|
|
49
|
-
var version$a = "0.18.4
|
|
49
|
+
var version$a = "0.18.4";
|
|
50
50
|
|
|
51
|
-
var version$9 = "0.22.6
|
|
51
|
+
var version$9 = "0.22.6";
|
|
52
52
|
var dependencies = {
|
|
53
53
|
"@backstage/cli-common": "workspace:^",
|
|
54
|
+
"@backstage/cli-node": "workspace:^",
|
|
54
55
|
"@backstage/config": "workspace:^",
|
|
55
56
|
"@backstage/config-loader": "workspace:^",
|
|
56
57
|
"@backstage/errors": "workspace:^",
|
|
@@ -75,8 +76,8 @@ var dependencies = {
|
|
|
75
76
|
"@svgr/plugin-svgo": "6.5.x",
|
|
76
77
|
"@svgr/rollup": "6.5.x",
|
|
77
78
|
"@svgr/webpack": "6.5.x",
|
|
78
|
-
"@swc/core": "^1.3.
|
|
79
|
-
"@swc/helpers": "^0.
|
|
79
|
+
"@swc/core": "^1.3.46",
|
|
80
|
+
"@swc/helpers": "^0.5.0",
|
|
80
81
|
"@swc/jest": "^0.2.22",
|
|
81
82
|
"@types/jest": "^29.0.0",
|
|
82
83
|
"@types/webpack-env": "^1.15.2",
|
|
@@ -187,19 +188,19 @@ var devDependencies = {
|
|
|
187
188
|
|
|
188
189
|
var version$8 = "1.0.7";
|
|
189
190
|
|
|
190
|
-
var version$7 = "1.7.0
|
|
191
|
+
var version$7 = "1.7.0";
|
|
191
192
|
|
|
192
|
-
var version$6 = "0.
|
|
193
|
+
var version$6 = "0.13.0";
|
|
193
194
|
|
|
194
|
-
var version$5 = "1.5.1
|
|
195
|
+
var version$5 = "1.5.1";
|
|
195
196
|
|
|
196
|
-
var version$4 = "1.0.14
|
|
197
|
+
var version$4 = "1.0.14";
|
|
197
198
|
|
|
198
|
-
var version$3 = "1.3.0
|
|
199
|
+
var version$3 = "1.3.0";
|
|
199
200
|
|
|
200
|
-
var version$2 = "0.2.19
|
|
201
|
+
var version$2 = "0.2.19";
|
|
201
202
|
|
|
202
|
-
var version$1 = "1.13.0
|
|
203
|
+
var version$1 = "1.13.0";
|
|
203
204
|
|
|
204
205
|
const packageVersions = {
|
|
205
206
|
"@backstage/backend-common": version$a,
|
|
@@ -273,7 +274,7 @@ function registerRepoCommand(program) {
|
|
|
273
274
|
).option(
|
|
274
275
|
"--since <ref>",
|
|
275
276
|
"Only build packages and their dev dependents that changed since the specified ref"
|
|
276
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
277
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./build-42253311.cjs.js'); }).then((m) => m.command)));
|
|
277
278
|
command.command("lint").description("Lint all packages in the project").option(
|
|
278
279
|
"--format <format>",
|
|
279
280
|
"Lint report output format",
|
|
@@ -281,10 +282,10 @@ function registerRepoCommand(program) {
|
|
|
281
282
|
).option(
|
|
282
283
|
"--since <ref>",
|
|
283
284
|
"Only lint packages that changed since the specified ref"
|
|
284
|
-
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
285
|
-
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
285
|
+
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-c2f0e516.cjs.js'); }).then((m) => m.command)));
|
|
286
|
+
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-75a372f2.cjs.js'); }).then((m) => m.command)));
|
|
286
287
|
command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
|
|
287
|
-
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-
|
|
288
|
+
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-9896a9cf.cjs.js'); }).then((m) => m.command))
|
|
288
289
|
);
|
|
289
290
|
command.command("test").allowUnknownOption(true).option(
|
|
290
291
|
"--since <ref>",
|
|
@@ -292,14 +293,14 @@ function registerRepoCommand(program) {
|
|
|
292
293
|
).option(
|
|
293
294
|
"--jest-help",
|
|
294
295
|
"Show help for Jest CLI options, which are passed through"
|
|
295
|
-
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
296
|
+
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-19c76d39.cjs.js'); }).then((m) => m.command)));
|
|
296
297
|
}
|
|
297
298
|
function registerScriptCommand(program) {
|
|
298
299
|
const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
|
|
299
300
|
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(
|
|
300
301
|
"--inspect-brk",
|
|
301
302
|
"Enable debugger in Node.js environments, breaking before code starts"
|
|
302
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
303
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-5927bba3.cjs.js'); }).then((m) => m.command)));
|
|
303
304
|
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
|
|
304
305
|
"--minify",
|
|
305
306
|
"Minify the generated code. Does not apply to app or backend packages."
|
|
@@ -317,36 +318,36 @@ function registerScriptCommand(program) {
|
|
|
317
318
|
"Config files to load instead of app-config.yaml. Applies to app packages only.",
|
|
318
319
|
(opt, opts) => opts ? [...opts, opt] : [opt],
|
|
319
320
|
Array()
|
|
320
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
321
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-8e7e875b.cjs.js'); }).then((m) => m.command)));
|
|
321
322
|
command.command("lint [directories...]").option(
|
|
322
323
|
"--format <format>",
|
|
323
324
|
"Lint report output format",
|
|
324
325
|
"eslint-formatter-friendly"
|
|
325
|
-
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
326
|
-
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-
|
|
327
|
-
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-
|
|
328
|
-
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
329
|
-
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
330
|
-
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
326
|
+
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-0b4fe419.cjs.js'); }).then((m) => m.default)));
|
|
327
|
+
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-f9de53cd.cjs.js'); }).then((m) => m.default)));
|
|
328
|
+
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-49190457.cjs.js'); }).then((m) => m.command)));
|
|
329
|
+
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-5d1da9f9.cjs.js'); }).then((m) => m.default)));
|
|
330
|
+
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-1019c4c8.cjs.js'); }).then((m) => m.pre)));
|
|
331
|
+
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-1019c4c8.cjs.js'); }).then((m) => m.post)));
|
|
331
332
|
}
|
|
332
333
|
function registerMigrateCommand(program) {
|
|
333
334
|
const command = program.command("migrate [command]").description("Migration utilities");
|
|
334
|
-
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-
|
|
335
|
+
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-a1e768bd.cjs.js'); }).then((m) => m.default)));
|
|
335
336
|
command.command("package-scripts").description("Set package scripts according to each package role").action(
|
|
336
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-
|
|
337
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-c6721fac.cjs.js'); }).then((m) => m.command))
|
|
337
338
|
);
|
|
338
339
|
command.command("package-exports").description("Synchronize package subpath export definitions").action(
|
|
339
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageExports-
|
|
340
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageExports-50d8546d.cjs.js'); }).then((m) => m.command))
|
|
340
341
|
);
|
|
341
342
|
command.command("package-lint-configs").description(
|
|
342
343
|
"Migrates all packages to use @backstage/cli/config/eslint-factory"
|
|
343
344
|
).action(
|
|
344
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-
|
|
345
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-bf24ae9d.cjs.js'); }).then((m) => m.command))
|
|
345
346
|
);
|
|
346
347
|
command.command("react-router-deps").description(
|
|
347
348
|
"Migrates the react-router dependencies for all packages to be peer dependencies"
|
|
348
349
|
).action(
|
|
349
|
-
lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-
|
|
350
|
+
lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-a2bb1d62.cjs.js'); }).then((m) => m.command))
|
|
350
351
|
);
|
|
351
352
|
}
|
|
352
353
|
function registerCommands(program) {
|
|
@@ -366,7 +367,7 @@ function registerCommands(program) {
|
|
|
366
367
|
).option(
|
|
367
368
|
"--baseVersion <version>",
|
|
368
369
|
"The version to use for any new packages (default: 0.1.0)"
|
|
369
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
370
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-f472e0fa.cjs.js'); }).then((m) => m.default)));
|
|
370
371
|
program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
|
|
371
372
|
"Open up an interactive guide to creating new things in your app [DEPRECATED]"
|
|
372
373
|
).option(
|
|
@@ -380,43 +381,43 @@ function registerCommands(program) {
|
|
|
380
381
|
).option("--scope <scope>", "The scope to use for new packages").option(
|
|
381
382
|
"--npm-registry <URL>",
|
|
382
383
|
"The package registry to use for new packages"
|
|
383
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
384
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-f472e0fa.cjs.js'); }).then((m) => m.default)));
|
|
384
385
|
program.command("create-plugin", { hidden: true }).option(
|
|
385
386
|
"--backend",
|
|
386
387
|
"Create plugin with the backend dependencies as default"
|
|
387
388
|
).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(
|
|
388
|
-
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-
|
|
389
|
+
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-a27e235a.cjs.js'); }).then((m) => m.default))
|
|
389
390
|
);
|
|
390
391
|
program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
|
|
391
392
|
"Diff an existing plugin with the creation template [DEPRECATED]"
|
|
392
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-
|
|
393
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-dadcc89b.cjs.js'); }).then((m) => m.default)));
|
|
393
394
|
program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
|
|
394
395
|
"Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
|
|
395
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
396
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./test-f9de53cd.cjs.js'); }).then((m) => m.default)));
|
|
396
397
|
program.command("config:docs").option(
|
|
397
398
|
"--package <name>",
|
|
398
399
|
"Only include the schema that applies to the given package"
|
|
399
|
-
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-
|
|
400
|
+
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-1dc99846.cjs.js'); }).then((m) => m.default)));
|
|
400
401
|
program.command("config:print").option(
|
|
401
402
|
"--package <name>",
|
|
402
403
|
"Only load config schema that applies to the given package"
|
|
403
404
|
).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(
|
|
404
405
|
"--format <format>",
|
|
405
406
|
"Format to print the configuration in, either json or yaml [yaml]"
|
|
406
|
-
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-
|
|
407
|
+
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-4b403c4d.cjs.js'); }).then((m) => m.default)));
|
|
407
408
|
program.command("config:check").option(
|
|
408
409
|
"--package <name>",
|
|
409
410
|
"Only load config schema that applies to the given package"
|
|
410
411
|
).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(
|
|
411
412
|
"Validate that the given configuration loads and matches schema"
|
|
412
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-
|
|
413
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-b41a1961.cjs.js'); }).then((m) => m.default)));
|
|
413
414
|
program.command("config:schema").option(
|
|
414
415
|
"--package <name>",
|
|
415
416
|
"Only output config schema that applies to the given package"
|
|
416
417
|
).option(
|
|
417
418
|
"--format <format>",
|
|
418
419
|
"Format to print the schema in, either json or yaml [yaml]"
|
|
419
|
-
).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-
|
|
420
|
+
).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-17d2b40e.cjs.js'); }).then((m) => m.default)));
|
|
420
421
|
registerRepoCommand(program);
|
|
421
422
|
registerScriptCommand(program);
|
|
422
423
|
registerMigrateCommand(program);
|
|
@@ -428,16 +429,16 @@ function registerCommands(program) {
|
|
|
428
429
|
"--release <version|next|main>",
|
|
429
430
|
"Bump to a specific Backstage release line or version",
|
|
430
431
|
"main"
|
|
431
|
-
).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-
|
|
432
|
-
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-
|
|
433
|
-
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
434
|
-
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-
|
|
435
|
-
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
436
|
-
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-
|
|
432
|
+
).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-cc9b7e0a.cjs.js'); }).then((m) => m.default)));
|
|
433
|
+
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-5a4cded6.cjs.js'); }).then((m) => m.default)));
|
|
434
|
+
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-5d1da9f9.cjs.js'); }).then((m) => m.default)));
|
|
435
|
+
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-dadd783f.cjs.js'); }).then((m) => m.default)));
|
|
436
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-3863f0e8.cjs.js'); }).then((m) => m.default)));
|
|
437
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-f29147fa.cjs.js'); }).then((m) => m.default)));
|
|
437
438
|
program.command("install [plugin-id]", { hidden: true }).option(
|
|
438
439
|
"--from <packageJsonFilePath>",
|
|
439
440
|
"Install from a local package.json containing the installation recipe"
|
|
440
|
-
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-
|
|
441
|
+
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-f5b010e4.cjs.js'); }).then((m) => m.default)));
|
|
441
442
|
}
|
|
442
443
|
function lazy(getActionFunc) {
|
|
443
444
|
return async (...args) => {
|
|
@@ -481,4 +482,4 @@ exports.devDependencies = devDependencies;
|
|
|
481
482
|
exports.paths = paths;
|
|
482
483
|
exports.version = version;
|
|
483
484
|
exports.version$1 = version$9;
|
|
484
|
-
//# sourceMappingURL=index-
|
|
485
|
+
//# sourceMappingURL=index-6ac1c897.cjs.js.map
|
|
@@ -1,28 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var createDistWorkspace = require('./createDistWorkspace-
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
3
|
+
var createDistWorkspace = require('./createDistWorkspace-42fcd9f9.cjs.js');
|
|
4
|
+
var role = require('./role-ee15df98.cjs.js');
|
|
5
|
+
var cliNode = require('@backstage/cli-node');
|
|
6
|
+
var index = require('./index-6ac1c897.cjs.js');
|
|
7
|
+
var buildBackend = require('./buildBackend-e5152bf0.cjs.js');
|
|
8
|
+
var config = require('./config-c2311c98.cjs.js');
|
|
8
9
|
require('chalk');
|
|
9
10
|
require('fs-extra');
|
|
10
11
|
require('path');
|
|
11
12
|
require('os');
|
|
12
13
|
require('tar');
|
|
13
14
|
require('lodash/partition');
|
|
14
|
-
require('./run-
|
|
15
|
+
require('./run-1e0be68d.cjs.js');
|
|
15
16
|
require('child_process');
|
|
16
17
|
require('util');
|
|
17
18
|
require('@backstage/errors');
|
|
18
|
-
require('./PackageGraph-e47555be.cjs.js');
|
|
19
|
-
require('@manypkg/get-packages');
|
|
20
|
-
require('./Lockfile-bc3a8337.cjs.js');
|
|
21
|
-
require('semver');
|
|
22
|
-
require('@yarnpkg/parsers');
|
|
23
|
-
require('@yarnpkg/lockfile');
|
|
24
|
-
require('minimatch');
|
|
25
|
-
require('./yarn-6cd89e16.cjs.js');
|
|
26
19
|
require('rollup');
|
|
27
20
|
require('@rollup/plugin-commonjs');
|
|
28
21
|
require('@rollup/plugin-node-resolve');
|
|
@@ -34,13 +27,13 @@ require('@rollup/plugin-json');
|
|
|
34
27
|
require('@rollup/plugin-yaml');
|
|
35
28
|
require('rollup-pluginutils');
|
|
36
29
|
require('./svgrTemplate-550efce6.cjs.js');
|
|
37
|
-
require('./entryPoints-
|
|
30
|
+
require('./entryPoints-0cc55995.cjs.js');
|
|
38
31
|
require('./parallel-a8f6219c.cjs.js');
|
|
39
32
|
require('worker_threads');
|
|
40
|
-
require('./productionPack-
|
|
33
|
+
require('./productionPack-d569941a.cjs.js');
|
|
41
34
|
require('npm-packlist');
|
|
42
|
-
require('zod');
|
|
43
35
|
require('commander');
|
|
36
|
+
require('semver');
|
|
44
37
|
require('@backstage/cli-common');
|
|
45
38
|
require('webpack');
|
|
46
39
|
require('fork-ts-checker-webpack-plugin');
|
|
@@ -48,7 +41,8 @@ require('html-webpack-plugin');
|
|
|
48
41
|
require('react-dev-utils/ModuleScopePlugin');
|
|
49
42
|
require('run-script-webpack-plugin');
|
|
50
43
|
require('webpack-node-externals');
|
|
51
|
-
require('
|
|
44
|
+
require('@manypkg/get-packages');
|
|
45
|
+
require('./paths-0561d135.cjs.js');
|
|
52
46
|
require('mini-css-extract-plugin');
|
|
53
47
|
require('@pmmmwh/react-refresh-webpack-plugin');
|
|
54
48
|
require('eslint-webpack-plugin');
|
|
@@ -62,15 +56,15 @@ require('@backstage/config-loader');
|
|
|
62
56
|
require('@backstage/config');
|
|
63
57
|
|
|
64
58
|
async function command(opts) {
|
|
65
|
-
const role = await
|
|
66
|
-
if (role === "frontend" || role === "backend") {
|
|
59
|
+
const role$1 = await role.findRoleFromCommand(opts);
|
|
60
|
+
if (role$1 === "frontend" || role$1 === "backend") {
|
|
67
61
|
const configPaths = opts.config.map((arg) => {
|
|
68
62
|
if (config.isValidUrl(arg)) {
|
|
69
63
|
return arg;
|
|
70
64
|
}
|
|
71
65
|
return index.paths.resolveTarget(arg);
|
|
72
66
|
});
|
|
73
|
-
if (role === "frontend") {
|
|
67
|
+
if (role$1 === "frontend") {
|
|
74
68
|
return buildBackend.buildFrontend({
|
|
75
69
|
targetDir: index.paths.targetDir,
|
|
76
70
|
configPaths,
|
|
@@ -83,7 +77,7 @@ async function command(opts) {
|
|
|
83
77
|
skipBuildDependencies: Boolean(opts.skipBuildDependencies)
|
|
84
78
|
});
|
|
85
79
|
}
|
|
86
|
-
const roleInfo =
|
|
80
|
+
const roleInfo = cliNode.PackageRoles.getRoleInfo(role$1);
|
|
87
81
|
const outputs = /* @__PURE__ */ new Set();
|
|
88
82
|
if (roleInfo.output.includes("cjs")) {
|
|
89
83
|
outputs.add(createDistWorkspace.Output.cjs);
|
|
@@ -102,4 +96,4 @@ async function command(opts) {
|
|
|
102
96
|
}
|
|
103
97
|
|
|
104
98
|
exports.command = command;
|
|
105
|
-
//# sourceMappingURL=index-
|
|
99
|
+
//# sourceMappingURL=index-8e7e875b.cjs.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-6ac1c897.cjs.js');
|
|
4
4
|
var os = require('os');
|
|
5
|
-
var run = require('./run-
|
|
6
|
-
var Lockfile = require('./Lockfile-
|
|
5
|
+
var run = require('./run-1e0be68d.cjs.js');
|
|
6
|
+
var Lockfile = require('./Lockfile-eced6070.cjs.js');
|
|
7
7
|
require('minimatch');
|
|
8
8
|
require('@manypkg/get-packages');
|
|
9
9
|
require('chalk');
|
|
@@ -58,4 +58,4 @@ var info = async () => {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
exports["default"] = info;
|
|
61
|
-
//# sourceMappingURL=info-
|
|
61
|
+
//# sourceMappingURL=info-f29147fa.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-cd0963a1.cjs.js');
|
|
8
|
+
var index = require('./index-6ac1c897.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-1e0be68d.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-f5b010e4.cjs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-6ac1c897.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-0b4fe419.cjs.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Lockfile = require('./Lockfile-
|
|
3
|
+
var Lockfile = require('./Lockfile-eced6070.cjs.js');
|
|
4
4
|
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-1e0be68d.cjs.js');
|
|
9
|
+
var index = require('./index-6ac1c897.cjs.js');
|
|
10
10
|
var partition = require('lodash/partition');
|
|
11
|
-
var
|
|
11
|
+
var cliNode = require('@backstage/cli-node');
|
|
12
12
|
require('fs-extra');
|
|
13
13
|
require('semver');
|
|
14
14
|
require('@yarnpkg/parsers');
|
|
@@ -18,7 +18,6 @@ require('child_process');
|
|
|
18
18
|
require('util');
|
|
19
19
|
require('commander');
|
|
20
20
|
require('@backstage/cli-common');
|
|
21
|
-
require('path');
|
|
22
21
|
|
|
23
22
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
24
23
|
|
|
@@ -46,8 +45,8 @@ var lint = async (cmd) => {
|
|
|
46
45
|
const lockfile = await Lockfile.Lockfile.load(lockfilePath);
|
|
47
46
|
const result = lockfile.analyze({
|
|
48
47
|
filter: includedFilter,
|
|
49
|
-
localPackages:
|
|
50
|
-
await
|
|
48
|
+
localPackages: cliNode.PackageGraph.fromPackages(
|
|
49
|
+
await cliNode.PackageGraph.listTargetPackages()
|
|
51
50
|
)
|
|
52
51
|
});
|
|
53
52
|
logArray(
|
|
@@ -113,4 +112,4 @@ function logArray(arr, header, each) {
|
|
|
113
112
|
exports["default"] = lint;
|
|
114
113
|
exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
|
|
115
114
|
exports.includedFilter = includedFilter;
|
|
116
|
-
//# sourceMappingURL=lint-
|
|
115
|
+
//# sourceMappingURL=lint-5a4cded6.cjs.js.map
|
|
@@ -2,25 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var path = require('path');
|
|
5
|
-
var
|
|
5
|
+
var cliNode = require('@backstage/cli-node');
|
|
6
|
+
var index = require('./index-6ac1c897.cjs.js');
|
|
6
7
|
var parallel = require('./parallel-a8f6219c.cjs.js');
|
|
7
|
-
|
|
8
|
-
require('@manypkg/get-packages');
|
|
9
|
-
require('@backstage/errors');
|
|
10
|
-
require('child_process');
|
|
11
|
-
require('util');
|
|
12
|
-
require('./Lockfile-bc3a8337.cjs.js');
|
|
8
|
+
require('commander');
|
|
13
9
|
require('fs-extra');
|
|
14
10
|
require('semver');
|
|
15
|
-
require('@
|
|
16
|
-
require('@
|
|
17
|
-
require('minimatch');
|
|
18
|
-
require('./yarn-6cd89e16.cjs.js');
|
|
19
|
-
require('./run-a93ca9aa.cjs.js');
|
|
11
|
+
require('@backstage/cli-common');
|
|
12
|
+
require('@backstage/errors');
|
|
20
13
|
require('os');
|
|
21
14
|
require('worker_threads');
|
|
22
|
-
require('commander');
|
|
23
|
-
require('@backstage/cli-common');
|
|
24
15
|
|
|
25
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
26
17
|
|
|
@@ -32,9 +23,9 @@ function depCount(pkg) {
|
|
|
32
23
|
return deps + devDeps;
|
|
33
24
|
}
|
|
34
25
|
async function command(opts) {
|
|
35
|
-
let packages = await
|
|
26
|
+
let packages = await cliNode.PackageGraph.listTargetPackages();
|
|
36
27
|
if (opts.since) {
|
|
37
|
-
const graph =
|
|
28
|
+
const graph = cliNode.PackageGraph.fromPackages(packages);
|
|
38
29
|
packages = await graph.listChangedPackages({
|
|
39
30
|
ref: opts.since,
|
|
40
31
|
analyzeLockfile: true
|
|
@@ -97,4 +88,4 @@ async function command(opts) {
|
|
|
97
88
|
}
|
|
98
89
|
|
|
99
90
|
exports.command = command;
|
|
100
|
-
//# sourceMappingURL=lint-
|
|
91
|
+
//# sourceMappingURL=lint-c2f0e516.cjs.js.map
|
|
@@ -3,29 +3,20 @@
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var eslint = require('eslint');
|
|
5
5
|
var path = require('path');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var cliNode = require('@backstage/cli-node');
|
|
7
|
+
var index = require('./index-6ac1c897.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('fs-extra');
|
|
10
10
|
require('semver');
|
|
11
11
|
require('@backstage/cli-common');
|
|
12
12
|
require('@backstage/errors');
|
|
13
|
-
require('@manypkg/get-packages');
|
|
14
|
-
require('child_process');
|
|
15
|
-
require('util');
|
|
16
|
-
require('./Lockfile-bc3a8337.cjs.js');
|
|
17
|
-
require('@yarnpkg/parsers');
|
|
18
|
-
require('@yarnpkg/lockfile');
|
|
19
|
-
require('minimatch');
|
|
20
|
-
require('./yarn-6cd89e16.cjs.js');
|
|
21
|
-
require('./run-a93ca9aa.cjs.js');
|
|
22
13
|
|
|
23
14
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
24
15
|
|
|
25
16
|
var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
|
|
26
17
|
|
|
27
18
|
async function command(opts) {
|
|
28
|
-
const packages = await
|
|
19
|
+
const packages = await cliNode.PackageGraph.listTargetPackages();
|
|
29
20
|
const eslint$1 = new eslint.ESLint({
|
|
30
21
|
cwd: index.paths.targetDir,
|
|
31
22
|
overrideConfig: {
|
|
@@ -85,4 +76,4 @@ async function command(opts) {
|
|
|
85
76
|
}
|
|
86
77
|
|
|
87
78
|
exports.command = command;
|
|
88
|
-
//# sourceMappingURL=list-deprecations-
|
|
79
|
+
//# sourceMappingURL=list-deprecations-9896a9cf.cjs.js.map
|