@backstage/cli 0.0.0-nightly-20220206022752 → 0.0.0-nightly-20220210021913
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 +37 -1
- package/config/eslint.backend.js +1 -12
- package/config/eslint.js +6 -17
- package/dist/cjs/{PackageGraph-d4de8edb.cjs.js → PackageGraph-037c8141.cjs.js} +2 -2
- package/dist/cjs/{backend-719c2822.cjs.js → backend-de438e4f.cjs.js} +2 -2
- package/dist/cjs/build-2ae55a83.cjs.js +173 -0
- package/dist/cjs/{build-1cd37589.cjs.js → build-30f91ce3.cjs.js} +7 -3
- package/dist/cjs/{build-d009416c.cjs.js → build-a3b2f18f.cjs.js} +7 -3
- package/dist/cjs/{build-1b1bf443.cjs.js → build-f4997ac0.cjs.js} +9 -9
- package/dist/cjs/buildBackend-5879cc73.cjs.js +83 -0
- package/dist/cjs/buildWorkspace-8f3d6f2b.cjs.js +54 -0
- package/dist/cjs/bump-7dee7783.cjs.js +302 -0
- package/dist/cjs/{bundle-3ef159bf.cjs.js → bundle-2aab244e.cjs.js} +2 -2
- package/dist/cjs/{bundle-dd1e92df.cjs.js → bundle-430e6de0.cjs.js} +15 -10
- package/dist/cjs/{clean-ea76975c.cjs.js → clean-ece72b46.cjs.js} +2 -2
- package/dist/cjs/{config-408a7411.cjs.js → config-d9373cd3.cjs.js} +3 -3
- package/dist/cjs/{create-5c143918.cjs.js → create-4ff6ef42.cjs.js} +4 -4
- package/dist/cjs/createDistWorkspace-6f82b4d8.cjs.js +205 -0
- package/dist/cjs/{createPlugin-2bed9dce.cjs.js → createPlugin-e85cd094.cjs.js} +4 -4
- package/dist/cjs/{dev-c2d8cee7.cjs.js → dev-94d44222.cjs.js} +5 -5
- package/dist/cjs/{diff-d47e0b30.cjs.js → diff-de03fd44.cjs.js} +4 -8
- package/dist/cjs/{docs-fc11f8e4.cjs.js → docs-f4446810.cjs.js} +4 -4
- package/dist/cjs/{index-660c1d58.cjs.js → index-3c75b61e.cjs.js} +2 -2
- package/dist/cjs/{index-1d7d9753.cjs.js → index-e7c63adb.cjs.js} +10 -10
- package/dist/cjs/{index-7b41cfd7.cjs.js → index-eba7b53e.cjs.js} +54 -45
- package/dist/cjs/index-fe3eb0cd.cjs.js +94 -0
- package/dist/cjs/{info-6303900f.cjs.js → info-82bde52a.cjs.js} +3 -3
- package/dist/cjs/{install-dd637047.cjs.js → install-3287798b.cjs.js} +4 -4
- package/dist/cjs/lint-19b8e0e6.cjs.js +35 -0
- package/dist/cjs/{lint-c5d9e83e.cjs.js → lint-e651097e.cjs.js} +3 -3
- package/dist/cjs/{oldBuild-e884ca07.cjs.js → oldBuild-fcaf9841.cjs.js} +7 -3
- package/dist/cjs/{pack-106204a6.cjs.js → pack-668195f9.cjs.js} +2 -2
- package/dist/cjs/{packageRole-0fe1e676.cjs.js → packageRole-7dae1503.cjs.js} +3 -3
- package/dist/cjs/{packageRoles-f539d8b4.cjs.js → packageRoles-ee7316be.cjs.js} +2 -2
- package/dist/cjs/{packageScripts-fd7867c3.cjs.js → packageScripts-4d82f959.cjs.js} +4 -4
- package/dist/cjs/{packager-cf4da5bb.cjs.js → packager-94359aa1.cjs.js} +181 -74
- package/dist/cjs/{packages-fb9b7f66.cjs.js → packages-41d5c9a7.cjs.js} +3 -3
- package/dist/cjs/parallel-e73a4058.cjs.js +48 -0
- package/dist/cjs/{paths-5b87431a.cjs.js → paths-95ca4888.cjs.js} +17 -17
- package/dist/cjs/{print-efd3f6f8.cjs.js → print-f971a723.cjs.js} +4 -4
- package/dist/cjs/{run-bef8d727.cjs.js → run-4168a163.cjs.js} +2 -2
- package/dist/cjs/{schema-fe8d1386.cjs.js → schema-cbe1a9de.cjs.js} +4 -4
- package/dist/cjs/{serve-ff52e897.cjs.js → serve-4da35796.cjs.js} +7 -7
- package/dist/cjs/{serve-e473798d.cjs.js → serve-c99b3e3d.cjs.js} +8 -8
- package/dist/cjs/{server-6bc3d0ec.cjs.js → server-79ba62c8.cjs.js} +2 -2
- package/dist/cjs/{tasks-c6b6adc2.cjs.js → tasks-431317c6.cjs.js} +2 -2
- package/dist/cjs/{testCommand-05157aae.cjs.js → testCommand-26442c22.cjs.js} +3 -3
- package/dist/cjs/{validate-5179c48a.cjs.js → validate-0018283b.cjs.js} +4 -4
- package/dist/index.cjs.js +1 -1
- package/package.json +9 -5
- package/dist/cjs/buildWorkspace-baa8edf1.cjs.js +0 -35
- package/dist/cjs/bump-12d14eb0.cjs.js +0 -240
- package/dist/cjs/index-7700c7ac.cjs.js +0 -137
- package/dist/cjs/index-cbceb788.cjs.js +0 -106
- package/dist/cjs/lint-68c158ac.cjs.js +0 -29
- package/dist/cjs/parallel-7e32a8d0.cjs.js +0 -25
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
|
-
var index = require('./index-
|
|
5
|
-
var backend = require('./backend-
|
|
4
|
+
var index = require('./index-eba7b53e.cjs.js');
|
|
5
|
+
var backend = require('./backend-de438e4f.cjs.js');
|
|
6
6
|
require('commander');
|
|
7
7
|
require('chalk');
|
|
8
8
|
require('semver');
|
|
@@ -10,7 +10,7 @@ require('@backstage/cli-common');
|
|
|
10
10
|
require('@backstage/config/package.json');
|
|
11
11
|
require('@backstage/errors');
|
|
12
12
|
require('webpack');
|
|
13
|
-
require('./paths-
|
|
13
|
+
require('./paths-95ca4888.cjs.js');
|
|
14
14
|
require('path');
|
|
15
15
|
require('fork-ts-checker-webpack-plugin');
|
|
16
16
|
require('html-webpack-plugin');
|
|
@@ -20,7 +20,7 @@ require('webpack-node-externals');
|
|
|
20
20
|
require('@manypkg/get-packages');
|
|
21
21
|
require('mini-css-extract-plugin');
|
|
22
22
|
require('./svgrTemplate-f19e974c.cjs.js');
|
|
23
|
-
require('./run-
|
|
23
|
+
require('./run-4168a163.cjs.js');
|
|
24
24
|
require('child_process');
|
|
25
25
|
require('util');
|
|
26
26
|
require('eslint-webpack-plugin');
|
|
@@ -42,4 +42,4 @@ var dev = async (cmd) => {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
exports["default"] = dev;
|
|
45
|
-
//# sourceMappingURL=dev-
|
|
45
|
+
//# sourceMappingURL=dev-94d44222.cjs.js.map
|
|
@@ -7,7 +7,7 @@ var path = require('path');
|
|
|
7
7
|
var inquirer = require('inquirer');
|
|
8
8
|
var handlebars = require('handlebars');
|
|
9
9
|
var recursive = require('recursive-readdir');
|
|
10
|
-
var index = require('./index-
|
|
10
|
+
var index = require('./index-eba7b53e.cjs.js');
|
|
11
11
|
require('commander');
|
|
12
12
|
require('semver');
|
|
13
13
|
require('@backstage/cli-common');
|
|
@@ -326,15 +326,11 @@ const fileHandlers = [
|
|
|
326
326
|
handler: handlers.packageJson
|
|
327
327
|
},
|
|
328
328
|
{
|
|
329
|
-
patterns: ["
|
|
330
|
-
handler: handlers.skip
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
patterns: [".eslintrc.js", /^(src|dev)\/[^/]+$/],
|
|
329
|
+
patterns: [".eslintrc.js"],
|
|
334
330
|
handler: handlers.exists
|
|
335
331
|
},
|
|
336
332
|
{
|
|
337
|
-
patterns: ["README.md", "tsconfig.json", /^src\//],
|
|
333
|
+
patterns: ["README.md", "tsconfig.json", /^src\//, /^dev\//],
|
|
338
334
|
handler: handlers.skip
|
|
339
335
|
}
|
|
340
336
|
];
|
|
@@ -381,4 +377,4 @@ async function readPluginData() {
|
|
|
381
377
|
}
|
|
382
378
|
|
|
383
379
|
exports["default"] = diff;
|
|
384
|
-
//# sourceMappingURL=diff-
|
|
380
|
+
//# sourceMappingURL=diff-de03fd44.cjs.js.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var configLoader = require('@backstage/config-loader');
|
|
4
4
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
5
|
-
var config = require('./config-
|
|
5
|
+
var config = require('./config-d9373cd3.cjs.js');
|
|
6
6
|
require('@backstage/config');
|
|
7
|
-
require('./index-
|
|
7
|
+
require('./index-eba7b53e.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('fs-extra');
|
|
@@ -13,7 +13,7 @@ require('@backstage/cli-common');
|
|
|
13
13
|
require('@backstage/config/package.json');
|
|
14
14
|
require('@backstage/errors');
|
|
15
15
|
require('@manypkg/get-packages');
|
|
16
|
-
require('./PackageGraph-
|
|
16
|
+
require('./PackageGraph-037c8141.cjs.js');
|
|
17
17
|
|
|
18
18
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
19
|
|
|
@@ -31,4 +31,4 @@ var docs = async (cmd) => {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
exports["default"] = docs;
|
|
34
|
-
//# sourceMappingURL=docs-
|
|
34
|
+
//# sourceMappingURL=docs-f4446810.cjs.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
4
|
var chalk = require('chalk');
|
|
5
5
|
var yaml = require('yaml');
|
|
6
|
-
var index$1 = require('./index-
|
|
6
|
+
var index$1 = require('./index-eba7b53e.cjs.js');
|
|
7
7
|
var crypto = require('crypto');
|
|
8
8
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
9
9
|
var request = require('@octokit/request');
|
|
@@ -128,4 +128,4 @@ ${yaml.stringify(config)}`;
|
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
exports["default"] = index;
|
|
131
|
-
//# sourceMappingURL=index-
|
|
131
|
+
//# sourceMappingURL=index-3c75b61e.cjs.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
|
-
var index = require('./index-
|
|
5
|
-
var backend = require('./backend-
|
|
4
|
+
var index = require('./index-eba7b53e.cjs.js');
|
|
5
|
+
var backend = require('./backend-de438e4f.cjs.js');
|
|
6
6
|
require('yn');
|
|
7
7
|
require('path');
|
|
8
8
|
require('webpack');
|
|
@@ -16,20 +16,20 @@ require('run-script-webpack-plugin');
|
|
|
16
16
|
require('webpack-node-externals');
|
|
17
17
|
require('@backstage/cli-common');
|
|
18
18
|
require('@manypkg/get-packages');
|
|
19
|
-
require('./paths-
|
|
19
|
+
require('./paths-95ca4888.cjs.js');
|
|
20
20
|
require('mini-css-extract-plugin');
|
|
21
|
-
require('./run-
|
|
21
|
+
require('./run-4168a163.cjs.js');
|
|
22
22
|
require('eslint-webpack-plugin');
|
|
23
23
|
require('lodash/pickBy');
|
|
24
24
|
require('webpack-dev-server');
|
|
25
25
|
require('react-dev-utils/openBrowser');
|
|
26
26
|
var uniq = require('lodash/uniq');
|
|
27
|
-
var server = require('./server-
|
|
28
|
-
var config = require('./config-
|
|
27
|
+
var server = require('./server-79ba62c8.cjs.js');
|
|
28
|
+
var config = require('./config-d9373cd3.cjs.js');
|
|
29
29
|
var Lockfile = require('./Lockfile-35661afa.cjs.js');
|
|
30
30
|
require('minimatch');
|
|
31
|
-
var lint = require('./lint-
|
|
32
|
-
var packageRoles = require('./packageRoles-
|
|
31
|
+
var lint = require('./lint-e651097e.cjs.js');
|
|
32
|
+
var packageRoles = require('./packageRoles-ee7316be.cjs.js');
|
|
33
33
|
require('commander');
|
|
34
34
|
require('semver');
|
|
35
35
|
require('@backstage/config/package.json');
|
|
@@ -39,7 +39,7 @@ require('child_process');
|
|
|
39
39
|
require('util');
|
|
40
40
|
require('@backstage/config-loader');
|
|
41
41
|
require('@backstage/config');
|
|
42
|
-
require('./PackageGraph-
|
|
42
|
+
require('./PackageGraph-037c8141.cjs.js');
|
|
43
43
|
require('@yarnpkg/lockfile');
|
|
44
44
|
require('lodash/partition');
|
|
45
45
|
require('zod');
|
|
@@ -122,4 +122,4 @@ async function command(cmd) {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
exports.command = command;
|
|
125
|
-
//# sourceMappingURL=index-
|
|
125
|
+
//# sourceMappingURL=index-e7c63adb.cjs.js.map
|
|
@@ -46,14 +46,15 @@ class NotFoundError extends CustomError {
|
|
|
46
46
|
|
|
47
47
|
const paths = cliCommon.findPaths(__dirname);
|
|
48
48
|
|
|
49
|
-
var version$9 = "0.10.
|
|
49
|
+
var version$9 = "0.10.7-next.0";
|
|
50
50
|
|
|
51
|
-
var version$8 = "0.13.
|
|
51
|
+
var version$8 = "0.13.2-next.0";
|
|
52
52
|
var dependencies = {
|
|
53
53
|
"@backstage/cli-common": "^0.1.6",
|
|
54
54
|
"@backstage/config": "^0.1.13",
|
|
55
55
|
"@backstage/config-loader": "^0.9.3",
|
|
56
56
|
"@backstage/errors": "^0.2.0",
|
|
57
|
+
"@backstage/release-manifests": "^0.0.0",
|
|
57
58
|
"@backstage/types": "^0.1.1",
|
|
58
59
|
"@hot-loader/react-dom": "^16.13.0",
|
|
59
60
|
"@manypkg/get-packages": "^1.1.3",
|
|
@@ -108,6 +109,7 @@ var dependencies = {
|
|
|
108
109
|
lodash: "^4.17.21",
|
|
109
110
|
minimatch: "3.0.4",
|
|
110
111
|
"mini-css-extract-plugin": "^2.4.2",
|
|
112
|
+
"npm-packlist": "^3.0.0",
|
|
111
113
|
"node-libs-browser": "^2.2.1",
|
|
112
114
|
ora: "^5.3.0",
|
|
113
115
|
postcss: "^8.1.0",
|
|
@@ -138,12 +140,12 @@ var dependencies = {
|
|
|
138
140
|
zod: "^3.11.6"
|
|
139
141
|
};
|
|
140
142
|
var devDependencies = {
|
|
141
|
-
"@backstage/backend-common": "^0.10.
|
|
143
|
+
"@backstage/backend-common": "^0.10.7-next.0",
|
|
142
144
|
"@backstage/config": "^0.1.13",
|
|
143
|
-
"@backstage/core-components": "^0.8.
|
|
145
|
+
"@backstage/core-components": "^0.8.8-next.0",
|
|
144
146
|
"@backstage/core-plugin-api": "^0.6.0",
|
|
145
147
|
"@backstage/core-app-api": "^0.5.2",
|
|
146
|
-
"@backstage/dev-utils": "^0.2.
|
|
148
|
+
"@backstage/dev-utils": "^0.2.21-next.0",
|
|
147
149
|
"@backstage/test-utils": "^0.2.4",
|
|
148
150
|
"@backstage/theme": "^0.2.14",
|
|
149
151
|
"@types/diff": "^5.0.0",
|
|
@@ -154,6 +156,7 @@ var devDependencies = {
|
|
|
154
156
|
"@types/minimatch": "^3.0.5",
|
|
155
157
|
"@types/mock-fs": "^4.13.0",
|
|
156
158
|
"@types/node": "^14.14.32",
|
|
159
|
+
"@types/npm-packlist": "^1.1.2",
|
|
157
160
|
"@types/recursive-readdir": "^2.2.0",
|
|
158
161
|
"@types/rollup-plugin-peer-deps-external": "^2.2.0",
|
|
159
162
|
"@types/rollup-plugin-postcss": "^2.0.0",
|
|
@@ -163,22 +166,23 @@ var devDependencies = {
|
|
|
163
166
|
del: "^6.0.0",
|
|
164
167
|
"mock-fs": "^5.1.0",
|
|
165
168
|
nodemon: "^2.0.2",
|
|
166
|
-
"ts-node": "^10.0.0"
|
|
169
|
+
"ts-node": "^10.0.0",
|
|
170
|
+
msw: "^0.35.0"
|
|
167
171
|
};
|
|
168
172
|
|
|
169
173
|
var version$7 = "0.5.2";
|
|
170
174
|
|
|
171
|
-
var version$6 = "0.8.
|
|
175
|
+
var version$6 = "0.8.8-next.0";
|
|
172
176
|
|
|
173
177
|
var version$5 = "0.6.0";
|
|
174
178
|
|
|
175
|
-
var version$4 = "0.2.
|
|
179
|
+
var version$4 = "0.2.21-next.0";
|
|
176
180
|
|
|
177
181
|
var version$3 = "0.2.4";
|
|
178
182
|
|
|
179
183
|
var version$2 = "0.2.14";
|
|
180
184
|
|
|
181
|
-
var version$1 = "0.15.
|
|
185
|
+
var version$1 = "0.15.24-next.0";
|
|
182
186
|
|
|
183
187
|
const packageVersions = {
|
|
184
188
|
"@backstage/backend-common": version$9,
|
|
@@ -231,50 +235,55 @@ const configOption = [
|
|
|
231
235
|
(opt, opts) => [...opts, opt],
|
|
232
236
|
Array()
|
|
233
237
|
];
|
|
238
|
+
function registerRepoCommand(program) {
|
|
239
|
+
const command = program.command("repo [command]", { hidden: true }).description("Command that run across an entire Backstage project [EXPERIMENTAL]");
|
|
240
|
+
command.command("build").description("Build packages in the project, excluding bundled app and backend packages.").option("--all", "Build all packages, including bundled app and backend packages.").action(lazy(() => Promise.resolve().then(function () { return require('./build-2ae55a83.cjs.js'); }).then((m) => m.command)));
|
|
241
|
+
}
|
|
234
242
|
function registerScriptCommand(program) {
|
|
235
243
|
const command = program.command("script [command]", { hidden: true }).description("Lifecycle scripts for Backstage packages [EXPERIMENTAL]");
|
|
236
|
-
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("--inspect-brk", "Enable debugger in Node.js environments, breaking before code starts").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
237
|
-
command.command("build").description("Build a package for production deployment or publishing").option("--minify", "Minify the generated code. Does not apply to app or backend packages.").option("--experimental-type-build", "Enable experimental type build. Does not apply to app or backend packages.").option("--skip-build-dependencies", "Skip the automatic building of local dependencies. Applies to backend packages only.").option("--stats", "If bundle stats are available, write them to the output directory. Applies to app packages only.").option("--config <path>", "Config files to load instead of app-config.yaml. Applies to app packages only.", (opt, opts) => [...opts, opt], Array()).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
238
|
-
program.command("lint").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
239
|
-
program.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('./testCommand-
|
|
240
|
-
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
241
|
-
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
242
|
-
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
244
|
+
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("--inspect-brk", "Enable debugger in Node.js environments, breaking before code starts").action(lazy(() => Promise.resolve().then(function () { return require('./index-e7c63adb.cjs.js'); }).then((m) => m.command)));
|
|
245
|
+
command.command("build").description("Build a package for production deployment or publishing").option("--minify", "Minify the generated code. Does not apply to app or backend packages.").option("--experimental-type-build", "Enable experimental type build. Does not apply to app or backend packages.").option("--skip-build-dependencies", "Skip the automatic building of local dependencies. Applies to backend packages only.").option("--stats", "If bundle stats are available, write them to the output directory. Applies to app packages only.").option("--config <path>", "Config files to load instead of app-config.yaml. Applies to app packages only.", (opt, opts) => [...opts, opt], Array()).action(lazy(() => Promise.resolve().then(function () { return require('./index-fe3eb0cd.cjs.js'); }).then((m) => m.command)));
|
|
246
|
+
program.command("lint").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-19b8e0e6.cjs.js'); }).then((m) => m.default)));
|
|
247
|
+
program.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('./testCommand-26442c22.cjs.js'); }).then((m) => m.default)));
|
|
248
|
+
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-ece72b46.cjs.js'); }).then((m) => m.default)));
|
|
249
|
+
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-668195f9.cjs.js'); }).then((m) => m.pre)));
|
|
250
|
+
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-668195f9.cjs.js'); }).then((m) => m.post)));
|
|
243
251
|
}
|
|
244
252
|
function registerMigrateCommand(program) {
|
|
245
253
|
const command = program.command("migrate [command]", { hidden: true }).description("Migration utilities [EXPERIMENTAL]");
|
|
246
|
-
command.command("package-role").description(`Add package role field to packages that don't have it`).action(lazy(() => Promise.resolve().then(function () { return require('./packageRole-
|
|
247
|
-
command.command("package-scripts").description("Set package scripts according to each package role").action(lazy(() => Promise.resolve().then(function () { return require('./packageScripts-
|
|
254
|
+
command.command("package-role").description(`Add package role field to packages that don't have it`).action(lazy(() => Promise.resolve().then(function () { return require('./packageRole-7dae1503.cjs.js'); }).then((m) => m.default)));
|
|
255
|
+
command.command("package-scripts").description("Set package scripts according to each package role").action(lazy(() => Promise.resolve().then(function () { return require('./packageScripts-4d82f959.cjs.js'); }).then((m) => m.command)));
|
|
248
256
|
}
|
|
249
257
|
function registerCommands(program) {
|
|
250
|
-
program.command("app:build").description("Build an app for a production release").option("--stats", "Write bundle stats to output directory").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
251
|
-
program.command("app:serve").description("Serve an app for local development").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-
|
|
252
|
-
program.command("backend:build").description("Build a backend plugin").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
253
|
-
program.command("backend:bundle").description("Bundle the backend into a deployment archive").option("--build-dependencies", "Build all local package dependencies before bundling the backend").action(lazy(() => Promise.resolve().then(function () { return require('./bundle-
|
|
254
|
-
program.command("backend:dev").description("Start local development server with HMR for the backend").option("--check", "Enable type checking and linting").option("--inspect", "Enable debugger").option("--inspect-brk", "Enable debugger with await to attach debugger").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./dev-
|
|
255
|
-
program.command("create").storeOptionsAsProperties(false).description("Open up an interactive guide to creating new things in your app").option("--select <name>", "Select the thing you want to be creating upfront").option("--option <name>=<value>", "Pre-fill options for the creation process", (opt, arr) => [...arr, opt], []).option("--scope <scope>", "The scope to use for new packages").option("--npm-registry <URL>", "The package registry to use for new packages").option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./create-
|
|
256
|
-
program.command("create-plugin").option("--backend", "Create plugin with the backend dependencies as default").description("Creates a new plugin in the current repository").option("--scope <scope>", "npm scope").option("--npm-registry <URL>", "npm registry URL").option("--no-private", "Public npm package").action(lazy(() => Promise.resolve().then(function () { return require('./createPlugin-
|
|
257
|
-
program.command("plugin:build").description("Build a plugin").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
258
|
-
program.command("plugin:serve").description("Serves the dev/ folder of a plugin").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-
|
|
259
|
-
program.command("plugin:diff").option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description("Diff an existing plugin with the creation template").action(lazy(() => Promise.resolve().then(function () { return require('./diff-
|
|
260
|
-
program.command("build").description("Build a package for publishing").option("--outputs <formats>", "List of formats to output [types,cjs,esm]").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./oldBuild-
|
|
261
|
-
program.command("lint").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
262
|
-
program.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('./testCommand-
|
|
263
|
-
program.command("config:docs").option("--package <name>", "Only include the schema that applies to the given package").description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-
|
|
264
|
-
program.command("config:print").option("--package <name>", "Only load config schema that applies to the given package").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("--format <format>", "Format to print the configuration in, either json or yaml [yaml]").option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-
|
|
265
|
-
program.command("config:check").option("--package <name>", "Only load config schema that applies to the given package").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("Validate that the given configuration loads and matches schema").action(lazy(() => Promise.resolve().then(function () { return require('./validate-
|
|
266
|
-
program.command("config:schema").option("--package <name>", "Only output config schema that applies to the given package").option("--format <format>", "Format to print the schema in, either json or yaml [yaml]").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-
|
|
258
|
+
program.command("app:build").description("Build an app for a production release").option("--stats", "Write bundle stats to output directory").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./build-f4997ac0.cjs.js'); }).then((m) => m.default)));
|
|
259
|
+
program.command("app:serve").description("Serve an app for local development").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-c99b3e3d.cjs.js'); }).then((m) => m.default)));
|
|
260
|
+
program.command("backend:build").description("Build a backend plugin").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./build-a3b2f18f.cjs.js'); }).then((m) => m.default)));
|
|
261
|
+
program.command("backend:bundle").description("Bundle the backend into a deployment archive").option("--build-dependencies", "Build all local package dependencies before bundling the backend").action(lazy(() => Promise.resolve().then(function () { return require('./bundle-430e6de0.cjs.js'); }).then((m) => m.default)));
|
|
262
|
+
program.command("backend:dev").description("Start local development server with HMR for the backend").option("--check", "Enable type checking and linting").option("--inspect", "Enable debugger").option("--inspect-brk", "Enable debugger with await to attach debugger").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./dev-94d44222.cjs.js'); }).then((m) => m.default)));
|
|
263
|
+
program.command("create").storeOptionsAsProperties(false).description("Open up an interactive guide to creating new things in your app").option("--select <name>", "Select the thing you want to be creating upfront").option("--option <name>=<value>", "Pre-fill options for the creation process", (opt, arr) => [...arr, opt], []).option("--scope <scope>", "The scope to use for new packages").option("--npm-registry <URL>", "The package registry to use for new packages").option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./create-4ff6ef42.cjs.js'); }).then((m) => m.default)));
|
|
264
|
+
program.command("create-plugin").option("--backend", "Create plugin with the backend dependencies as default").description("Creates a new plugin in the current repository").option("--scope <scope>", "npm scope").option("--npm-registry <URL>", "npm registry URL").option("--no-private", "Public npm package").action(lazy(() => Promise.resolve().then(function () { return require('./createPlugin-e85cd094.cjs.js'); }).then((m) => m.default)));
|
|
265
|
+
program.command("plugin:build").description("Build a plugin").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./build-30f91ce3.cjs.js'); }).then((m) => m.default)));
|
|
266
|
+
program.command("plugin:serve").description("Serves the dev/ folder of a plugin").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-4da35796.cjs.js'); }).then((m) => m.default)));
|
|
267
|
+
program.command("plugin:diff").option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description("Diff an existing plugin with the creation template").action(lazy(() => Promise.resolve().then(function () { return require('./diff-de03fd44.cjs.js'); }).then((m) => m.default)));
|
|
268
|
+
program.command("build").description("Build a package for publishing").option("--outputs <formats>", "List of formats to output [types,cjs,esm]").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./oldBuild-fcaf9841.cjs.js'); }).then((m) => m.default)));
|
|
269
|
+
program.command("lint").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-19b8e0e6.cjs.js'); }).then((m) => m.default)));
|
|
270
|
+
program.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('./testCommand-26442c22.cjs.js'); }).then((m) => m.default)));
|
|
271
|
+
program.command("config:docs").option("--package <name>", "Only include the schema that applies to the given package").description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-f4446810.cjs.js'); }).then((m) => m.default)));
|
|
272
|
+
program.command("config:print").option("--package <name>", "Only load config schema that applies to the given package").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("--format <format>", "Format to print the configuration in, either json or yaml [yaml]").option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-f971a723.cjs.js'); }).then((m) => m.default)));
|
|
273
|
+
program.command("config:check").option("--package <name>", "Only load config schema that applies to the given package").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("Validate that the given configuration loads and matches schema").action(lazy(() => Promise.resolve().then(function () { return require('./validate-0018283b.cjs.js'); }).then((m) => m.default)));
|
|
274
|
+
program.command("config:schema").option("--package <name>", "Only output config schema that applies to the given package").option("--format <format>", "Format to print the schema in, either json or yaml [yaml]").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-cbe1a9de.cjs.js'); }).then((m) => m.default)));
|
|
275
|
+
registerRepoCommand(program);
|
|
267
276
|
registerScriptCommand(program);
|
|
268
277
|
registerMigrateCommand(program);
|
|
269
|
-
program.command("versions:bump").option("--pattern <glob>", "Override glob for matching packages to upgrade").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-
|
|
270
|
-
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-
|
|
271
|
-
program.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
272
|
-
program.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
273
|
-
program.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
274
|
-
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-
|
|
275
|
-
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
276
|
-
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-
|
|
277
|
-
program.command("install [plugin-id]", { hidden: true }).option("--from <packageJsonFilePath>", "Install from a local package.json containing the installation recipe").description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-
|
|
278
|
+
program.command("versions:bump").option("--pattern <glob>", "Override glob for matching packages to upgrade").option("--release <version|next|main>", "Bump to a specific Backstage release line or version", "main").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-7dee7783.cjs.js'); }).then((m) => m.default)));
|
|
279
|
+
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-e651097e.cjs.js'); }).then((m) => m.default)));
|
|
280
|
+
program.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-668195f9.cjs.js'); }).then((m) => m.pre)));
|
|
281
|
+
program.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-668195f9.cjs.js'); }).then((m) => m.post)));
|
|
282
|
+
program.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-ece72b46.cjs.js'); }).then((m) => m.default)));
|
|
283
|
+
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-8f3d6f2b.cjs.js'); }).then((m) => m.default)));
|
|
284
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-3c75b61e.cjs.js'); }).then((m) => m.default)));
|
|
285
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-82bde52a.cjs.js'); }).then((m) => m.default)));
|
|
286
|
+
program.command("install [plugin-id]", { hidden: true }).option("--from <packageJsonFilePath>", "Install from a local package.json containing the installation recipe").description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-3287798b.cjs.js'); }).then((m) => m.default)));
|
|
278
287
|
}
|
|
279
288
|
function lazy(getActionFunc) {
|
|
280
289
|
return async (...args) => {
|
|
@@ -318,4 +327,4 @@ exports.devDependencies = devDependencies;
|
|
|
318
327
|
exports.paths = paths;
|
|
319
328
|
exports.version = version;
|
|
320
329
|
exports.version$1 = version$8;
|
|
321
|
-
//# sourceMappingURL=index-
|
|
330
|
+
//# sourceMappingURL=index-eba7b53e.cjs.js.map
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var packager = require('./packager-94359aa1.cjs.js');
|
|
4
|
+
var packageRoles = require('./packageRoles-ee7316be.cjs.js');
|
|
5
|
+
var index = require('./index-eba7b53e.cjs.js');
|
|
6
|
+
var buildBackend = require('./buildBackend-5879cc73.cjs.js');
|
|
7
|
+
require('fs-extra');
|
|
8
|
+
require('rollup');
|
|
9
|
+
require('chalk');
|
|
10
|
+
require('path');
|
|
11
|
+
require('rollup-plugin-peer-deps-external');
|
|
12
|
+
require('@rollup/plugin-commonjs');
|
|
13
|
+
require('@rollup/plugin-node-resolve');
|
|
14
|
+
require('rollup-plugin-postcss');
|
|
15
|
+
require('rollup-plugin-esbuild');
|
|
16
|
+
require('@svgr/rollup');
|
|
17
|
+
require('rollup-plugin-dts');
|
|
18
|
+
require('@rollup/plugin-json');
|
|
19
|
+
require('@rollup/plugin-yaml');
|
|
20
|
+
require('rollup-pluginutils');
|
|
21
|
+
require('./svgrTemplate-f19e974c.cjs.js');
|
|
22
|
+
require('worker_threads');
|
|
23
|
+
require('./parallel-e73a4058.cjs.js');
|
|
24
|
+
require('zod');
|
|
25
|
+
require('commander');
|
|
26
|
+
require('semver');
|
|
27
|
+
require('@backstage/cli-common');
|
|
28
|
+
require('@backstage/config/package.json');
|
|
29
|
+
require('@backstage/errors');
|
|
30
|
+
require('webpack');
|
|
31
|
+
require('fork-ts-checker-webpack-plugin');
|
|
32
|
+
require('html-webpack-plugin');
|
|
33
|
+
require('react-dev-utils/ModuleScopePlugin');
|
|
34
|
+
require('run-script-webpack-plugin');
|
|
35
|
+
require('webpack-node-externals');
|
|
36
|
+
require('@manypkg/get-packages');
|
|
37
|
+
require('./paths-95ca4888.cjs.js');
|
|
38
|
+
require('mini-css-extract-plugin');
|
|
39
|
+
require('./run-4168a163.cjs.js');
|
|
40
|
+
require('child_process');
|
|
41
|
+
require('util');
|
|
42
|
+
require('eslint-webpack-plugin');
|
|
43
|
+
require('lodash/pickBy');
|
|
44
|
+
require('./bundle-2aab244e.cjs.js');
|
|
45
|
+
require('yn');
|
|
46
|
+
require('react-dev-utils/FileSizeReporter');
|
|
47
|
+
require('react-dev-utils/formatWebpackMessages');
|
|
48
|
+
require('webpack-dev-server');
|
|
49
|
+
require('react-dev-utils/openBrowser');
|
|
50
|
+
require('./config-d9373cd3.cjs.js');
|
|
51
|
+
require('@backstage/config-loader');
|
|
52
|
+
require('@backstage/config');
|
|
53
|
+
require('./PackageGraph-037c8141.cjs.js');
|
|
54
|
+
require('os');
|
|
55
|
+
require('tar');
|
|
56
|
+
require('./createDistWorkspace-6f82b4d8.cjs.js');
|
|
57
|
+
require('lodash/partition');
|
|
58
|
+
require('npm-packlist');
|
|
59
|
+
|
|
60
|
+
async function command(cmd) {
|
|
61
|
+
const role = await packageRoles.findRoleFromCommand(cmd);
|
|
62
|
+
if (role === "app") {
|
|
63
|
+
return buildBackend.buildApp({
|
|
64
|
+
targetDir: index.paths.resolveTarget("dist"),
|
|
65
|
+
configPaths: cmd.config,
|
|
66
|
+
writeStats: Boolean(cmd.stats)
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
if (role === "backend") {
|
|
70
|
+
return buildBackend.buildBackend({
|
|
71
|
+
targetDir: index.paths.resolveTarget("dist"),
|
|
72
|
+
skipBuildDependencies: Boolean(cmd.skipBuildDependencies)
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
const roleInfo = packageRoles.getRoleInfo(role);
|
|
76
|
+
const outputs = /* @__PURE__ */ new Set();
|
|
77
|
+
if (roleInfo.output.includes("cjs")) {
|
|
78
|
+
outputs.add(packager.Output.cjs);
|
|
79
|
+
}
|
|
80
|
+
if (roleInfo.output.includes("esm")) {
|
|
81
|
+
outputs.add(packager.Output.esm);
|
|
82
|
+
}
|
|
83
|
+
if (roleInfo.output.includes("types")) {
|
|
84
|
+
outputs.add(packager.Output.types);
|
|
85
|
+
}
|
|
86
|
+
return packager.buildPackage({
|
|
87
|
+
outputs,
|
|
88
|
+
minify: Boolean(cmd.minify),
|
|
89
|
+
useApiExtractor: Boolean(cmd.experimentalTypeBuild)
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
exports.command = command;
|
|
94
|
+
//# sourceMappingURL=index-fe3eb0cd.cjs.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-eba7b53e.cjs.js');
|
|
4
4
|
var os = require('os');
|
|
5
|
-
var run = require('./run-
|
|
5
|
+
var run = require('./run-4168a163.cjs.js');
|
|
6
6
|
var Lockfile = require('./Lockfile-35661afa.cjs.js');
|
|
7
7
|
require('minimatch');
|
|
8
8
|
require('@manypkg/get-packages');
|
|
@@ -43,4 +43,4 @@ var info = async () => {
|
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
exports["default"] = info;
|
|
46
|
-
//# sourceMappingURL=info-
|
|
46
|
+
//# sourceMappingURL=info-82bde52a.cjs.js.map
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
4
|
require('semver');
|
|
5
5
|
require('@yarnpkg/lockfile');
|
|
6
|
-
var packages = require('./packages-
|
|
7
|
-
var index = require('./index-
|
|
6
|
+
var packages = require('./packages-41d5c9a7.cjs.js');
|
|
7
|
+
var index = require('./index-eba7b53e.cjs.js');
|
|
8
8
|
var chalk = require('chalk');
|
|
9
9
|
var sortBy = require('lodash/sortBy');
|
|
10
10
|
var groupBy = require('lodash/groupBy');
|
|
11
|
-
var run = require('./run-
|
|
11
|
+
var run = require('./run-4168a163.cjs.js');
|
|
12
12
|
require('minimatch');
|
|
13
13
|
require('@manypkg/get-packages');
|
|
14
14
|
require('commander');
|
|
@@ -240,4 +240,4 @@ var install = async (pluginId, cmd) => {
|
|
|
240
240
|
};
|
|
241
241
|
|
|
242
242
|
exports["default"] = install;
|
|
243
|
-
//# sourceMappingURL=install-
|
|
243
|
+
//# sourceMappingURL=install-3287798b.cjs.js.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-eba7b53e.cjs.js');
|
|
4
|
+
var eslint = require('eslint');
|
|
5
|
+
require('commander');
|
|
6
|
+
require('chalk');
|
|
7
|
+
require('fs-extra');
|
|
8
|
+
require('semver');
|
|
9
|
+
require('@backstage/cli-common');
|
|
10
|
+
require('@backstage/config/package.json');
|
|
11
|
+
require('@backstage/errors');
|
|
12
|
+
|
|
13
|
+
var lint = async (cmd, cmdArgs) => {
|
|
14
|
+
const eslint$1 = new eslint.ESLint({
|
|
15
|
+
cwd: index.paths.targetDir,
|
|
16
|
+
fix: cmd.fix,
|
|
17
|
+
extensions: ["js", "jsx", "ts", "tsx", "mjs", "cjs"]
|
|
18
|
+
});
|
|
19
|
+
const results = await eslint$1.lintFiles(cmdArgs != null ? cmdArgs : ["."]);
|
|
20
|
+
if (cmd.fix) {
|
|
21
|
+
await eslint.ESLint.outputFixes(results);
|
|
22
|
+
}
|
|
23
|
+
const formatter = await eslint$1.loadFormatter(cmd.format);
|
|
24
|
+
if (cmd.format === "eslint-formatter-friendly") {
|
|
25
|
+
process.chdir(index.paths.targetRoot);
|
|
26
|
+
}
|
|
27
|
+
const resultText = formatter.format(results);
|
|
28
|
+
if (resultText) {
|
|
29
|
+
console.log(resultText);
|
|
30
|
+
process.exit(1);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
exports["default"] = lint;
|
|
35
|
+
//# sourceMappingURL=lint-19b8e0e6.cjs.js.map
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
var Lockfile = require('./Lockfile-35661afa.cjs.js');
|
|
4
4
|
require('minimatch');
|
|
5
5
|
require('@manypkg/get-packages');
|
|
6
|
-
require('./run-
|
|
6
|
+
require('./run-4168a163.cjs.js');
|
|
7
7
|
require('chalk');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-eba7b53e.cjs.js');
|
|
9
9
|
var partition = require('lodash/partition');
|
|
10
10
|
require('fs-extra');
|
|
11
11
|
require('semver');
|
|
@@ -76,4 +76,4 @@ function logArray(arr, header, each) {
|
|
|
76
76
|
exports["default"] = lint;
|
|
77
77
|
exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
|
|
78
78
|
exports.includedFilter = includedFilter;
|
|
79
|
-
//# sourceMappingURL=lint-
|
|
79
|
+
//# sourceMappingURL=lint-e651097e.cjs.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var packager = require('./packager-
|
|
3
|
+
var packager = require('./packager-94359aa1.cjs.js');
|
|
4
4
|
require('fs-extra');
|
|
5
5
|
require('rollup');
|
|
6
6
|
require('chalk');
|
|
7
7
|
require('path');
|
|
8
|
-
require('./index-
|
|
8
|
+
require('./index-eba7b53e.cjs.js');
|
|
9
9
|
require('commander');
|
|
10
10
|
require('semver');
|
|
11
11
|
require('@backstage/cli-common');
|
|
@@ -22,6 +22,10 @@ require('@rollup/plugin-json');
|
|
|
22
22
|
require('@rollup/plugin-yaml');
|
|
23
23
|
require('rollup-pluginutils');
|
|
24
24
|
require('./svgrTemplate-f19e974c.cjs.js');
|
|
25
|
+
require('worker_threads');
|
|
26
|
+
require('./packageRoles-ee7316be.cjs.js');
|
|
27
|
+
require('zod');
|
|
28
|
+
require('./parallel-e73a4058.cjs.js');
|
|
25
29
|
|
|
26
30
|
var oldBuild = async (cmd) => {
|
|
27
31
|
let outputs = /* @__PURE__ */ new Set();
|
|
@@ -45,4 +49,4 @@ var oldBuild = async (cmd) => {
|
|
|
45
49
|
};
|
|
46
50
|
|
|
47
51
|
exports["default"] = oldBuild;
|
|
48
|
-
//# sourceMappingURL=oldBuild-
|
|
52
|
+
//# sourceMappingURL=oldBuild-fcaf9841.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-eba7b53e.cjs.js');
|
|
5
5
|
var path = require('path');
|
|
6
6
|
require('commander');
|
|
7
7
|
require('chalk');
|
|
@@ -66,4 +66,4 @@ const post = async () => {
|
|
|
66
66
|
|
|
67
67
|
exports.post = post;
|
|
68
68
|
exports.pre = pre;
|
|
69
|
-
//# sourceMappingURL=pack-
|
|
69
|
+
//# sourceMappingURL=pack-668195f9.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-eba7b53e.cjs.js');
|
|
7
|
+
var packageRoles = require('./packageRoles-ee7316be.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('semver');
|
|
@@ -51,4 +51,4 @@ var packageRole = async () => {
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
exports["default"] = packageRole;
|
|
54
|
-
//# sourceMappingURL=packageRole-
|
|
54
|
+
//# sourceMappingURL=packageRole-7dae1503.cjs.js.map
|