@backstage/cli 0.19.0-next.3 → 0.20.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +138 -0
- package/config/jest.js +6 -7
- package/config/jestFileTransform.js +5 -3
- package/config/jestSucraseTransform.js +2 -2
- package/config/jestSwcTransform.js +1 -1
- package/config/jestYamlTransform.js +40 -0
- package/dist/cjs/{Lockfile-72b7072e.cjs.js → Lockfile-6785964d.cjs.js} +11 -3
- package/dist/cjs/{PackageGraph-cbbcb60d.cjs.js → PackageGraph-c010b470.cjs.js} +2 -2
- package/dist/cjs/{build-a80c880d.cjs.js → build-bf0c9be8.cjs.js} +9 -9
- package/dist/cjs/{buildBackend-f7c77b0b.cjs.js → buildBackend-b3cac554.cjs.js} +6 -6
- package/dist/cjs/{buildWorkspace-54b59635.cjs.js → buildWorkspace-ae6d11ad.cjs.js} +6 -6
- package/dist/cjs/{bump-1b765f38.cjs.js → bump-233971f4.cjs.js} +6 -6
- package/dist/cjs/{clean-d0639824.cjs.js → clean-04b9c3da.cjs.js} +2 -2
- package/dist/cjs/{clean-44c36da0.cjs.js → clean-97ff26db.cjs.js} +3 -3
- package/dist/cjs/{config-b04e9537.cjs.js → config-372b1847.cjs.js} +3 -3
- package/dist/cjs/{createDistWorkspace-ee244c42.cjs.js → createDistWorkspace-0d95621f.cjs.js} +6 -6
- package/dist/cjs/{createPlugin-38bde20d.cjs.js → createPlugin-3ba45c6e.cjs.js} +5 -5
- package/dist/cjs/{diff-106d4724.cjs.js → diff-6f41d16d.cjs.js} +2 -2
- package/dist/cjs/{docs-b4ec9616.cjs.js → docs-1fc5df4c.cjs.js} +4 -4
- package/dist/cjs/{fix-2e7bcb7b.cjs.js → fix-b1264da8.cjs.js} +3 -3
- package/dist/cjs/{index-22d71d53.cjs.js → index-5b93e829.cjs.js} +9 -9
- package/dist/cjs/{index-0b77afc5.cjs.js → index-78397b5a.cjs.js} +9 -9
- package/dist/cjs/{index-4a52b979.cjs.js → index-a0c84dfe.cjs.js} +73 -60
- package/dist/cjs/{index-ddecf380.cjs.js → index-ab294f1b.cjs.js} +2 -2
- package/dist/cjs/{info-dde556a3.cjs.js → info-05d5f8e8.cjs.js} +4 -4
- package/dist/cjs/{install-0198741a.cjs.js → install-bcc3993e.cjs.js} +4 -4
- package/dist/cjs/{lint-bac940ad.cjs.js → lint-3a772347.cjs.js} +4 -4
- package/dist/cjs/{lint-bbf17e89.cjs.js → lint-ab2bafa4.cjs.js} +3 -3
- package/dist/cjs/{lint-4ea1cd7d.cjs.js → lint-be221814.cjs.js} +2 -2
- package/dist/cjs/{list-deprecations-1a376bc8.cjs.js → list-deprecations-e8947967.cjs.js} +3 -3
- package/dist/cjs/{new-dc185c76.cjs.js → new-980110f9.cjs.js} +5 -5
- package/dist/cjs/{pack-17918a36.cjs.js → pack-f4977c5b.cjs.js} +2 -2
- package/dist/cjs/{packageLintConfigs-4b48e7c0.cjs.js → packageLintConfigs-37c9efdb.cjs.js} +4 -4
- package/dist/cjs/{packageRole-5a08fd56.cjs.js → packageRole-f7f8bddb.cjs.js} +3 -3
- package/dist/cjs/{packageRoles-1f3cfecc.cjs.js → packageRoles-fe1041b2.cjs.js} +2 -2
- package/dist/cjs/{packageScripts-3d6c88f7.cjs.js → packageScripts-adb1adda.cjs.js} +4 -4
- package/dist/cjs/{packages-032b4d94.cjs.js → packages-ca11689b.cjs.js} +3 -3
- package/dist/cjs/{paths-adb593c7.cjs.js → paths-55d51401.cjs.js} +7 -7
- package/dist/cjs/{print-69c54f76.cjs.js → print-0a762eba.cjs.js} +4 -4
- package/dist/cjs/{reactRouterDeps-af437b7b.cjs.js → reactRouterDeps-9be88dbe.cjs.js} +4 -4
- package/dist/cjs/{run-20edcac9.cjs.js → run-4d88b636.cjs.js} +2 -2
- package/dist/cjs/{schema-6176df9d.cjs.js → schema-df053149.cjs.js} +4 -4
- package/dist/cjs/{tasks-93484977.cjs.js → tasks-6a14164e.cjs.js} +2 -2
- package/dist/cjs/{test-7f135639.cjs.js → test-3650b6a2.cjs.js} +3 -3
- package/dist/cjs/test-596310c9.cjs.js +99 -0
- package/dist/cjs/{validate-6dc3e551.cjs.js → validate-6e7df086.cjs.js} +4 -4
- package/dist/index.cjs.js +1 -1
- package/package.json +19 -20
- package/templates/default-backend-plugin/package.json.hbs +6 -6
- package/templates/default-plugin/package.json.hbs +1 -1
- package/LICENSE +0 -201
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var createDistWorkspace = require('./createDistWorkspace-
|
|
4
|
-
var packageRoles = require('./packageRoles-
|
|
5
|
-
var index = require('./index-
|
|
6
|
-
var buildBackend = require('./buildBackend-
|
|
3
|
+
var createDistWorkspace = require('./createDistWorkspace-0d95621f.cjs.js');
|
|
4
|
+
var packageRoles = require('./packageRoles-fe1041b2.cjs.js');
|
|
5
|
+
var index = require('./index-a0c84dfe.cjs.js');
|
|
6
|
+
var buildBackend = require('./buildBackend-b3cac554.cjs.js');
|
|
7
7
|
require('chalk');
|
|
8
8
|
require('fs-extra');
|
|
9
9
|
require('path');
|
|
10
10
|
require('os');
|
|
11
11
|
require('tar');
|
|
12
12
|
require('lodash/partition');
|
|
13
|
-
require('./run-
|
|
13
|
+
require('./run-4d88b636.cjs.js');
|
|
14
14
|
require('child_process');
|
|
15
15
|
require('util');
|
|
16
16
|
require('@backstage/errors');
|
|
17
|
-
require('./PackageGraph-
|
|
17
|
+
require('./PackageGraph-c010b470.cjs.js');
|
|
18
18
|
require('@manypkg/get-packages');
|
|
19
19
|
require('rollup');
|
|
20
20
|
require('@rollup/plugin-commonjs');
|
|
@@ -40,7 +40,7 @@ require('html-webpack-plugin');
|
|
|
40
40
|
require('react-dev-utils/ModuleScopePlugin');
|
|
41
41
|
require('run-script-webpack-plugin');
|
|
42
42
|
require('webpack-node-externals');
|
|
43
|
-
require('./paths-
|
|
43
|
+
require('./paths-55d51401.cjs.js');
|
|
44
44
|
require('mini-css-extract-plugin');
|
|
45
45
|
require('@pmmmwh/react-refresh-webpack-plugin');
|
|
46
46
|
require('eslint-webpack-plugin');
|
|
@@ -50,7 +50,7 @@ require('react-dev-utils/FileSizeReporter');
|
|
|
50
50
|
require('react-dev-utils/formatWebpackMessages');
|
|
51
51
|
require('webpack-dev-server');
|
|
52
52
|
require('react-dev-utils/openBrowser');
|
|
53
|
-
require('./config-
|
|
53
|
+
require('./config-372b1847.cjs.js');
|
|
54
54
|
require('@backstage/config-loader');
|
|
55
55
|
require('@backstage/config');
|
|
56
56
|
|
|
@@ -88,4 +88,4 @@ async function command(opts) {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
exports.command = command;
|
|
91
|
-
//# sourceMappingURL=index-
|
|
91
|
+
//# sourceMappingURL=index-5b93e829.cjs.js.map
|
|
@@ -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-a0c84dfe.cjs.js');
|
|
5
5
|
var webpack = require('webpack');
|
|
6
|
-
var paths = require('./paths-
|
|
6
|
+
var paths = require('./paths-55d51401.cjs.js');
|
|
7
7
|
require('yn');
|
|
8
8
|
require('path');
|
|
9
9
|
require('react-dev-utils/FileSizeReporter');
|
|
@@ -17,19 +17,19 @@ 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-4d88b636.cjs.js');
|
|
21
21
|
require('eslint-webpack-plugin');
|
|
22
22
|
require('lodash/pickBy');
|
|
23
23
|
var chalk = require('chalk');
|
|
24
24
|
var WebpackDevServer = require('webpack-dev-server');
|
|
25
25
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
26
26
|
var uniq = require('lodash/uniq');
|
|
27
|
-
var config = require('./config-
|
|
28
|
-
var Lockfile = require('./Lockfile-
|
|
27
|
+
var config = require('./config-372b1847.cjs.js');
|
|
28
|
+
var Lockfile = require('./Lockfile-6785964d.cjs.js');
|
|
29
29
|
require('minimatch');
|
|
30
30
|
require('./yarn-6cd89e16.cjs.js');
|
|
31
|
-
var lint = require('./lint-
|
|
32
|
-
var packageRoles = require('./packageRoles-
|
|
31
|
+
var lint = require('./lint-3a772347.cjs.js');
|
|
32
|
+
var packageRoles = require('./packageRoles-fe1041b2.cjs.js');
|
|
33
33
|
require('commander');
|
|
34
34
|
require('semver');
|
|
35
35
|
require('@backstage/errors');
|
|
@@ -38,7 +38,7 @@ require('child_process');
|
|
|
38
38
|
require('util');
|
|
39
39
|
require('@backstage/config-loader');
|
|
40
40
|
require('@backstage/config');
|
|
41
|
-
require('./PackageGraph-
|
|
41
|
+
require('./PackageGraph-c010b470.cjs.js');
|
|
42
42
|
require('@yarnpkg/parsers');
|
|
43
43
|
require('@yarnpkg/lockfile');
|
|
44
44
|
require('lodash/partition');
|
|
@@ -245,4 +245,4 @@ async function command(opts) {
|
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
exports.command = command;
|
|
248
|
-
//# sourceMappingURL=index-
|
|
248
|
+
//# sourceMappingURL=index-78397b5a.cjs.js.map
|
|
@@ -46,16 +46,16 @@ class NotFoundError extends CustomError {
|
|
|
46
46
|
|
|
47
47
|
const paths = cliCommon.findPaths(__dirname);
|
|
48
48
|
|
|
49
|
-
var version$a = "0.15.
|
|
49
|
+
var version$a = "0.15.2-next.0";
|
|
50
50
|
|
|
51
|
-
var version$9 = "0.
|
|
51
|
+
var version$9 = "0.20.0-next.0";
|
|
52
52
|
var dependencies = {
|
|
53
|
-
"@backstage/cli-common": "
|
|
54
|
-
"@backstage/config": "
|
|
55
|
-
"@backstage/config-loader": "
|
|
56
|
-
"@backstage/errors": "
|
|
57
|
-
"@backstage/release-manifests": "
|
|
58
|
-
"@backstage/types": "
|
|
53
|
+
"@backstage/cli-common": "workspace:^",
|
|
54
|
+
"@backstage/config": "workspace:^",
|
|
55
|
+
"@backstage/config-loader": "workspace:^",
|
|
56
|
+
"@backstage/errors": "workspace:^",
|
|
57
|
+
"@backstage/release-manifests": "workspace:^",
|
|
58
|
+
"@backstage/types": "workspace:^",
|
|
59
59
|
"@manypkg/get-packages": "^1.1.3",
|
|
60
60
|
"@octokit/request": "^6.0.0",
|
|
61
61
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
|
|
@@ -75,7 +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": "^
|
|
78
|
+
"@types/jest": "^29.0.0",
|
|
79
79
|
"@types/webpack-env": "^1.15.2",
|
|
80
80
|
"@typescript-eslint/eslint-plugin": "^5.9.0",
|
|
81
81
|
"@typescript-eslint/parser": "^5.9.0",
|
|
@@ -109,10 +109,10 @@ var dependencies = {
|
|
|
109
109
|
handlebars: "^4.7.3",
|
|
110
110
|
"html-webpack-plugin": "^5.3.1",
|
|
111
111
|
inquirer: "^8.2.0",
|
|
112
|
-
jest: "^
|
|
112
|
+
jest: "^29.0.2",
|
|
113
113
|
"jest-css-modules": "^2.1.0",
|
|
114
|
-
"jest-
|
|
115
|
-
"jest-
|
|
114
|
+
"jest-environment-jsdom": "^29.0.2",
|
|
115
|
+
"jest-runtime": "^29.0.2",
|
|
116
116
|
"json-schema": "^0.4.0",
|
|
117
117
|
lodash: "^4.17.21",
|
|
118
118
|
"mini-css-extract-plugin": "^2.4.2",
|
|
@@ -149,14 +149,14 @@ var dependencies = {
|
|
|
149
149
|
zod: "^3.11.6"
|
|
150
150
|
};
|
|
151
151
|
var devDependencies = {
|
|
152
|
-
"@backstage/backend-common": "
|
|
153
|
-
"@backstage/config": "
|
|
154
|
-
"@backstage/core-app-api": "
|
|
155
|
-
"@backstage/core-components": "
|
|
156
|
-
"@backstage/core-plugin-api": "
|
|
157
|
-
"@backstage/dev-utils": "
|
|
158
|
-
"@backstage/test-utils": "
|
|
159
|
-
"@backstage/theme": "
|
|
152
|
+
"@backstage/backend-common": "workspace:^",
|
|
153
|
+
"@backstage/config": "workspace:^",
|
|
154
|
+
"@backstage/core-app-api": "workspace:^",
|
|
155
|
+
"@backstage/core-components": "workspace:^",
|
|
156
|
+
"@backstage/core-plugin-api": "workspace:^",
|
|
157
|
+
"@backstage/dev-utils": "workspace:^",
|
|
158
|
+
"@backstage/test-utils": "workspace:^",
|
|
159
|
+
"@backstage/theme": "workspace:^",
|
|
160
160
|
"@types/diff": "^5.0.0",
|
|
161
161
|
"@types/express": "^4.17.6",
|
|
162
162
|
"@types/fs-extra": "^9.0.1",
|
|
@@ -181,21 +181,21 @@ var devDependencies = {
|
|
|
181
181
|
"type-fest": "^2.0.0"
|
|
182
182
|
};
|
|
183
183
|
|
|
184
|
-
var version$8 = "1.0.
|
|
184
|
+
var version$8 = "1.0.3-next.0";
|
|
185
185
|
|
|
186
|
-
var version$7 = "1.1.
|
|
186
|
+
var version$7 = "1.1.1-next.0";
|
|
187
187
|
|
|
188
|
-
var version$6 = "0.11.
|
|
188
|
+
var version$6 = "0.11.2-next.0";
|
|
189
189
|
|
|
190
|
-
var version$5 = "1.0.
|
|
190
|
+
var version$5 = "1.0.7-next.0";
|
|
191
191
|
|
|
192
|
-
var version$4 = "1.0.
|
|
192
|
+
var version$4 = "1.0.7-next.0";
|
|
193
193
|
|
|
194
|
-
var version$3 = "1.2.
|
|
194
|
+
var version$3 = "1.2.1-next.0";
|
|
195
195
|
|
|
196
196
|
var version$2 = "0.2.16";
|
|
197
197
|
|
|
198
|
-
var version$1 = "1.
|
|
198
|
+
var version$1 = "1.7.0-next.0";
|
|
199
199
|
|
|
200
200
|
const packageVersions = {
|
|
201
201
|
"@backstage/backend-common": version$a,
|
|
@@ -227,6 +227,12 @@ function createPackageVersionProvider(lockfile) {
|
|
|
227
227
|
if (name.startsWith("@types/") && (lockfileEntries == null ? void 0 : lockfileEntries.some((entry) => entry.range === "*"))) {
|
|
228
228
|
return "*";
|
|
229
229
|
}
|
|
230
|
+
for (const specifier of ["^", "~", "*"]) {
|
|
231
|
+
const range = `workspace:${specifier}`;
|
|
232
|
+
if (lockfileEntries == null ? void 0 : lockfileEntries.some((entry) => entry.range === range)) {
|
|
233
|
+
return range;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
230
236
|
const validRanges = lockfileEntries == null ? void 0 : lockfileEntries.filter(
|
|
231
237
|
(entry) => semver__default["default"].satisfies(targetVersion, entry.range)
|
|
232
238
|
);
|
|
@@ -260,7 +266,7 @@ function registerRepoCommand(program) {
|
|
|
260
266
|
).option(
|
|
261
267
|
"--since <ref>",
|
|
262
268
|
"Only build packages and their dev dependents that changed since the specified ref"
|
|
263
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
269
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./build-bf0c9be8.cjs.js'); }).then((m) => m.command)));
|
|
264
270
|
command.command("lint").description("Lint all packages in the project").option(
|
|
265
271
|
"--format <format>",
|
|
266
272
|
"Lint report output format",
|
|
@@ -268,18 +274,25 @@ function registerRepoCommand(program) {
|
|
|
268
274
|
).option(
|
|
269
275
|
"--since <ref>",
|
|
270
276
|
"Only lint packages that changed since the specified ref"
|
|
271
|
-
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
272
|
-
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
277
|
+
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-ab2bafa4.cjs.js'); }).then((m) => m.command)));
|
|
278
|
+
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-97ff26db.cjs.js'); }).then((m) => m.command)));
|
|
273
279
|
command.command("list-deprecations", { hidden: true }).description("List deprecations. [EXPERIMENTAL]").option("--json", "Output as JSON").action(
|
|
274
|
-
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-
|
|
280
|
+
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-e8947967.cjs.js'); }).then((m) => m.command))
|
|
275
281
|
);
|
|
282
|
+
command.command("test").allowUnknownOption(true).option(
|
|
283
|
+
"--since <ref>",
|
|
284
|
+
"Only test packages that changed since the specified ref"
|
|
285
|
+
).option(
|
|
286
|
+
"--jest-help",
|
|
287
|
+
"Show help for Jest CLI options, which are passed through"
|
|
288
|
+
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-596310c9.cjs.js'); }).then((m) => m.command)));
|
|
276
289
|
}
|
|
277
290
|
function registerScriptCommand(program) {
|
|
278
291
|
const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
|
|
279
292
|
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(
|
|
280
293
|
"--inspect-brk",
|
|
281
294
|
"Enable debugger in Node.js environments, breaking before code starts"
|
|
282
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
295
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-78397b5a.cjs.js'); }).then((m) => m.command)));
|
|
283
296
|
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
|
|
284
297
|
"--minify",
|
|
285
298
|
"Minify the generated code. Does not apply to app or backend packages."
|
|
@@ -297,33 +310,33 @@ function registerScriptCommand(program) {
|
|
|
297
310
|
"Config files to load instead of app-config.yaml. Applies to app packages only.",
|
|
298
311
|
(opt, opts) => opts ? [...opts, opt] : [opt],
|
|
299
312
|
Array()
|
|
300
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
313
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-5b93e829.cjs.js'); }).then((m) => m.command)));
|
|
301
314
|
command.command("lint [directories...]").option(
|
|
302
315
|
"--format <format>",
|
|
303
316
|
"Lint report output format",
|
|
304
317
|
"eslint-formatter-friendly"
|
|
305
|
-
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
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-
|
|
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-
|
|
308
|
-
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
309
|
-
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
310
|
-
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
318
|
+
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-be221814.cjs.js'); }).then((m) => m.default)));
|
|
319
|
+
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-3650b6a2.cjs.js'); }).then((m) => m.default)));
|
|
320
|
+
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-b1264da8.cjs.js'); }).then((m) => m.command)));
|
|
321
|
+
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-04b9c3da.cjs.js'); }).then((m) => m.default)));
|
|
322
|
+
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-f4977c5b.cjs.js'); }).then((m) => m.pre)));
|
|
323
|
+
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-f4977c5b.cjs.js'); }).then((m) => m.post)));
|
|
311
324
|
}
|
|
312
325
|
function registerMigrateCommand(program) {
|
|
313
326
|
const command = program.command("migrate [command]").description("Migration utilities");
|
|
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-
|
|
327
|
+
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-f7f8bddb.cjs.js'); }).then((m) => m.default)));
|
|
315
328
|
command.command("package-scripts").description("Set package scripts according to each package role").action(
|
|
316
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-
|
|
329
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-adb1adda.cjs.js'); }).then((m) => m.command))
|
|
317
330
|
);
|
|
318
331
|
command.command("package-lint-configs").description(
|
|
319
332
|
"Migrates all packages to use @backstage/cli/config/eslint-factory"
|
|
320
333
|
).action(
|
|
321
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-
|
|
334
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-37c9efdb.cjs.js'); }).then((m) => m.command))
|
|
322
335
|
);
|
|
323
336
|
command.command("react-router-deps").description(
|
|
324
337
|
"Migrates the react-router dependencies for all packages to be peer dependencies"
|
|
325
338
|
).action(
|
|
326
|
-
lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-
|
|
339
|
+
lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-9be88dbe.cjs.js'); }).then((m) => m.command))
|
|
327
340
|
);
|
|
328
341
|
}
|
|
329
342
|
function registerCommands(program) {
|
|
@@ -343,7 +356,7 @@ function registerCommands(program) {
|
|
|
343
356
|
).option(
|
|
344
357
|
"--baseVersion <version>",
|
|
345
358
|
"The version to use for any new packages (default: 0.1.0)"
|
|
346
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
359
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-980110f9.cjs.js'); }).then((m) => m.default)));
|
|
347
360
|
program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
|
|
348
361
|
"Open up an interactive guide to creating new things in your app [DEPRECATED]"
|
|
349
362
|
).option(
|
|
@@ -357,43 +370,43 @@ function registerCommands(program) {
|
|
|
357
370
|
).option("--scope <scope>", "The scope to use for new packages").option(
|
|
358
371
|
"--npm-registry <URL>",
|
|
359
372
|
"The package registry to use for new packages"
|
|
360
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
373
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-980110f9.cjs.js'); }).then((m) => m.default)));
|
|
361
374
|
program.command("create-plugin", { hidden: true }).option(
|
|
362
375
|
"--backend",
|
|
363
376
|
"Create plugin with the backend dependencies as default"
|
|
364
377
|
).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(
|
|
365
|
-
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-
|
|
378
|
+
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-3ba45c6e.cjs.js'); }).then((m) => m.default))
|
|
366
379
|
);
|
|
367
380
|
program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
|
|
368
381
|
"Diff an existing plugin with the creation template [DEPRECATED]"
|
|
369
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-
|
|
382
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-6f41d16d.cjs.js'); }).then((m) => m.default)));
|
|
370
383
|
program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
|
|
371
384
|
"Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
|
|
372
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
385
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./test-3650b6a2.cjs.js'); }).then((m) => m.default)));
|
|
373
386
|
program.command("config:docs").option(
|
|
374
387
|
"--package <name>",
|
|
375
388
|
"Only include the schema that applies to the given package"
|
|
376
|
-
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-
|
|
389
|
+
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-1fc5df4c.cjs.js'); }).then((m) => m.default)));
|
|
377
390
|
program.command("config:print").option(
|
|
378
391
|
"--package <name>",
|
|
379
392
|
"Only load config schema that applies to the given package"
|
|
380
393
|
).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(
|
|
381
394
|
"--format <format>",
|
|
382
395
|
"Format to print the configuration in, either json or yaml [yaml]"
|
|
383
|
-
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-
|
|
396
|
+
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-0a762eba.cjs.js'); }).then((m) => m.default)));
|
|
384
397
|
program.command("config:check").option(
|
|
385
398
|
"--package <name>",
|
|
386
399
|
"Only load config schema that applies to the given package"
|
|
387
400
|
).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(
|
|
388
401
|
"Validate that the given configuration loads and matches schema"
|
|
389
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-
|
|
402
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-6e7df086.cjs.js'); }).then((m) => m.default)));
|
|
390
403
|
program.command("config:schema").option(
|
|
391
404
|
"--package <name>",
|
|
392
405
|
"Only output config schema that applies to the given package"
|
|
393
406
|
).option(
|
|
394
407
|
"--format <format>",
|
|
395
408
|
"Format to print the schema in, either json or yaml [yaml]"
|
|
396
|
-
).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-
|
|
409
|
+
).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-df053149.cjs.js'); }).then((m) => m.default)));
|
|
397
410
|
registerRepoCommand(program);
|
|
398
411
|
registerScriptCommand(program);
|
|
399
412
|
registerMigrateCommand(program);
|
|
@@ -404,16 +417,16 @@ function registerCommands(program) {
|
|
|
404
417
|
"--release <version|next|main>",
|
|
405
418
|
"Bump to a specific Backstage release line or version",
|
|
406
419
|
"main"
|
|
407
|
-
).description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-
|
|
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-
|
|
409
|
-
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
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-
|
|
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-
|
|
412
|
-
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-
|
|
420
|
+
).description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-233971f4.cjs.js'); }).then((m) => m.default)));
|
|
421
|
+
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-3a772347.cjs.js'); }).then((m) => m.default)));
|
|
422
|
+
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-04b9c3da.cjs.js'); }).then((m) => m.default)));
|
|
423
|
+
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-ae6d11ad.cjs.js'); }).then((m) => m.default)));
|
|
424
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-ab294f1b.cjs.js'); }).then((m) => m.default)));
|
|
425
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-05d5f8e8.cjs.js'); }).then((m) => m.default)));
|
|
413
426
|
program.command("install [plugin-id]", { hidden: true }).option(
|
|
414
427
|
"--from <packageJsonFilePath>",
|
|
415
428
|
"Install from a local package.json containing the installation recipe"
|
|
416
|
-
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-
|
|
429
|
+
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-bcc3993e.cjs.js'); }).then((m) => m.default)));
|
|
417
430
|
}
|
|
418
431
|
function lazy(getActionFunc) {
|
|
419
432
|
return async (...args) => {
|
|
@@ -457,4 +470,4 @@ exports.devDependencies = devDependencies;
|
|
|
457
470
|
exports.paths = paths;
|
|
458
471
|
exports.version = version;
|
|
459
472
|
exports.version$1 = version$9;
|
|
460
|
-
//# sourceMappingURL=index-
|
|
473
|
+
//# sourceMappingURL=index-a0c84dfe.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-a0c84dfe.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-ab294f1b.cjs.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-a0c84dfe.cjs.js');
|
|
4
4
|
var os = require('os');
|
|
5
|
-
var run = require('./run-
|
|
6
|
-
var Lockfile = require('./Lockfile-
|
|
5
|
+
var run = require('./run-4d88b636.cjs.js');
|
|
6
|
+
var Lockfile = require('./Lockfile-6785964d.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-05d5f8e8.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-ca11689b.cjs.js');
|
|
8
|
+
var index = require('./index-a0c84dfe.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-4d88b636.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-bcc3993e.cjs.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Lockfile = require('./Lockfile-
|
|
3
|
+
var Lockfile = require('./Lockfile-6785964d.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-4d88b636.cjs.js');
|
|
9
|
+
var index = require('./index-a0c84dfe.cjs.js');
|
|
10
10
|
var partition = require('lodash/partition');
|
|
11
11
|
require('fs-extra');
|
|
12
12
|
require('semver');
|
|
@@ -105,4 +105,4 @@ function logArray(arr, header, each) {
|
|
|
105
105
|
exports["default"] = lint;
|
|
106
106
|
exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
|
|
107
107
|
exports.includedFilter = includedFilter;
|
|
108
|
-
//# sourceMappingURL=lint-
|
|
108
|
+
//# sourceMappingURL=lint-3a772347.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-c010b470.cjs.js');
|
|
6
6
|
var parallel = require('./parallel-a8f6219c.cjs.js');
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-a0c84dfe.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-ab2bafa4.cjs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-a0c84dfe.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-be221814.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-a0c84dfe.cjs.js');
|
|
7
|
+
var PackageGraph = require('./PackageGraph-c010b470.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-e8947967.cjs.js.map
|
|
@@ -7,13 +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-
|
|
12
|
-
var Lockfile = require('./Lockfile-
|
|
10
|
+
var index = require('./index-a0c84dfe.cjs.js');
|
|
11
|
+
var tasks = require('./tasks-6a14164e.cjs.js');
|
|
12
|
+
var Lockfile = require('./Lockfile-6785964d.cjs.js');
|
|
13
13
|
require('minimatch');
|
|
14
14
|
require('@manypkg/get-packages');
|
|
15
15
|
require('./yarn-6cd89e16.cjs.js');
|
|
16
|
-
require('./run-
|
|
16
|
+
require('./run-4d88b636.cjs.js');
|
|
17
17
|
var partition = require('lodash/partition');
|
|
18
18
|
var errors = require('@backstage/errors');
|
|
19
19
|
require('commander');
|
|
@@ -523,4 +523,4 @@ var _new = async (opts) => {
|
|
|
523
523
|
};
|
|
524
524
|
|
|
525
525
|
exports["default"] = _new;
|
|
526
|
-
//# sourceMappingURL=new-
|
|
526
|
+
//# sourceMappingURL=new-980110f9.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-a0c84dfe.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-f4977c5b.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-c010b470.cjs.js');
|
|
6
|
+
var run = require('./run-4d88b636.cjs.js');
|
|
7
7
|
require('@manypkg/get-packages');
|
|
8
|
-
require('./index-
|
|
8
|
+
require('./index-a0c84dfe.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-37c9efdb.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-a0c84dfe.cjs.js');
|
|
7
|
+
var packageRoles = require('./packageRoles-fe1041b2.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-f7f8bddb.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-a0c84dfe.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-fe1041b2.cjs.js.map
|