@backstage/cli 0.15.1 → 0.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -0
- package/config/eslint-factory.js +286 -0
- package/config/eslint.backend.js +4 -87
- package/config/eslint.js +4 -93
- package/dist/cjs/{Lockfile-35661afa.cjs.js → Lockfile-276d1251.cjs.js} +1 -1
- package/dist/cjs/{PackageGraph-c403b5ba.cjs.js → PackageGraph-8c721cd8.cjs.js} +23 -5
- package/dist/cjs/{backend-96651fe4.cjs.js → backend-e620c4e3.cjs.js} +2 -2
- package/dist/cjs/{build-8b4ede1e.cjs.js → build-1f3eb1a1.cjs.js} +6 -8
- package/dist/cjs/{build-d5b1d23b.cjs.js → build-b5718f33.cjs.js} +20 -16
- package/dist/cjs/{build-7612765e.cjs.js → build-f5258a1d.cjs.js} +9 -10
- package/dist/cjs/{build-63ad510e.cjs.js → build-f6293d0e.cjs.js} +6 -8
- package/dist/cjs/{buildBackend-3c883d5a.cjs.js → buildBackend-30f14ca6.cjs.js} +9 -9
- package/dist/cjs/{buildWorkspace-f48879a3.cjs.js → buildWorkspace-bfbdbb34.cjs.js} +9 -11
- package/dist/cjs/{bump-d5154b31.cjs.js → bump-3cafb3d5.cjs.js} +7 -8
- package/dist/cjs/{bundle-14c7b995.cjs.js → bundle-03c7fcb6.cjs.js} +9 -11
- package/dist/cjs/{bundle-a85aadf3.cjs.js → bundle-b6e1a060.cjs.js} +2 -2
- package/dist/cjs/{clean-c345be5f.cjs.js → clean-41681199.cjs.js} +2 -3
- package/dist/cjs/{config-1850dcec.cjs.js → config-6855bc7c.cjs.js} +3 -3
- package/dist/cjs/{create-134d31c3.cjs.js → create-15683fe7.cjs.js} +5 -6
- package/dist/cjs/{createDistWorkspace-f7ad8679.cjs.js → createDistWorkspace-102edd6f.cjs.js} +6 -6
- package/dist/cjs/{createPlugin-d2ded2b8.cjs.js → createPlugin-233e27fc.cjs.js} +5 -6
- package/dist/cjs/{dev-2639a334.cjs.js → dev-532ce377.cjs.js} +6 -7
- package/dist/cjs/{diff-01358b78.cjs.js → diff-c874a4a8.cjs.js} +2 -3
- package/dist/cjs/{docs-8fa5e9d5.cjs.js → docs-266ef099.cjs.js} +4 -5
- package/dist/cjs/{index-9440126d.cjs.js → index-3d80f66f.cjs.js} +13 -15
- package/dist/cjs/{index-eb041be4.cjs.js → index-92bbf252.cjs.js} +12 -13
- package/dist/cjs/{index-25dc786c.cjs.js → index-b1654aef.cjs.js} +2 -3
- package/dist/cjs/{index-82dc75e2.cjs.js → index-f8ae642f.cjs.js} +60 -59
- package/dist/cjs/{info-760ca1f3.cjs.js → info-f540a399.cjs.js} +4 -5
- package/dist/cjs/{install-df5ba2ff.cjs.js → install-d6293025.cjs.js} +4 -5
- package/dist/cjs/{lint-12a2e869.cjs.js → lint-a3a1f76d.cjs.js} +4 -5
- package/dist/cjs/{lint-d7ceb0e6.cjs.js → lint-a880c4e8.cjs.js} +4 -5
- package/dist/cjs/{lint-6690e6b2.cjs.js → lint-d2f846b1.cjs.js} +2 -3
- package/dist/cjs/{oldBuild-5126399f.cjs.js → oldBuild-5032bf9a.cjs.js} +6 -8
- package/dist/cjs/{pack-dc7d56e4.cjs.js → pack-acb53064.cjs.js} +2 -3
- package/dist/cjs/packageLintConfigs-c83f7b1b.cjs.js +74 -0
- package/dist/cjs/{packageRole-e72fd97a.cjs.js → packageRole-134d32fb.cjs.js} +3 -4
- package/dist/cjs/{packageRoles-c39e0b3b.cjs.js → packageRoles-b29899e1.cjs.js} +2 -2
- package/dist/cjs/{packageScripts-88fcab41.cjs.js → packageScripts-494ce9c4.cjs.js} +4 -5
- package/dist/cjs/{packager-b06a8557.cjs.js → packager-4ab99705.cjs.js} +18 -12
- package/dist/cjs/{packages-72812461.cjs.js → packages-bcb27407.cjs.js} +3 -3
- package/dist/cjs/{parallel-d8e5bcbf.cjs.js → parallel-8286d3fa.cjs.js} +1 -1
- package/dist/cjs/{paths-4f873870.cjs.js → paths-5374b235.cjs.js} +5 -5
- package/dist/cjs/{print-57d4b62e.cjs.js → print-97169106.cjs.js} +4 -5
- package/dist/cjs/{run-2e82fb1f.cjs.js → run-049464be.cjs.js} +2 -2
- package/dist/cjs/{schema-41f244ae.cjs.js → schema-cd095759.cjs.js} +4 -5
- package/dist/cjs/{serve-2bb43537.cjs.js → serve-73172ab1.cjs.js} +8 -9
- package/dist/cjs/{serve-b4fcdcdf.cjs.js → serve-ac12ef20.cjs.js} +10 -11
- package/dist/cjs/{server-62084647.cjs.js → server-382a728e.cjs.js} +2 -2
- package/dist/cjs/{svgrTemplate-b7a4ee52.cjs.js → svgrTemplate-550efce6.cjs.js} +1 -1
- package/dist/cjs/{tasks-7e48ac21.cjs.js → tasks-243e2eda.cjs.js} +2 -2
- package/dist/cjs/{testCommand-286a868f.cjs.js → testCommand-349ec891.cjs.js} +3 -4
- package/dist/cjs/{validate-0aec1444.cjs.js → validate-352b45d0.cjs.js} +4 -5
- package/dist/index.cjs.js +1 -2
- package/package.json +9 -10
- package/templates/default-backend-plugin/.eslintrc.js +1 -3
- package/templates/default-backend-plugin/package.json.hbs +10 -7
- package/templates/default-common-plugin-package/.eslintrc.js +1 -3
- package/templates/default-common-plugin-package/package.json.hbs +9 -6
- package/templates/default-plugin/.eslintrc.js +1 -3
- package/templates/default-plugin/package.json.hbs +10 -8
- package/templates/scaffolder-module/.eslintrc.js +1 -3
- package/templates/scaffolder-module/package.json.hbs +10 -6
|
@@ -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-f8ae642f.cjs.js');
|
|
5
|
+
var backend = require('./backend-e620c4e3.cjs.js');
|
|
6
6
|
require('yn');
|
|
7
7
|
require('path');
|
|
8
8
|
require('webpack');
|
|
@@ -15,31 +15,30 @@ require('run-script-webpack-plugin');
|
|
|
15
15
|
require('webpack-node-externals');
|
|
16
16
|
require('@backstage/cli-common');
|
|
17
17
|
require('@manypkg/get-packages');
|
|
18
|
-
require('./paths-
|
|
18
|
+
require('./paths-5374b235.cjs.js');
|
|
19
19
|
require('mini-css-extract-plugin');
|
|
20
|
-
require('./run-
|
|
20
|
+
require('./run-049464be.cjs.js');
|
|
21
21
|
require('eslint-webpack-plugin');
|
|
22
22
|
require('lodash/pickBy');
|
|
23
23
|
var chalk = require('chalk');
|
|
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-
|
|
29
|
-
var Lockfile = require('./Lockfile-
|
|
27
|
+
var server = require('./server-382a728e.cjs.js');
|
|
28
|
+
var config = require('./config-6855bc7c.cjs.js');
|
|
29
|
+
var Lockfile = require('./Lockfile-276d1251.cjs.js');
|
|
30
30
|
require('minimatch');
|
|
31
|
-
var lint = require('./lint-
|
|
32
|
-
var packageRoles = require('./packageRoles-
|
|
31
|
+
var lint = require('./lint-a880c4e8.cjs.js');
|
|
32
|
+
var packageRoles = require('./packageRoles-b29899e1.cjs.js');
|
|
33
33
|
require('commander');
|
|
34
34
|
require('semver');
|
|
35
|
-
require('@backstage/config/package.json');
|
|
36
35
|
require('@backstage/errors');
|
|
37
|
-
require('./svgrTemplate-
|
|
36
|
+
require('./svgrTemplate-550efce6.cjs.js');
|
|
38
37
|
require('child_process');
|
|
39
38
|
require('util');
|
|
40
39
|
require('@backstage/config-loader');
|
|
41
40
|
require('@backstage/config');
|
|
42
|
-
require('./PackageGraph-
|
|
41
|
+
require('./PackageGraph-8c721cd8.cjs.js');
|
|
43
42
|
require('@yarnpkg/lockfile');
|
|
44
43
|
require('lodash/partition');
|
|
45
44
|
require('zod');
|
|
@@ -122,4 +121,4 @@ async function command(cmd) {
|
|
|
122
121
|
}
|
|
123
122
|
|
|
124
123
|
exports.command = command;
|
|
125
|
-
//# sourceMappingURL=index-
|
|
124
|
+
//# sourceMappingURL=index-92bbf252.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-f8ae642f.cjs.js');
|
|
7
7
|
var crypto = require('crypto');
|
|
8
8
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
9
9
|
var request = require('@octokit/request');
|
|
@@ -11,7 +11,6 @@ var express = require('express');
|
|
|
11
11
|
require('commander');
|
|
12
12
|
require('semver');
|
|
13
13
|
require('@backstage/cli-common');
|
|
14
|
-
require('@backstage/config/package.json');
|
|
15
14
|
require('@backstage/errors');
|
|
16
15
|
|
|
17
16
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -128,4 +127,4 @@ ${yaml.stringify(config)}`;
|
|
|
128
127
|
};
|
|
129
128
|
|
|
130
129
|
exports["default"] = index;
|
|
131
|
-
//# sourceMappingURL=index-
|
|
130
|
+
//# sourceMappingURL=index-b1654aef.cjs.js.map
|
|
@@ -5,7 +5,6 @@ var chalk = require('chalk');
|
|
|
5
5
|
var fs = require('fs-extra');
|
|
6
6
|
var semver = require('semver');
|
|
7
7
|
var cliCommon = require('@backstage/cli-common');
|
|
8
|
-
var package_json = require('@backstage/config/package.json');
|
|
9
8
|
var errors = require('@backstage/errors');
|
|
10
9
|
|
|
11
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -46,13 +45,13 @@ class NotFoundError extends CustomError {
|
|
|
46
45
|
|
|
47
46
|
const paths = cliCommon.findPaths(__dirname);
|
|
48
47
|
|
|
49
|
-
var version$
|
|
48
|
+
var version$a = "0.13.0";
|
|
50
49
|
|
|
51
|
-
var version$
|
|
50
|
+
var version$9 = "0.15.3";
|
|
52
51
|
var dependencies = {
|
|
53
52
|
"@backstage/cli-common": "^0.1.8",
|
|
54
53
|
"@backstage/config": "^0.1.15",
|
|
55
|
-
"@backstage/config-loader": "^0.9.
|
|
54
|
+
"@backstage/config-loader": "^0.9.7",
|
|
56
55
|
"@backstage/errors": "^0.2.2",
|
|
57
56
|
"@backstage/release-manifests": "^0.0.2",
|
|
58
57
|
"@backstage/types": "^0.1.3",
|
|
@@ -98,7 +97,7 @@ var dependencies = {
|
|
|
98
97
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
99
98
|
express: "^4.17.1",
|
|
100
99
|
"fork-ts-checker-webpack-plugin": "^7.0.0-alpha.8",
|
|
101
|
-
"fs-extra": "
|
|
100
|
+
"fs-extra": "10.0.1",
|
|
102
101
|
glob: "^7.1.7",
|
|
103
102
|
handlebars: "^4.7.3",
|
|
104
103
|
"html-webpack-plugin": "^5.3.1",
|
|
@@ -108,7 +107,7 @@ var dependencies = {
|
|
|
108
107
|
"json-schema": "^0.4.0",
|
|
109
108
|
"jest-transform-yaml": "^1.0.0",
|
|
110
109
|
lodash: "^4.17.21",
|
|
111
|
-
minimatch: "5.0.
|
|
110
|
+
minimatch: "5.0.1",
|
|
112
111
|
"mini-css-extract-plugin": "^2.4.2",
|
|
113
112
|
"npm-packlist": "^3.0.0",
|
|
114
113
|
"node-libs-browser": "^2.2.1",
|
|
@@ -122,7 +121,6 @@ var dependencies = {
|
|
|
122
121
|
rollup: "^2.60.2",
|
|
123
122
|
"rollup-plugin-dts": "^4.0.1",
|
|
124
123
|
"rollup-plugin-esbuild": "^4.7.2",
|
|
125
|
-
"rollup-plugin-peer-deps-external": "^2.2.2",
|
|
126
124
|
"rollup-plugin-postcss": "^4.0.0",
|
|
127
125
|
"rollup-pluginutils": "^2.8.2",
|
|
128
126
|
"run-script-webpack-plugin": "^0.0.11",
|
|
@@ -141,12 +139,12 @@ var dependencies = {
|
|
|
141
139
|
zod: "^3.11.6"
|
|
142
140
|
};
|
|
143
141
|
var devDependencies = {
|
|
144
|
-
"@backstage/backend-common": "^0.
|
|
142
|
+
"@backstage/backend-common": "^0.13.0",
|
|
145
143
|
"@backstage/config": "^0.1.15",
|
|
146
|
-
"@backstage/core-components": "^0.9.
|
|
144
|
+
"@backstage/core-components": "^0.9.1",
|
|
147
145
|
"@backstage/core-plugin-api": "^0.8.0",
|
|
148
146
|
"@backstage/core-app-api": "^0.6.0",
|
|
149
|
-
"@backstage/dev-utils": "^0.2.
|
|
147
|
+
"@backstage/dev-utils": "^0.2.25",
|
|
150
148
|
"@backstage/test-utils": "^0.3.0",
|
|
151
149
|
"@backstage/theme": "^0.2.15",
|
|
152
150
|
"@types/diff": "^5.0.0",
|
|
@@ -157,7 +155,7 @@ var devDependencies = {
|
|
|
157
155
|
"@types/minimatch": "^3.0.5",
|
|
158
156
|
"@types/mock-fs": "^4.13.0",
|
|
159
157
|
"@types/node": "^14.14.32",
|
|
160
|
-
"@types/npm-packlist": "^
|
|
158
|
+
"@types/npm-packlist": "^3.0.0",
|
|
161
159
|
"@types/recursive-readdir": "^2.2.0",
|
|
162
160
|
"@types/rollup-plugin-peer-deps-external": "^2.2.0",
|
|
163
161
|
"@types/rollup-plugin-postcss": "^3.1.4",
|
|
@@ -172,24 +170,26 @@ var devDependencies = {
|
|
|
172
170
|
msw: "^0.35.0"
|
|
173
171
|
};
|
|
174
172
|
|
|
173
|
+
var version$8 = "0.1.15";
|
|
174
|
+
|
|
175
175
|
var version$7 = "0.6.0";
|
|
176
176
|
|
|
177
|
-
var version$6 = "0.9.
|
|
177
|
+
var version$6 = "0.9.1";
|
|
178
178
|
|
|
179
179
|
var version$5 = "0.8.0";
|
|
180
180
|
|
|
181
|
-
var version$4 = "0.2.
|
|
181
|
+
var version$4 = "0.2.25";
|
|
182
182
|
|
|
183
183
|
var version$3 = "0.3.0";
|
|
184
184
|
|
|
185
185
|
var version$2 = "0.2.15";
|
|
186
186
|
|
|
187
|
-
var version$1 = "0.
|
|
187
|
+
var version$1 = "0.18.0";
|
|
188
188
|
|
|
189
189
|
const packageVersions = {
|
|
190
|
-
"@backstage/backend-common": version$
|
|
191
|
-
"@backstage/cli": version$
|
|
192
|
-
"@backstage/config":
|
|
190
|
+
"@backstage/backend-common": version$a,
|
|
191
|
+
"@backstage/cli": version$9,
|
|
192
|
+
"@backstage/config": version$8,
|
|
193
193
|
"@backstage/core-app-api": version$7,
|
|
194
194
|
"@backstage/core-components": version$6,
|
|
195
195
|
"@backstage/core-plugin-api": version$5,
|
|
@@ -238,55 +238,56 @@ const configOption = [
|
|
|
238
238
|
Array()
|
|
239
239
|
];
|
|
240
240
|
function registerRepoCommand(program) {
|
|
241
|
-
const command = program.command("repo [command]"
|
|
242
|
-
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-
|
|
243
|
-
command.command("lint").description("Lint all packages in the project").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--since <ref>", "Only lint packages that changed since the specified ref").option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
241
|
+
const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
|
|
242
|
+
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.").option("--since <ref>", "Only build packages and their dev dependents that changed since the specified ref").action(lazy(() => Promise.resolve().then(function () { return require('./build-b5718f33.cjs.js'); }).then((m) => m.command)));
|
|
243
|
+
command.command("lint").description("Lint all packages in the project").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--since <ref>", "Only lint packages that changed since the specified ref").option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-a3a1f76d.cjs.js'); }).then((m) => m.command)));
|
|
244
244
|
}
|
|
245
245
|
function registerScriptCommand(program) {
|
|
246
|
-
const command = program.command("package [command]"
|
|
247
|
-
command.command("start").description("Start a package for local development").option(...configOption).option("--role <name>", "Run the command with an explicit package role
|
|
248
|
-
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role
|
|
249
|
-
command.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-
|
|
250
|
-
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('./testCommand-
|
|
251
|
-
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
252
|
-
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
253
|
-
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
246
|
+
const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
|
|
247
|
+
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-92bbf252.cjs.js'); }).then((m) => m.command)));
|
|
248
|
+
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").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-3d80f66f.cjs.js'); }).then((m) => m.command)));
|
|
249
|
+
command.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-d2f846b1.cjs.js'); }).then((m) => m.default)));
|
|
250
|
+
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('./testCommand-349ec891.cjs.js'); }).then((m) => m.default)));
|
|
251
|
+
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-41681199.cjs.js'); }).then((m) => m.default)));
|
|
252
|
+
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-acb53064.cjs.js'); }).then((m) => m.pre)));
|
|
253
|
+
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-acb53064.cjs.js'); }).then((m) => m.post)));
|
|
254
254
|
}
|
|
255
255
|
function registerMigrateCommand(program) {
|
|
256
|
-
const command = program.command("migrate [command]"
|
|
257
|
-
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-
|
|
258
|
-
command.command("package-scripts").description("Set package scripts according to each package role").action(lazy(() => Promise.resolve().then(function () { return require('./packageScripts-
|
|
256
|
+
const command = program.command("migrate [command]").description("Migration utilities");
|
|
257
|
+
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-134d32fb.cjs.js'); }).then((m) => m.default)));
|
|
258
|
+
command.command("package-scripts").description("Set package scripts according to each package role").action(lazy(() => Promise.resolve().then(function () { return require('./packageScripts-494ce9c4.cjs.js'); }).then((m) => m.command)));
|
|
259
|
+
command.command("package-lint-configs").description("Migrates all packages to use @backstage/cli/config/eslint-factory").action(lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-c83f7b1b.cjs.js'); }).then((m) => m.command)));
|
|
259
260
|
}
|
|
260
261
|
function registerCommands(program) {
|
|
261
|
-
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-
|
|
262
|
-
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-
|
|
263
|
-
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-
|
|
264
|
-
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-
|
|
265
|
-
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-
|
|
266
|
-
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-
|
|
267
|
-
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-
|
|
268
|
-
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-
|
|
269
|
-
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-
|
|
270
|
-
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-
|
|
271
|
-
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-
|
|
272
|
-
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-
|
|
273
|
-
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-
|
|
274
|
-
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-
|
|
275
|
-
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-
|
|
276
|
-
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-
|
|
277
|
-
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-
|
|
262
|
+
program.command("app:build").description("Build an app for a production release [DEPRECATED]").option("--stats", "Write bundle stats to output directory").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./build-f5258a1d.cjs.js'); }).then((m) => m.default)));
|
|
263
|
+
program.command("app:serve").description("Serve an app for local development [DEPRECATED]").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-ac12ef20.cjs.js'); }).then((m) => m.default)));
|
|
264
|
+
program.command("backend:build").description("Build a backend plugin [DEPRECATED]").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./build-1f3eb1a1.cjs.js'); }).then((m) => m.default)));
|
|
265
|
+
program.command("backend:bundle").description("Bundle the backend into a deployment archive [DEPRECATED]").option("--build-dependencies", "Build all local package dependencies before bundling the backend").action(lazy(() => Promise.resolve().then(function () { return require('./bundle-03c7fcb6.cjs.js'); }).then((m) => m.default)));
|
|
266
|
+
program.command("backend:dev").description("Start local development server with HMR for the backend [DEPRECATED]").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-532ce377.cjs.js'); }).then((m) => m.default)));
|
|
267
|
+
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-15683fe7.cjs.js'); }).then((m) => m.default)));
|
|
268
|
+
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-233e27fc.cjs.js'); }).then((m) => m.default)));
|
|
269
|
+
program.command("plugin:build").description("Build a plugin [DEPRECATED]").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./build-f6293d0e.cjs.js'); }).then((m) => m.default)));
|
|
270
|
+
program.command("plugin:serve").description("Serves the dev/ folder of a plugin [DEPRECATED]").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-73172ab1.cjs.js'); }).then((m) => m.default)));
|
|
271
|
+
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-c874a4a8.cjs.js'); }).then((m) => m.default)));
|
|
272
|
+
program.command("build").description("Build a package for publishing [DEPRECATED]").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-5032bf9a.cjs.js'); }).then((m) => m.default)));
|
|
273
|
+
program.command("lint").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--fix", "Attempt to automatically fix violations").description("Lint a package [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./lint-d2f846b1.cjs.js'); }).then((m) => m.default)));
|
|
274
|
+
program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./testCommand-349ec891.cjs.js'); }).then((m) => m.default)));
|
|
275
|
+
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-266ef099.cjs.js'); }).then((m) => m.default)));
|
|
276
|
+
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-97169106.cjs.js'); }).then((m) => m.default)));
|
|
277
|
+
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-352b45d0.cjs.js'); }).then((m) => m.default)));
|
|
278
|
+
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-cd095759.cjs.js'); }).then((m) => m.default)));
|
|
278
279
|
registerRepoCommand(program);
|
|
279
280
|
registerScriptCommand(program);
|
|
280
281
|
registerMigrateCommand(program);
|
|
281
|
-
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-
|
|
282
|
-
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-
|
|
283
|
-
program.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
284
|
-
program.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
285
|
-
program.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
286
|
-
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-
|
|
287
|
-
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
288
|
-
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-
|
|
289
|
-
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-
|
|
282
|
+
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-3cafb3d5.cjs.js'); }).then((m) => m.default)));
|
|
283
|
+
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-a880c4e8.cjs.js'); }).then((m) => m.default)));
|
|
284
|
+
program.command("prepack").description("Prepares a package for packaging before publishing [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./pack-acb53064.cjs.js'); }).then((m) => m.pre)));
|
|
285
|
+
program.command("postpack").description("Restores the changes made by the prepack command [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./pack-acb53064.cjs.js'); }).then((m) => m.post)));
|
|
286
|
+
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-41681199.cjs.js'); }).then((m) => m.default)));
|
|
287
|
+
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-bfbdbb34.cjs.js'); }).then((m) => m.default)));
|
|
288
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-b1654aef.cjs.js'); }).then((m) => m.default)));
|
|
289
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-f540a399.cjs.js'); }).then((m) => m.default)));
|
|
290
|
+
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-d6293025.cjs.js'); }).then((m) => m.default)));
|
|
290
291
|
}
|
|
291
292
|
function lazy(getActionFunc) {
|
|
292
293
|
return async (...args) => {
|
|
@@ -329,5 +330,5 @@ exports.dependencies = dependencies;
|
|
|
329
330
|
exports.devDependencies = devDependencies;
|
|
330
331
|
exports.paths = paths;
|
|
331
332
|
exports.version = version;
|
|
332
|
-
exports.version$1 = version$
|
|
333
|
-
//# sourceMappingURL=index-
|
|
333
|
+
exports.version$1 = version$9;
|
|
334
|
+
//# sourceMappingURL=index-f8ae642f.cjs.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-f8ae642f.cjs.js');
|
|
4
4
|
var os = require('os');
|
|
5
|
-
var run = require('./run-
|
|
6
|
-
var Lockfile = require('./Lockfile-
|
|
5
|
+
var run = require('./run-049464be.cjs.js');
|
|
6
|
+
var Lockfile = require('./Lockfile-276d1251.cjs.js');
|
|
7
7
|
require('minimatch');
|
|
8
8
|
require('@manypkg/get-packages');
|
|
9
9
|
require('chalk');
|
|
@@ -11,7 +11,6 @@ require('commander');
|
|
|
11
11
|
require('fs-extra');
|
|
12
12
|
require('semver');
|
|
13
13
|
require('@backstage/cli-common');
|
|
14
|
-
require('@backstage/config/package.json');
|
|
15
14
|
require('@backstage/errors');
|
|
16
15
|
require('child_process');
|
|
17
16
|
require('util');
|
|
@@ -43,4 +42,4 @@ var info = async () => {
|
|
|
43
42
|
};
|
|
44
43
|
|
|
45
44
|
exports["default"] = info;
|
|
46
|
-
//# sourceMappingURL=info-
|
|
45
|
+
//# sourceMappingURL=info-f540a399.cjs.js.map
|
|
@@ -3,17 +3,16 @@
|
|
|
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-bcb27407.cjs.js');
|
|
7
|
+
var index = require('./index-f8ae642f.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-049464be.cjs.js');
|
|
12
12
|
require('minimatch');
|
|
13
13
|
require('@manypkg/get-packages');
|
|
14
14
|
require('commander');
|
|
15
15
|
require('@backstage/cli-common');
|
|
16
|
-
require('@backstage/config/package.json');
|
|
17
16
|
require('@backstage/errors');
|
|
18
17
|
require('child_process');
|
|
19
18
|
require('util');
|
|
@@ -240,4 +239,4 @@ var install = async (pluginId, cmd) => {
|
|
|
240
239
|
};
|
|
241
240
|
|
|
242
241
|
exports["default"] = install;
|
|
243
|
-
//# sourceMappingURL=install-
|
|
242
|
+
//# sourceMappingURL=install-d6293025.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-
|
|
6
|
-
var parallel = require('./parallel-
|
|
7
|
-
var index = require('./index-
|
|
5
|
+
var PackageGraph = require('./PackageGraph-8c721cd8.cjs.js');
|
|
6
|
+
var parallel = require('./parallel-8286d3fa.cjs.js');
|
|
7
|
+
var index = require('./index-f8ae642f.cjs.js');
|
|
8
8
|
require('@manypkg/get-packages');
|
|
9
9
|
require('@backstage/errors');
|
|
10
10
|
require('child_process');
|
|
@@ -15,7 +15,6 @@ require('commander');
|
|
|
15
15
|
require('fs-extra');
|
|
16
16
|
require('semver');
|
|
17
17
|
require('@backstage/cli-common');
|
|
18
|
-
require('@backstage/config/package.json');
|
|
19
18
|
|
|
20
19
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
21
20
|
|
|
@@ -89,4 +88,4 @@ async function command(cmd) {
|
|
|
89
88
|
}
|
|
90
89
|
|
|
91
90
|
exports.command = command;
|
|
92
|
-
//# sourceMappingURL=lint-
|
|
91
|
+
//# sourceMappingURL=lint-a3a1f76d.cjs.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Lockfile = require('./Lockfile-
|
|
3
|
+
var Lockfile = require('./Lockfile-276d1251.cjs.js');
|
|
4
4
|
require('minimatch');
|
|
5
5
|
require('@manypkg/get-packages');
|
|
6
|
-
require('./run-
|
|
6
|
+
require('./run-049464be.cjs.js');
|
|
7
7
|
require('chalk');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-f8ae642f.cjs.js');
|
|
9
9
|
var partition = require('lodash/partition');
|
|
10
10
|
require('fs-extra');
|
|
11
11
|
require('semver');
|
|
@@ -15,7 +15,6 @@ require('util');
|
|
|
15
15
|
require('@backstage/errors');
|
|
16
16
|
require('commander');
|
|
17
17
|
require('@backstage/cli-common');
|
|
18
|
-
require('@backstage/config/package.json');
|
|
19
18
|
|
|
20
19
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
21
20
|
|
|
@@ -76,4 +75,4 @@ function logArray(arr, header, each) {
|
|
|
76
75
|
exports["default"] = lint;
|
|
77
76
|
exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
|
|
78
77
|
exports.includedFilter = includedFilter;
|
|
79
|
-
//# sourceMappingURL=lint-
|
|
78
|
+
//# sourceMappingURL=lint-a880c4e8.cjs.js.map
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-f8ae642f.cjs.js');
|
|
4
4
|
var eslint = require('eslint');
|
|
5
5
|
require('commander');
|
|
6
6
|
require('chalk');
|
|
7
7
|
require('fs-extra');
|
|
8
8
|
require('semver');
|
|
9
9
|
require('@backstage/cli-common');
|
|
10
|
-
require('@backstage/config/package.json');
|
|
11
10
|
require('@backstage/errors');
|
|
12
11
|
|
|
13
12
|
var lint = async (cmd, cmdArgs) => {
|
|
@@ -32,4 +31,4 @@ var lint = async (cmd, cmdArgs) => {
|
|
|
32
31
|
};
|
|
33
32
|
|
|
34
33
|
exports["default"] = lint;
|
|
35
|
-
//# sourceMappingURL=lint-
|
|
34
|
+
//# sourceMappingURL=lint-d2f846b1.cjs.js.map
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var packager = require('./packager-
|
|
3
|
+
var packager = require('./packager-4ab99705.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-f8ae642f.cjs.js');
|
|
9
9
|
require('commander');
|
|
10
10
|
require('semver');
|
|
11
11
|
require('@backstage/cli-common');
|
|
12
|
-
require('@backstage/config/package.json');
|
|
13
12
|
require('@backstage/errors');
|
|
14
|
-
require('rollup-plugin-peer-deps-external');
|
|
15
13
|
require('@rollup/plugin-commonjs');
|
|
16
14
|
require('@rollup/plugin-node-resolve');
|
|
17
15
|
require('rollup-plugin-postcss');
|
|
@@ -21,11 +19,11 @@ require('rollup-plugin-dts');
|
|
|
21
19
|
require('@rollup/plugin-json');
|
|
22
20
|
require('@rollup/plugin-yaml');
|
|
23
21
|
require('rollup-pluginutils');
|
|
24
|
-
require('./svgrTemplate-
|
|
25
|
-
require('./parallel-
|
|
22
|
+
require('./svgrTemplate-550efce6.cjs.js');
|
|
23
|
+
require('./parallel-8286d3fa.cjs.js');
|
|
26
24
|
require('os');
|
|
27
25
|
require('worker_threads');
|
|
28
|
-
require('./packageRoles-
|
|
26
|
+
require('./packageRoles-b29899e1.cjs.js');
|
|
29
27
|
require('zod');
|
|
30
28
|
|
|
31
29
|
var oldBuild = async (cmd) => {
|
|
@@ -50,4 +48,4 @@ var oldBuild = async (cmd) => {
|
|
|
50
48
|
};
|
|
51
49
|
|
|
52
50
|
exports["default"] = oldBuild;
|
|
53
|
-
//# sourceMappingURL=oldBuild-
|
|
51
|
+
//# sourceMappingURL=oldBuild-5032bf9a.cjs.js.map
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
|
-
var index = require('./index-
|
|
4
|
+
var index = require('./index-f8ae642f.cjs.js');
|
|
5
5
|
var path = require('path');
|
|
6
6
|
require('commander');
|
|
7
7
|
require('chalk');
|
|
8
8
|
require('semver');
|
|
9
9
|
require('@backstage/cli-common');
|
|
10
|
-
require('@backstage/config/package.json');
|
|
11
10
|
require('@backstage/errors');
|
|
12
11
|
|
|
13
12
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -70,4 +69,4 @@ const post = async () => {
|
|
|
70
69
|
|
|
71
70
|
exports.post = post;
|
|
72
71
|
exports.pre = pre;
|
|
73
|
-
//# sourceMappingURL=pack-
|
|
72
|
+
//# sourceMappingURL=pack-acb53064.cjs.js.map
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var fs = require('fs-extra');
|
|
4
|
+
var path = require('path');
|
|
5
|
+
var PackageGraph = require('./PackageGraph-8c721cd8.cjs.js');
|
|
6
|
+
var run = require('./run-049464be.cjs.js');
|
|
7
|
+
require('@manypkg/get-packages');
|
|
8
|
+
require('./index-f8ae642f.cjs.js');
|
|
9
|
+
require('commander');
|
|
10
|
+
require('chalk');
|
|
11
|
+
require('semver');
|
|
12
|
+
require('@backstage/cli-common');
|
|
13
|
+
require('@backstage/errors');
|
|
14
|
+
require('child_process');
|
|
15
|
+
require('util');
|
|
16
|
+
|
|
17
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
18
|
+
|
|
19
|
+
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|
20
|
+
|
|
21
|
+
const PREFIX = `module.exports = require('@backstage/cli/config/eslint-factory')`;
|
|
22
|
+
async function command() {
|
|
23
|
+
const packages = await PackageGraph.PackageGraph.listTargetPackages();
|
|
24
|
+
const oldConfigs = [
|
|
25
|
+
require.resolve("@backstage/cli/config/eslint.js"),
|
|
26
|
+
require.resolve("@backstage/cli/config/eslint.backend.js")
|
|
27
|
+
];
|
|
28
|
+
const configPaths = new Array();
|
|
29
|
+
await Promise.all(packages.map(async ({ dir, packageJson }) => {
|
|
30
|
+
var _a;
|
|
31
|
+
const configPath = path.resolve(dir, ".eslintrc.js");
|
|
32
|
+
if (!await fs__default["default"].pathExists(configPath)) {
|
|
33
|
+
console.log(`Skipping ${packageJson.name}, missing .eslintrc.js`);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
let existingConfig;
|
|
37
|
+
try {
|
|
38
|
+
existingConfig = require(configPath);
|
|
39
|
+
} catch (error) {
|
|
40
|
+
console.log(`Skipping ${packageJson.name}, failed to load .eslintrc.js, ${error}`);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const extendsArray = (_a = existingConfig.extends) != null ? _a : [];
|
|
44
|
+
const extendIndex = extendsArray.findIndex((p) => oldConfigs.includes(p));
|
|
45
|
+
if (extendIndex === -1) {
|
|
46
|
+
console.log(`Skipping ${packageJson.name}, .eslintrc.js does not extend the legacy config`);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
extendsArray.splice(extendIndex, 1);
|
|
50
|
+
if (extendsArray.length === 0) {
|
|
51
|
+
delete existingConfig.extends;
|
|
52
|
+
}
|
|
53
|
+
if (Object.keys(existingConfig).length > 0) {
|
|
54
|
+
await fs__default["default"].writeFile(configPath, `${PREFIX}(__dirname, ${JSON.stringify(existingConfig, null, 2)});
|
|
55
|
+
`);
|
|
56
|
+
} else {
|
|
57
|
+
await fs__default["default"].writeFile(configPath, `${PREFIX}(__dirname);
|
|
58
|
+
`);
|
|
59
|
+
}
|
|
60
|
+
configPaths.push(configPath);
|
|
61
|
+
}));
|
|
62
|
+
let hasPrettier = false;
|
|
63
|
+
try {
|
|
64
|
+
require.resolve("prettier");
|
|
65
|
+
hasPrettier = true;
|
|
66
|
+
} catch {
|
|
67
|
+
}
|
|
68
|
+
if (hasPrettier) {
|
|
69
|
+
await run.runPlain("prettier", "--write", ...configPaths);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
exports.command = command;
|
|
74
|
+
//# sourceMappingURL=packageLintConfigs-c83f7b1b.cjs.js.map
|
|
@@ -3,13 +3,12 @@
|
|
|
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-f8ae642f.cjs.js');
|
|
7
|
+
var packageRoles = require('./packageRoles-b29899e1.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('semver');
|
|
11
11
|
require('@backstage/cli-common');
|
|
12
|
-
require('@backstage/config/package.json');
|
|
13
12
|
require('@backstage/errors');
|
|
14
13
|
require('zod');
|
|
15
14
|
|
|
@@ -51,4 +50,4 @@ var packageRole = async () => {
|
|
|
51
50
|
};
|
|
52
51
|
|
|
53
52
|
exports["default"] = packageRole;
|
|
54
|
-
//# sourceMappingURL=packageRole-
|
|
53
|
+
//# sourceMappingURL=packageRole-134d32fb.cjs.js.map
|