@backstage/cli 0.18.1 → 0.19.0-next.2
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 +109 -0
- package/config/jest.js +54 -4
- package/config/jestSwcTransform.js +35 -0
- package/dist/cjs/{PackageGraph-7ea22294.cjs.js → PackageGraph-7f6ce640.cjs.js} +2 -2
- package/dist/cjs/{build-688edcd3.cjs.js → build-1348e377.cjs.js} +10 -9
- package/dist/cjs/{buildBackend-ac6c633b.cjs.js → buildBackend-c6ecd150.cjs.js} +7 -6
- package/dist/cjs/{buildWorkspace-76f958f0.cjs.js → buildWorkspace-5a2c7a44.cjs.js} +6 -6
- package/dist/cjs/{bump-db89c0f3.cjs.js → bump-03bb3d5a.cjs.js} +7 -13
- package/dist/cjs/clean-314d90b0.cjs.js +50 -0
- package/dist/cjs/{clean-68c34bfd.cjs.js → clean-6c2e6474.cjs.js} +2 -2
- package/dist/cjs/{config-9d64a562.cjs.js → config-0584f4a4.cjs.js} +6 -4
- package/dist/cjs/{createDistWorkspace-0412df70.cjs.js → createDistWorkspace-ebaeac2b.cjs.js} +36 -20
- package/dist/cjs/{createPlugin-02079f81.cjs.js → createPlugin-bbb0c1ce.cjs.js} +6 -5
- package/dist/cjs/{diff-f68eaf29.cjs.js → diff-ebba1180.cjs.js} +2 -2
- package/dist/cjs/{docs-1527b730.cjs.js → docs-aae92f2e.cjs.js} +4 -4
- package/dist/cjs/{fix-56a6d092.cjs.js → fix-37c5344c.cjs.js} +3 -3
- package/dist/cjs/{index-16fe1d27.cjs.js → index-26e52421.cjs.js} +2 -2
- package/dist/cjs/{index-025feb83.cjs.js → index-438ca541.cjs.js} +10 -9
- package/dist/cjs/{index-b7ce30d9.cjs.js → index-477a1b06.cjs.js} +87 -58
- package/dist/cjs/{index-4f8f2562.cjs.js → index-a0a5df42.cjs.js} +13 -9
- package/dist/cjs/{info-88431720.cjs.js → info-d8c0e2b2.cjs.js} +3 -3
- package/dist/cjs/{install-4d423030.cjs.js → install-0cefc510.cjs.js} +4 -4
- package/dist/cjs/{lint-da011116.cjs.js → lint-4260c3e6.cjs.js} +2 -2
- package/dist/cjs/{lint-bd7b9e13.cjs.js → lint-c098b94a.cjs.js} +3 -3
- package/dist/cjs/{lint-2fd53d5f.cjs.js → lint-df95a247.cjs.js} +4 -4
- package/dist/cjs/{list-deprecations-268e1d6b.cjs.js → list-deprecations-91fc7b6c.cjs.js} +3 -3
- package/dist/cjs/{create-94a20b19.cjs.js → new-2e629087.cjs.js} +26 -33
- package/dist/cjs/{pack-ce12d4b7.cjs.js → pack-c1ade706.cjs.js} +2 -2
- package/dist/cjs/{packageLintConfigs-9f3b0766.cjs.js → packageLintConfigs-dd31914f.cjs.js} +4 -4
- package/dist/cjs/{packageRole-582e0558.cjs.js → packageRole-4afa588d.cjs.js} +3 -3
- package/dist/cjs/{packageRoles-fec3121b.cjs.js → packageRoles-f485bb0b.cjs.js} +2 -2
- package/dist/cjs/{packageScripts-04ac9bc2.cjs.js → packageScripts-926909d2.cjs.js} +4 -4
- package/dist/cjs/{packages-24759dcb.cjs.js → packages-c8abe608.cjs.js} +3 -3
- package/dist/cjs/{paths-13d8625f.cjs.js → paths-73d8c4fd.cjs.js} +75 -40
- package/dist/cjs/{print-58fe18ba.cjs.js → print-71f20339.cjs.js} +4 -4
- package/dist/cjs/reactRouterDeps-b22fb782.cjs.js +59 -0
- package/dist/cjs/{run-f4586ef6.cjs.js → run-274b954a.cjs.js} +2 -2
- package/dist/cjs/{schema-65c31be1.cjs.js → schema-28b70f3e.cjs.js} +4 -4
- package/dist/cjs/{tasks-16da761b.cjs.js → tasks-ba198fb1.cjs.js} +3 -4
- package/dist/cjs/{test-464a46fe.cjs.js → test-130c28c6.cjs.js} +3 -3
- package/dist/cjs/{validate-3231ba7d.cjs.js → validate-48f9f572.cjs.js} +4 -4
- package/dist/index.cjs.js +1 -1
- package/package.json +48 -19
- package/templates/default-backend-plugin/package.json.hbs +1 -1
- package/templates/default-plugin/package.json.hbs +1 -1
- package/config/jestEsmTransform.js +0 -19
|
@@ -10,12 +10,12 @@ var camelCase = require('lodash/camelCase');
|
|
|
10
10
|
var upperFirst = require('lodash/upperFirst');
|
|
11
11
|
var os = require('os');
|
|
12
12
|
var errors = require('@backstage/errors');
|
|
13
|
-
var tasks = require('./tasks-
|
|
14
|
-
var index = require('./index-
|
|
13
|
+
var tasks = require('./tasks-ba198fb1.cjs.js');
|
|
14
|
+
var index = require('./index-477a1b06.cjs.js');
|
|
15
15
|
var Lockfile = require('./Lockfile-72b7072e.cjs.js');
|
|
16
16
|
require('minimatch');
|
|
17
17
|
require('@manypkg/get-packages');
|
|
18
|
-
require('./run-
|
|
18
|
+
require('./run-274b954a.cjs.js');
|
|
19
19
|
require('handlebars');
|
|
20
20
|
require('ora');
|
|
21
21
|
require('recursive-readdir');
|
|
@@ -236,7 +236,8 @@ var createPlugin = async (opts) => {
|
|
|
236
236
|
privatePackage,
|
|
237
237
|
npmRegistry
|
|
238
238
|
},
|
|
239
|
-
index.createPackageVersionProvider(lockfile)
|
|
239
|
+
index.createPackageVersionProvider(lockfile),
|
|
240
|
+
isMonoRepo
|
|
240
241
|
);
|
|
241
242
|
tasks.Task.section("Moving to final location");
|
|
242
243
|
await movePlugin(tempDir, pluginDir, pluginId);
|
|
@@ -273,4 +274,4 @@ exports.addPluginExtensionToApp = addPluginExtensionToApp;
|
|
|
273
274
|
exports.capitalize = capitalize;
|
|
274
275
|
exports["default"] = createPlugin;
|
|
275
276
|
exports.movePlugin = movePlugin;
|
|
276
|
-
//# sourceMappingURL=createPlugin-
|
|
277
|
+
//# sourceMappingURL=createPlugin-bbb0c1ce.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-477a1b06.cjs.js');
|
|
11
11
|
require('commander');
|
|
12
12
|
require('semver');
|
|
13
13
|
require('@backstage/cli-common');
|
|
@@ -432,4 +432,4 @@ async function readPluginData() {
|
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
exports["default"] = diff;
|
|
435
|
-
//# sourceMappingURL=diff-
|
|
435
|
+
//# sourceMappingURL=diff-ebba1180.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-0584f4a4.cjs.js');
|
|
6
6
|
require('@backstage/config');
|
|
7
|
-
require('./index-
|
|
7
|
+
require('./index-477a1b06.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('fs-extra');
|
|
@@ -12,7 +12,7 @@ require('semver');
|
|
|
12
12
|
require('@backstage/cli-common');
|
|
13
13
|
require('@backstage/errors');
|
|
14
14
|
require('@manypkg/get-packages');
|
|
15
|
-
require('./PackageGraph-
|
|
15
|
+
require('./PackageGraph-7f6ce640.cjs.js');
|
|
16
16
|
require('path');
|
|
17
17
|
require('child_process');
|
|
18
18
|
require('util');
|
|
@@ -37,4 +37,4 @@ var docs = async (opts) => {
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
exports["default"] = docs;
|
|
40
|
-
//# sourceMappingURL=docs-
|
|
40
|
+
//# sourceMappingURL=docs-aae92f2e.cjs.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-477a1b06.cjs.js');
|
|
4
4
|
var eslint = require('eslint');
|
|
5
5
|
var path = require('path');
|
|
6
6
|
var fs = require('fs-extra');
|
|
7
7
|
var cliCommon = require('@backstage/cli-common');
|
|
8
|
-
var PackageGraph = require('./PackageGraph-
|
|
8
|
+
var PackageGraph = require('./PackageGraph-7f6ce640.cjs.js');
|
|
9
9
|
require('commander');
|
|
10
10
|
require('chalk');
|
|
11
11
|
require('semver');
|
|
@@ -123,4 +123,4 @@ async function command() {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
exports.command = command;
|
|
126
|
-
//# sourceMappingURL=fix-
|
|
126
|
+
//# sourceMappingURL=fix-37c5344c.cjs.js.map
|
|
@@ -4,7 +4,7 @@ var fs = require('fs-extra');
|
|
|
4
4
|
var chalk = require('chalk');
|
|
5
5
|
var yaml = require('yaml');
|
|
6
6
|
var inquirer = require('inquirer');
|
|
7
|
-
var index$1 = require('./index-
|
|
7
|
+
var index$1 = require('./index-477a1b06.cjs.js');
|
|
8
8
|
var crypto = require('crypto');
|
|
9
9
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
10
10
|
var request = require('@octokit/request');
|
|
@@ -222,4 +222,4 @@ async function verifyGithubOrg(org) {
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
exports["default"] = index;
|
|
225
|
-
//# sourceMappingURL=index-
|
|
225
|
+
//# sourceMappingURL=index-26e52421.cjs.js.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var createDistWorkspace = require('./createDistWorkspace-
|
|
4
|
-
var packageRoles = require('./packageRoles-
|
|
5
|
-
var index = require('./index-
|
|
6
|
-
var buildBackend = require('./buildBackend-
|
|
3
|
+
var createDistWorkspace = require('./createDistWorkspace-ebaeac2b.cjs.js');
|
|
4
|
+
var packageRoles = require('./packageRoles-f485bb0b.cjs.js');
|
|
5
|
+
var index = require('./index-477a1b06.cjs.js');
|
|
6
|
+
var buildBackend = require('./buildBackend-c6ecd150.cjs.js');
|
|
7
7
|
require('chalk');
|
|
8
8
|
require('fs-extra');
|
|
9
9
|
require('path');
|
|
10
10
|
require('os');
|
|
11
11
|
require('tar');
|
|
12
12
|
require('lodash/partition');
|
|
13
|
-
require('./run-
|
|
13
|
+
require('./run-274b954a.cjs.js');
|
|
14
14
|
require('child_process');
|
|
15
15
|
require('util');
|
|
16
16
|
require('@backstage/errors');
|
|
17
|
-
require('./PackageGraph-
|
|
17
|
+
require('./PackageGraph-7f6ce640.cjs.js');
|
|
18
18
|
require('@manypkg/get-packages');
|
|
19
19
|
require('rollup');
|
|
20
20
|
require('@rollup/plugin-commonjs');
|
|
@@ -40,8 +40,9 @@ require('html-webpack-plugin');
|
|
|
40
40
|
require('react-dev-utils/ModuleScopePlugin');
|
|
41
41
|
require('run-script-webpack-plugin');
|
|
42
42
|
require('webpack-node-externals');
|
|
43
|
-
require('./paths-
|
|
43
|
+
require('./paths-73d8c4fd.cjs.js');
|
|
44
44
|
require('mini-css-extract-plugin');
|
|
45
|
+
require('@pmmmwh/react-refresh-webpack-plugin');
|
|
45
46
|
require('eslint-webpack-plugin');
|
|
46
47
|
require('lodash/pickBy');
|
|
47
48
|
require('yn');
|
|
@@ -49,7 +50,7 @@ require('react-dev-utils/FileSizeReporter');
|
|
|
49
50
|
require('react-dev-utils/formatWebpackMessages');
|
|
50
51
|
require('webpack-dev-server');
|
|
51
52
|
require('react-dev-utils/openBrowser');
|
|
52
|
-
require('./config-
|
|
53
|
+
require('./config-0584f4a4.cjs.js');
|
|
53
54
|
require('@backstage/config-loader');
|
|
54
55
|
require('@backstage/config');
|
|
55
56
|
|
|
@@ -87,4 +88,4 @@ async function command(opts) {
|
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
exports.command = command;
|
|
90
|
-
//# sourceMappingURL=index-
|
|
91
|
+
//# sourceMappingURL=index-438ca541.cjs.js.map
|
|
@@ -46,20 +46,19 @@ class NotFoundError extends CustomError {
|
|
|
46
46
|
|
|
47
47
|
const paths = cliCommon.findPaths(__dirname);
|
|
48
48
|
|
|
49
|
-
var version$a = "0.15.
|
|
49
|
+
var version$a = "0.15.1-next.2";
|
|
50
50
|
|
|
51
|
-
var version$9 = "0.
|
|
51
|
+
var version$9 = "0.19.0-next.2";
|
|
52
52
|
var dependencies = {
|
|
53
53
|
"@backstage/cli-common": "^0.1.9",
|
|
54
54
|
"@backstage/config": "^1.0.1",
|
|
55
|
-
"@backstage/config-loader": "^1.1.
|
|
55
|
+
"@backstage/config-loader": "^1.1.4-next.1",
|
|
56
56
|
"@backstage/errors": "^1.1.0",
|
|
57
|
-
"@backstage/release-manifests": "^0.0.
|
|
57
|
+
"@backstage/release-manifests": "^0.0.6-next.1",
|
|
58
58
|
"@backstage/types": "^1.0.0",
|
|
59
|
-
"@hot-loader/react-dom-v16": "npm:@hot-loader/react-dom@^16.0.2",
|
|
60
|
-
"@hot-loader/react-dom-v17": "npm:@hot-loader/react-dom@^17.0.2",
|
|
61
59
|
"@manypkg/get-packages": "^1.1.3",
|
|
62
60
|
"@octokit/request": "^6.0.0",
|
|
61
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
|
|
63
62
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
64
63
|
"@rollup/plugin-json": "^4.1.0",
|
|
65
64
|
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
@@ -73,6 +72,9 @@ var dependencies = {
|
|
|
73
72
|
"@svgr/plugin-svgo": "6.3.x",
|
|
74
73
|
"@svgr/rollup": "6.3.x",
|
|
75
74
|
"@svgr/webpack": "6.3.x",
|
|
75
|
+
"@swc/core": "^1.2.239",
|
|
76
|
+
"@swc/helpers": "^0.4.7",
|
|
77
|
+
"@swc/jest": "^0.2.22",
|
|
76
78
|
"@types/webpack-env": "^1.15.2",
|
|
77
79
|
"@typescript-eslint/eslint-plugin": "^5.9.0",
|
|
78
80
|
"@typescript-eslint/parser": "^5.9.0",
|
|
@@ -92,7 +94,7 @@ var dependencies = {
|
|
|
92
94
|
"eslint-formatter-friendly": "^7.0.0",
|
|
93
95
|
"eslint-plugin-deprecation": "^1.3.2",
|
|
94
96
|
"eslint-plugin-import": "^2.25.4",
|
|
95
|
-
"eslint-plugin-jest": "^
|
|
97
|
+
"eslint-plugin-jest": "^27.0.0",
|
|
96
98
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
97
99
|
"eslint-plugin-monorepo": "^0.3.2",
|
|
98
100
|
"eslint-plugin-react": "^7.28.0",
|
|
@@ -107,8 +109,8 @@ var dependencies = {
|
|
|
107
109
|
"html-webpack-plugin": "^5.3.1",
|
|
108
110
|
inquirer: "^8.2.0",
|
|
109
111
|
jest: "^27.5.1",
|
|
110
|
-
"jest-runtime": "^27.5.1",
|
|
111
112
|
"jest-css-modules": "^2.1.0",
|
|
113
|
+
"jest-runtime": "^27.5.1",
|
|
112
114
|
"jest-transform-yaml": "^1.0.0",
|
|
113
115
|
"json-schema": "^0.4.0",
|
|
114
116
|
lodash: "^4.17.21",
|
|
@@ -121,7 +123,7 @@ var dependencies = {
|
|
|
121
123
|
postcss: "^8.1.0",
|
|
122
124
|
process: "^0.11.10",
|
|
123
125
|
"react-dev-utils": "^12.0.0-next.60",
|
|
124
|
-
"react-
|
|
126
|
+
"react-refresh": "^0.14.0",
|
|
125
127
|
"recursive-readdir": "^2.2.2",
|
|
126
128
|
"replace-in-file": "^6.0.0",
|
|
127
129
|
rollup: "^2.60.2",
|
|
@@ -133,10 +135,11 @@ var dependencies = {
|
|
|
133
135
|
semver: "^7.3.2",
|
|
134
136
|
"style-loader": "^3.3.1",
|
|
135
137
|
sucrase: "^3.20.2",
|
|
138
|
+
"swc-loader": "^0.2.3",
|
|
136
139
|
tar: "^6.1.2",
|
|
137
140
|
"terser-webpack-plugin": "^5.1.3",
|
|
138
141
|
util: "^0.12.3",
|
|
139
|
-
webpack: "^5.
|
|
142
|
+
webpack: "^5.70.0",
|
|
140
143
|
"webpack-dev-server": "^4.7.3",
|
|
141
144
|
"webpack-node-externals": "^3.0.0",
|
|
142
145
|
yaml: "^2.0.0",
|
|
@@ -145,20 +148,20 @@ var dependencies = {
|
|
|
145
148
|
zod: "^3.11.6"
|
|
146
149
|
};
|
|
147
150
|
var devDependencies = {
|
|
148
|
-
"@backstage/backend-common": "^0.15.
|
|
151
|
+
"@backstage/backend-common": "^0.15.1-next.2",
|
|
149
152
|
"@backstage/config": "^1.0.1",
|
|
150
|
-
"@backstage/core-app-api": "^1.0.
|
|
151
|
-
"@backstage/core-components": "^0.11.
|
|
152
|
-
"@backstage/core-plugin-api": "^1.0.
|
|
153
|
-
"@backstage/dev-utils": "^1.0.
|
|
154
|
-
"@backstage/test-utils": "^1.
|
|
153
|
+
"@backstage/core-app-api": "^1.1.0-next.2",
|
|
154
|
+
"@backstage/core-components": "^0.11.1-next.2",
|
|
155
|
+
"@backstage/core-plugin-api": "^1.0.6-next.2",
|
|
156
|
+
"@backstage/dev-utils": "^1.0.6-next.1",
|
|
157
|
+
"@backstage/test-utils": "^1.2.0-next.2",
|
|
155
158
|
"@backstage/theme": "^0.2.16",
|
|
156
159
|
"@types/diff": "^5.0.0",
|
|
157
160
|
"@types/express": "^4.17.6",
|
|
158
161
|
"@types/fs-extra": "^9.0.1",
|
|
159
162
|
"@types/http-proxy": "^1.17.4",
|
|
160
163
|
"@types/inquirer": "^8.1.3",
|
|
161
|
-
"@types/minimatch": "^
|
|
164
|
+
"@types/minimatch": "^5.0.0",
|
|
162
165
|
"@types/mock-fs": "^4.13.0",
|
|
163
166
|
"@types/node": "^16.11.26",
|
|
164
167
|
"@types/npm-packlist": "^3.0.0",
|
|
@@ -171,26 +174,27 @@ var devDependencies = {
|
|
|
171
174
|
"@types/yarnpkg__lockfile": "^1.1.4",
|
|
172
175
|
del: "^6.0.0",
|
|
173
176
|
"mock-fs": "^5.1.0",
|
|
174
|
-
msw: "^0.
|
|
177
|
+
msw: "^0.47.0",
|
|
175
178
|
nodemon: "^2.0.2",
|
|
176
|
-
"ts-node": "^10.0.0"
|
|
179
|
+
"ts-node": "^10.0.0",
|
|
180
|
+
"type-fest": "^2.0.0"
|
|
177
181
|
};
|
|
178
182
|
|
|
179
183
|
var version$8 = "1.0.1";
|
|
180
184
|
|
|
181
|
-
var version$7 = "1.0.
|
|
185
|
+
var version$7 = "1.1.0-next.2";
|
|
182
186
|
|
|
183
|
-
var version$6 = "0.11.
|
|
187
|
+
var version$6 = "0.11.1-next.2";
|
|
184
188
|
|
|
185
|
-
var version$5 = "1.0.
|
|
189
|
+
var version$5 = "1.0.6-next.2";
|
|
186
190
|
|
|
187
|
-
var version$4 = "1.0.
|
|
191
|
+
var version$4 = "1.0.6-next.1";
|
|
188
192
|
|
|
189
|
-
var version$3 = "1.
|
|
193
|
+
var version$3 = "1.2.0-next.2";
|
|
190
194
|
|
|
191
195
|
var version$2 = "0.2.16";
|
|
192
196
|
|
|
193
|
-
var version$1 = "1.
|
|
197
|
+
var version$1 = "1.6.0-next.2";
|
|
194
198
|
|
|
195
199
|
const packageVersions = {
|
|
196
200
|
"@backstage/backend-common": version$a,
|
|
@@ -255,7 +259,7 @@ function registerRepoCommand(program) {
|
|
|
255
259
|
).option(
|
|
256
260
|
"--since <ref>",
|
|
257
261
|
"Only build packages and their dev dependents that changed since the specified ref"
|
|
258
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
262
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./build-1348e377.cjs.js'); }).then((m) => m.command)));
|
|
259
263
|
command.command("lint").description("Lint all packages in the project").option(
|
|
260
264
|
"--format <format>",
|
|
261
265
|
"Lint report output format",
|
|
@@ -263,9 +267,10 @@ function registerRepoCommand(program) {
|
|
|
263
267
|
).option(
|
|
264
268
|
"--since <ref>",
|
|
265
269
|
"Only lint packages that changed since the specified ref"
|
|
266
|
-
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
270
|
+
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-df95a247.cjs.js'); }).then((m) => m.command)));
|
|
271
|
+
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-314d90b0.cjs.js'); }).then((m) => m.command)));
|
|
267
272
|
command.command("list-deprecations", { hidden: true }).description("List deprecations. [EXPERIMENTAL]").option("--json", "Output as JSON").action(
|
|
268
|
-
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-
|
|
273
|
+
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-91fc7b6c.cjs.js'); }).then((m) => m.command))
|
|
269
274
|
);
|
|
270
275
|
}
|
|
271
276
|
function registerScriptCommand(program) {
|
|
@@ -273,7 +278,7 @@ function registerScriptCommand(program) {
|
|
|
273
278
|
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(
|
|
274
279
|
"--inspect-brk",
|
|
275
280
|
"Enable debugger in Node.js environments, breaking before code starts"
|
|
276
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
281
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-a0a5df42.cjs.js'); }).then((m) => m.command)));
|
|
277
282
|
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
|
|
278
283
|
"--minify",
|
|
279
284
|
"Minify the generated code. Does not apply to app or backend packages."
|
|
@@ -291,32 +296,37 @@ function registerScriptCommand(program) {
|
|
|
291
296
|
"Config files to load instead of app-config.yaml. Applies to app packages only.",
|
|
292
297
|
(opt, opts) => opts ? [...opts, opt] : [opt],
|
|
293
298
|
Array()
|
|
294
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
299
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-438ca541.cjs.js'); }).then((m) => m.command)));
|
|
295
300
|
command.command("lint [directories...]").option(
|
|
296
301
|
"--format <format>",
|
|
297
302
|
"Lint report output format",
|
|
298
303
|
"eslint-formatter-friendly"
|
|
299
|
-
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
300
|
-
command.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
301
|
-
command.command("fix", { hidden: true }).description("Applies automated fixes to the package. [EXPERIMENTAL]").option("--deps", "Only fix monorepo dependencies in package.json").action(lazy(() => Promise.resolve().then(function () { return require('./fix-
|
|
302
|
-
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
303
|
-
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
304
|
-
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
304
|
+
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-4260c3e6.cjs.js'); }).then((m) => m.default)));
|
|
305
|
+
command.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-130c28c6.cjs.js'); }).then((m) => m.default)));
|
|
306
|
+
command.command("fix", { hidden: true }).description("Applies automated fixes to the package. [EXPERIMENTAL]").option("--deps", "Only fix monorepo dependencies in package.json").action(lazy(() => Promise.resolve().then(function () { return require('./fix-37c5344c.cjs.js'); }).then((m) => m.command)));
|
|
307
|
+
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-6c2e6474.cjs.js'); }).then((m) => m.default)));
|
|
308
|
+
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-c1ade706.cjs.js'); }).then((m) => m.pre)));
|
|
309
|
+
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-c1ade706.cjs.js'); }).then((m) => m.post)));
|
|
305
310
|
}
|
|
306
311
|
function registerMigrateCommand(program) {
|
|
307
312
|
const command = program.command("migrate [command]").description("Migration utilities");
|
|
308
|
-
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-
|
|
313
|
+
command.command("package-roles").description(`Add package role field to packages that don't have it`).action(lazy(() => Promise.resolve().then(function () { return require('./packageRole-4afa588d.cjs.js'); }).then((m) => m.default)));
|
|
309
314
|
command.command("package-scripts").description("Set package scripts according to each package role").action(
|
|
310
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-
|
|
315
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-926909d2.cjs.js'); }).then((m) => m.command))
|
|
311
316
|
);
|
|
312
317
|
command.command("package-lint-configs").description(
|
|
313
318
|
"Migrates all packages to use @backstage/cli/config/eslint-factory"
|
|
314
319
|
).action(
|
|
315
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-
|
|
320
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-dd31914f.cjs.js'); }).then((m) => m.command))
|
|
321
|
+
);
|
|
322
|
+
command.command("react-router-deps").description(
|
|
323
|
+
"Migrates the react-router dependencies for all packages to be peer dependencies"
|
|
324
|
+
).action(
|
|
325
|
+
lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-b22fb782.cjs.js'); }).then((m) => m.command))
|
|
316
326
|
);
|
|
317
327
|
}
|
|
318
328
|
function registerCommands(program) {
|
|
319
|
-
program.command("
|
|
329
|
+
program.command("new").storeOptionsAsProperties(false).description(
|
|
320
330
|
"Open up an interactive guide to creating new things in your app"
|
|
321
331
|
).option(
|
|
322
332
|
"--select <name>",
|
|
@@ -329,41 +339,60 @@ function registerCommands(program) {
|
|
|
329
339
|
).option("--scope <scope>", "The scope to use for new packages").option(
|
|
330
340
|
"--npm-registry <URL>",
|
|
331
341
|
"The package registry to use for new packages"
|
|
332
|
-
).option(
|
|
333
|
-
|
|
342
|
+
).option(
|
|
343
|
+
"--baseVersion <version>",
|
|
344
|
+
"The version to use for any new packages (default: 0.1.0)"
|
|
345
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-2e629087.cjs.js'); }).then((m) => m.default)));
|
|
346
|
+
program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
|
|
347
|
+
"Open up an interactive guide to creating new things in your app [DEPRECATED]"
|
|
348
|
+
).option(
|
|
349
|
+
"--select <name>",
|
|
350
|
+
"Select the thing you want to be creating upfront"
|
|
351
|
+
).option(
|
|
352
|
+
"--option <name>=<value>",
|
|
353
|
+
"Pre-fill options for the creation process",
|
|
354
|
+
(opt, arr) => [...arr, opt],
|
|
355
|
+
[]
|
|
356
|
+
).option("--scope <scope>", "The scope to use for new packages").option(
|
|
357
|
+
"--npm-registry <URL>",
|
|
358
|
+
"The package registry to use for new packages"
|
|
359
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-2e629087.cjs.js'); }).then((m) => m.default)));
|
|
360
|
+
program.command("create-plugin", { hidden: true }).option(
|
|
334
361
|
"--backend",
|
|
335
362
|
"Create plugin with the backend dependencies as default"
|
|
336
|
-
).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(
|
|
337
|
-
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-
|
|
363
|
+
).description("Creates a new plugin in the current repository [DEPRECATED]").option("--scope <scope>", "npm scope").option("--npm-registry <URL>", "npm registry URL").option("--no-private", "Public npm package").action(
|
|
364
|
+
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-bbb0c1ce.cjs.js'); }).then((m) => m.default))
|
|
338
365
|
);
|
|
339
|
-
program.command("plugin:diff").option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
|
|
366
|
+
program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
|
|
367
|
+
"Diff an existing plugin with the creation template [DEPRECATED]"
|
|
368
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-ebba1180.cjs.js'); }).then((m) => m.default)));
|
|
340
369
|
program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
|
|
341
370
|
"Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
|
|
342
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
371
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./test-130c28c6.cjs.js'); }).then((m) => m.default)));
|
|
343
372
|
program.command("config:docs").option(
|
|
344
373
|
"--package <name>",
|
|
345
374
|
"Only include the schema that applies to the given package"
|
|
346
|
-
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-
|
|
375
|
+
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-aae92f2e.cjs.js'); }).then((m) => m.default)));
|
|
347
376
|
program.command("config:print").option(
|
|
348
377
|
"--package <name>",
|
|
349
378
|
"Only load config schema that applies to the given package"
|
|
350
379
|
).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(
|
|
351
380
|
"--format <format>",
|
|
352
381
|
"Format to print the configuration in, either json or yaml [yaml]"
|
|
353
|
-
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-
|
|
382
|
+
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-71f20339.cjs.js'); }).then((m) => m.default)));
|
|
354
383
|
program.command("config:check").option(
|
|
355
384
|
"--package <name>",
|
|
356
385
|
"Only load config schema that applies to the given package"
|
|
357
386
|
).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(
|
|
358
387
|
"Validate that the given configuration loads and matches schema"
|
|
359
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-
|
|
388
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-48f9f572.cjs.js'); }).then((m) => m.default)));
|
|
360
389
|
program.command("config:schema").option(
|
|
361
390
|
"--package <name>",
|
|
362
391
|
"Only output config schema that applies to the given package"
|
|
363
392
|
).option(
|
|
364
393
|
"--format <format>",
|
|
365
394
|
"Format to print the schema in, either json or yaml [yaml]"
|
|
366
|
-
).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-
|
|
395
|
+
).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-28b70f3e.cjs.js'); }).then((m) => m.default)));
|
|
367
396
|
registerRepoCommand(program);
|
|
368
397
|
registerScriptCommand(program);
|
|
369
398
|
registerMigrateCommand(program);
|
|
@@ -374,16 +403,16 @@ function registerCommands(program) {
|
|
|
374
403
|
"--release <version|next|main>",
|
|
375
404
|
"Bump to a specific Backstage release line or version",
|
|
376
405
|
"main"
|
|
377
|
-
).description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-
|
|
378
|
-
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-
|
|
379
|
-
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
380
|
-
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-
|
|
381
|
-
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
382
|
-
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-
|
|
406
|
+
).description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-03bb3d5a.cjs.js'); }).then((m) => m.default)));
|
|
407
|
+
program.command("versions:check").option("--fix", "Fix any auto-fixable versioning problems").description("Check Backstage package versioning").action(lazy(() => Promise.resolve().then(function () { return require('./lint-c098b94a.cjs.js'); }).then((m) => m.default)));
|
|
408
|
+
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-6c2e6474.cjs.js'); }).then((m) => m.default)));
|
|
409
|
+
program.command("build-workspace <workspace-dir> [packages...]").description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-5a2c7a44.cjs.js'); }).then((m) => m.default)));
|
|
410
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-26e52421.cjs.js'); }).then((m) => m.default)));
|
|
411
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-d8c0e2b2.cjs.js'); }).then((m) => m.default)));
|
|
383
412
|
program.command("install [plugin-id]", { hidden: true }).option(
|
|
384
413
|
"--from <packageJsonFilePath>",
|
|
385
414
|
"Install from a local package.json containing the installation recipe"
|
|
386
|
-
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-
|
|
415
|
+
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-0cefc510.cjs.js'); }).then((m) => m.default)));
|
|
387
416
|
}
|
|
388
417
|
function lazy(getActionFunc) {
|
|
389
418
|
return async (...args) => {
|
|
@@ -427,4 +456,4 @@ exports.devDependencies = devDependencies;
|
|
|
427
456
|
exports.paths = paths;
|
|
428
457
|
exports.version = version;
|
|
429
458
|
exports.version$1 = version$9;
|
|
430
|
-
//# sourceMappingURL=index-
|
|
459
|
+
//# sourceMappingURL=index-477a1b06.cjs.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
|
-
var index = require('./index-
|
|
4
|
+
var index = require('./index-477a1b06.cjs.js');
|
|
5
5
|
var webpack = require('webpack');
|
|
6
|
-
var paths = require('./paths-
|
|
6
|
+
var paths = require('./paths-73d8c4fd.cjs.js');
|
|
7
7
|
require('yn');
|
|
8
8
|
require('path');
|
|
9
9
|
require('react-dev-utils/FileSizeReporter');
|
|
@@ -16,18 +16,19 @@ require('webpack-node-externals');
|
|
|
16
16
|
require('@backstage/cli-common');
|
|
17
17
|
require('@manypkg/get-packages');
|
|
18
18
|
require('mini-css-extract-plugin');
|
|
19
|
-
require('
|
|
19
|
+
require('@pmmmwh/react-refresh-webpack-plugin');
|
|
20
|
+
require('./run-274b954a.cjs.js');
|
|
20
21
|
require('eslint-webpack-plugin');
|
|
21
22
|
require('lodash/pickBy');
|
|
22
23
|
var chalk = require('chalk');
|
|
23
24
|
var WebpackDevServer = require('webpack-dev-server');
|
|
24
25
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
25
26
|
var uniq = require('lodash/uniq');
|
|
26
|
-
var config = require('./config-
|
|
27
|
+
var config = require('./config-0584f4a4.cjs.js');
|
|
27
28
|
var Lockfile = require('./Lockfile-72b7072e.cjs.js');
|
|
28
29
|
require('minimatch');
|
|
29
|
-
var lint = require('./lint-
|
|
30
|
-
var packageRoles = require('./packageRoles-
|
|
30
|
+
var lint = require('./lint-c098b94a.cjs.js');
|
|
31
|
+
var packageRoles = require('./packageRoles-f485bb0b.cjs.js');
|
|
31
32
|
require('commander');
|
|
32
33
|
require('semver');
|
|
33
34
|
require('@backstage/errors');
|
|
@@ -36,7 +37,7 @@ require('child_process');
|
|
|
36
37
|
require('util');
|
|
37
38
|
require('@backstage/config-loader');
|
|
38
39
|
require('@backstage/config');
|
|
39
|
-
require('./PackageGraph-
|
|
40
|
+
require('./PackageGraph-7f6ce640.cjs.js');
|
|
40
41
|
require('@yarnpkg/parsers');
|
|
41
42
|
require('@yarnpkg/lockfile');
|
|
42
43
|
require('lodash/partition');
|
|
@@ -104,7 +105,10 @@ async function serveBundle(options) {
|
|
|
104
105
|
historyApiFallback: {
|
|
105
106
|
disableDotRule: true
|
|
106
107
|
},
|
|
107
|
-
https: url.protocol === "https:"
|
|
108
|
+
https: url.protocol === "https:" ? {
|
|
109
|
+
cert: options.fullConfig.getString("app.https.certificate.cert"),
|
|
110
|
+
key: options.fullConfig.getString("app.https.certificate.key")
|
|
111
|
+
} : false,
|
|
108
112
|
host,
|
|
109
113
|
port,
|
|
110
114
|
proxy: pkg.proxy,
|
|
@@ -240,4 +244,4 @@ async function command(opts) {
|
|
|
240
244
|
}
|
|
241
245
|
|
|
242
246
|
exports.command = command;
|
|
243
|
-
//# sourceMappingURL=index-
|
|
247
|
+
//# sourceMappingURL=index-a0a5df42.cjs.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-477a1b06.cjs.js');
|
|
4
4
|
var os = require('os');
|
|
5
|
-
var run = require('./run-
|
|
5
|
+
var run = require('./run-274b954a.cjs.js');
|
|
6
6
|
var Lockfile = require('./Lockfile-72b7072e.cjs.js');
|
|
7
7
|
require('minimatch');
|
|
8
8
|
require('@manypkg/get-packages');
|
|
@@ -57,4 +57,4 @@ var info = async () => {
|
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
exports["default"] = info;
|
|
60
|
-
//# sourceMappingURL=info-
|
|
60
|
+
//# sourceMappingURL=info-d8c0e2b2.cjs.js.map
|
|
@@ -4,12 +4,12 @@ var fs = require('fs-extra');
|
|
|
4
4
|
require('semver');
|
|
5
5
|
require('@yarnpkg/parsers');
|
|
6
6
|
require('@yarnpkg/lockfile');
|
|
7
|
-
var packages = require('./packages-
|
|
8
|
-
var index = require('./index-
|
|
7
|
+
var packages = require('./packages-c8abe608.cjs.js');
|
|
8
|
+
var index = require('./index-477a1b06.cjs.js');
|
|
9
9
|
var chalk = require('chalk');
|
|
10
10
|
var sortBy = require('lodash/sortBy');
|
|
11
11
|
var groupBy = require('lodash/groupBy');
|
|
12
|
-
var run = require('./run-
|
|
12
|
+
var run = require('./run-274b954a.cjs.js');
|
|
13
13
|
require('minimatch');
|
|
14
14
|
require('@manypkg/get-packages');
|
|
15
15
|
require('commander');
|
|
@@ -267,4 +267,4 @@ var install = async (pluginId, cmd) => {
|
|
|
267
267
|
};
|
|
268
268
|
|
|
269
269
|
exports["default"] = install;
|
|
270
|
-
//# sourceMappingURL=install-
|
|
270
|
+
//# sourceMappingURL=install-0cefc510.cjs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-477a1b06.cjs.js');
|
|
4
4
|
var eslint = require('eslint');
|
|
5
5
|
require('commander');
|
|
6
6
|
require('chalk');
|
|
@@ -33,4 +33,4 @@ var lint = async (directories, opts) => {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
exports["default"] = lint;
|
|
36
|
-
//# sourceMappingURL=lint-
|
|
36
|
+
//# sourceMappingURL=lint-4260c3e6.cjs.js.map
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
var Lockfile = require('./Lockfile-72b7072e.cjs.js');
|
|
4
4
|
require('minimatch');
|
|
5
5
|
require('@manypkg/get-packages');
|
|
6
|
-
require('./run-
|
|
6
|
+
require('./run-274b954a.cjs.js');
|
|
7
7
|
require('chalk');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-477a1b06.cjs.js');
|
|
9
9
|
var partition = require('lodash/partition');
|
|
10
10
|
require('fs-extra');
|
|
11
11
|
require('semver');
|
|
@@ -104,4 +104,4 @@ function logArray(arr, header, each) {
|
|
|
104
104
|
exports["default"] = lint;
|
|
105
105
|
exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
|
|
106
106
|
exports.includedFilter = includedFilter;
|
|
107
|
-
//# sourceMappingURL=lint-
|
|
107
|
+
//# sourceMappingURL=lint-c098b94a.cjs.js.map
|