@backstage/cli 0.27.1-next.1 → 0.27.1
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 +64 -0
- package/config/webpack-public-path.js +31 -0
- package/dist/cjs/{build-CWgSfGa7.cjs.js → build-D9YZ-dyI.cjs.js} +10 -9
- package/dist/cjs/{buildBackend-DEbegAOg.cjs.js → buildBackend-CmtimF8a.cjs.js} +9 -7
- package/dist/cjs/{buildWorkspace-B0z3tt9J.cjs.js → buildWorkspace-C4wCq5WM.cjs.js} +4 -4
- package/dist/cjs/{bump-D04QfqBe.cjs.js → bump-BQ6YRL6D.cjs.js} +76 -10
- package/dist/cjs/{clean-BEdAwrl-.cjs.js → clean-BllZTky1.cjs.js} +2 -2
- package/dist/cjs/{clean-BZ-rt4Vi.cjs.js → clean-CVl--Ec9.cjs.js} +2 -2
- package/dist/cjs/{codeowners-BnjPN0mh.cjs.js → codeowners-FKKtpciN.cjs.js} +2 -2
- package/dist/cjs/{config-qklGM2Df.cjs.js → config-BMsjTUVf.cjs.js} +2 -2
- package/dist/cjs/{createDistWorkspace-CHXweXXc.cjs.js → createDistWorkspace-DxOWPD6z.cjs.js} +26 -16
- package/dist/cjs/{createPlugin-BL6IF-2G.cjs.js → createPlugin-Dj7O_us6.cjs.js} +5 -5
- package/dist/cjs/{diff-BFp1ykNI.cjs.js → diff-Drt115Zb.cjs.js} +2 -2
- package/dist/cjs/{docs-BJyeZtmo.cjs.js → docs-DPzCP6Jp.cjs.js} +3 -3
- package/dist/cjs/{fix-CuhmjiSh.cjs.js → fix-BM8I_DZ2.cjs.js} +2 -2
- package/dist/cjs/{index-olkGK6rW.cjs.js → index-BgEQ8aeF.cjs.js} +2 -2
- package/dist/cjs/{index-Ksgor-FS.cjs.js → index-CXG8-26G.cjs.js} +6 -6
- package/dist/cjs/{index-wx4GtlYP.cjs.js → index-Cw0lUK20.cjs.js} +10 -9
- package/dist/cjs/{index-Dphv9YXX.cjs.js → index-DRp-18FB.cjs.js} +4 -4
- package/dist/cjs/{index-C_GzNGdx.cjs.js → index-DmUbBCFk.cjs.js} +58 -54
- package/dist/cjs/{info-D4GxuCW1.cjs.js → info-FKrzx-9W.cjs.js} +3 -3
- package/dist/cjs/{install-CYgWqCNS.cjs.js → install-BMA3RshT.cjs.js} +4 -4
- package/dist/cjs/{lint-BrDrGUOd.cjs.js → lint-6vrbdjyg.cjs.js} +2 -2
- package/dist/cjs/{lint-BscdoMED.cjs.js → lint-Cm_9pg85.cjs.js} +2 -2
- package/dist/cjs/{list-deprecations-B8UfuXLT.cjs.js → list-deprecations-C6R3rEyS.cjs.js} +2 -2
- package/dist/cjs/{moduleFederation-CQz_OcQD.cjs.js → moduleFederation-8XXecxLD.cjs.js} +26 -4
- package/dist/cjs/{new-x7QFaSET.cjs.js → new-DJUBFwiF.cjs.js} +23 -8
- package/dist/cjs/{pack-BshFfDf0.cjs.js → pack-BqFGqZb5.cjs.js} +2 -2
- package/dist/cjs/{packageExports-B_7Tw8EV.cjs.js → packageExports-DvjdOWjC.cjs.js} +3 -3
- package/dist/cjs/{packageLintConfigs-R-QHBO2s.cjs.js → packageLintConfigs-DGkvTpBd.cjs.js} +3 -3
- package/dist/cjs/{packageRole-CgKhe_aD.cjs.js → packageRole-CHz7zkIQ.cjs.js} +2 -2
- package/dist/cjs/{packages-D3xm8yrG.cjs.js → packages-Cuogjl7j.cjs.js} +3 -3
- package/dist/cjs/{print-DcrUhffw.cjs.js → print-CQU7JzAh.cjs.js} +3 -3
- package/dist/cjs/{role-Cz4_y0Am.cjs.js → role-8b0z7P0n.cjs.js} +2 -2
- package/dist/cjs/{run-COGwx638.cjs.js → run-CSt1n0F1.cjs.js} +2 -2
- package/dist/cjs/{schema-DD-nctmp.cjs.js → schema-B4250t0W.cjs.js} +3 -3
- package/dist/cjs/{tasks-1Jzu2AFr.cjs.js → tasks-DtAiMv5G.cjs.js} +2 -2
- package/dist/cjs/{test-C_-fQX7I.cjs.js → test-DVUsmgyZ.cjs.js} +3 -3
- package/dist/cjs/{test-BbPSX6DE.cjs.js → test-Diil1uTk.cjs.js} +3 -3
- package/dist/cjs/{validate-BO_SPC57.cjs.js → validate-DDIGkK2r.cjs.js} +3 -3
- package/dist/index.cjs.js +1 -1
- package/package.json +25 -24
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var role = require('./role-
|
|
3
|
+
var role = require('./role-8b0z7P0n.cjs.js');
|
|
4
4
|
var fs = require('fs-extra');
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-DmUbBCFk.cjs.js');
|
|
6
6
|
var webpack = require('webpack');
|
|
7
|
-
var moduleFederation = require('./moduleFederation-
|
|
7
|
+
var moduleFederation = require('./moduleFederation-8XXecxLD.cjs.js');
|
|
8
8
|
require('yn');
|
|
9
9
|
var path = require('path');
|
|
10
10
|
require('react-dev-utils/FileSizeReporter');
|
|
@@ -21,7 +21,7 @@ require('@pmmmwh/react-refresh-webpack-plugin');
|
|
|
21
21
|
require('@manypkg/get-packages');
|
|
22
22
|
require('webpack-node-externals');
|
|
23
23
|
require('lodash/pickBy');
|
|
24
|
-
require('./run-
|
|
24
|
+
require('./run-CSt1n0F1.cjs.js');
|
|
25
25
|
require('mini-css-extract-plugin');
|
|
26
26
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
27
27
|
var WebpackDevServer = require('webpack-dev-server');
|
|
@@ -34,7 +34,7 @@ var errors = require('@backstage/errors');
|
|
|
34
34
|
var debounce = require('lodash/debounce');
|
|
35
35
|
var url = require('url');
|
|
36
36
|
var spawn = require('cross-spawn');
|
|
37
|
-
var config = require('./config-
|
|
37
|
+
var config = require('./config-BMsjTUVf.cjs.js');
|
|
38
38
|
require('commander');
|
|
39
39
|
require('semver');
|
|
40
40
|
require('./entryPoints-CoHH4lBA.cjs.js');
|
|
@@ -619,4 +619,4 @@ async function command(opts) {
|
|
|
619
619
|
}
|
|
620
620
|
|
|
621
621
|
exports.command = command;
|
|
622
|
-
//# sourceMappingURL=index-
|
|
622
|
+
//# sourceMappingURL=index-CXG8-26G.cjs.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var createDistWorkspace = require('./createDistWorkspace-
|
|
4
|
-
var role = require('./role-
|
|
3
|
+
var createDistWorkspace = require('./createDistWorkspace-DxOWPD6z.cjs.js');
|
|
4
|
+
var role = require('./role-8b0z7P0n.cjs.js');
|
|
5
5
|
var cliNode = require('@backstage/cli-node');
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var buildBackend = require('./buildBackend-
|
|
6
|
+
var index = require('./index-DmUbBCFk.cjs.js');
|
|
7
|
+
var buildBackend = require('./buildBackend-CmtimF8a.cjs.js');
|
|
8
8
|
var chalk = require('chalk');
|
|
9
9
|
require('fs-extra');
|
|
10
10
|
require('path');
|
|
@@ -12,7 +12,7 @@ require('p-limit');
|
|
|
12
12
|
require('os');
|
|
13
13
|
require('tar');
|
|
14
14
|
require('lodash/partition');
|
|
15
|
-
require('./run-
|
|
15
|
+
require('./run-CSt1n0F1.cjs.js');
|
|
16
16
|
require('child_process');
|
|
17
17
|
require('util');
|
|
18
18
|
require('@backstage/errors');
|
|
@@ -45,7 +45,7 @@ require('run-script-webpack-plugin');
|
|
|
45
45
|
require('@pmmmwh/react-refresh-webpack-plugin');
|
|
46
46
|
require('@manypkg/get-packages');
|
|
47
47
|
require('webpack-node-externals');
|
|
48
|
-
require('./moduleFederation-
|
|
48
|
+
require('./moduleFederation-8XXecxLD.cjs.js');
|
|
49
49
|
require('lodash/pickBy');
|
|
50
50
|
require('mini-css-extract-plugin');
|
|
51
51
|
require('yn');
|
|
@@ -56,7 +56,7 @@ require('react-dev-utils/FileSizeReporter');
|
|
|
56
56
|
require('react-dev-utils/formatWebpackMessages');
|
|
57
57
|
require('react-dev-utils/openBrowser');
|
|
58
58
|
require('webpack-dev-server');
|
|
59
|
-
require('./config-
|
|
59
|
+
require('./config-BMsjTUVf.cjs.js');
|
|
60
60
|
require('@backstage/config-loader');
|
|
61
61
|
|
|
62
62
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -121,9 +121,10 @@ async function command(opts) {
|
|
|
121
121
|
}
|
|
122
122
|
return createDistWorkspace.buildPackage({
|
|
123
123
|
outputs,
|
|
124
|
-
minify: Boolean(opts.minify)
|
|
124
|
+
minify: Boolean(opts.minify),
|
|
125
|
+
workspacePackages: await cliNode.PackageGraph.listTargetPackages()
|
|
125
126
|
});
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
exports.command = command;
|
|
129
|
-
//# sourceMappingURL=index-
|
|
130
|
+
//# sourceMappingURL=index-Cw0lUK20.cjs.js.map
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var inquirer = require('inquirer');
|
|
5
|
-
var tasks = require('./tasks-
|
|
5
|
+
var tasks = require('./tasks-DtAiMv5G.cjs.js');
|
|
6
6
|
var oauthApp = require('@octokit/oauth-app');
|
|
7
7
|
var fs = require('fs-extra');
|
|
8
8
|
var yaml = require('yaml');
|
|
9
9
|
var cliCommon = require('@backstage/cli-common');
|
|
10
10
|
var path = require('path');
|
|
11
11
|
var differ = require('diff');
|
|
12
|
-
var config = require('./config-
|
|
12
|
+
var config = require('./config-BMsjTUVf.cjs.js');
|
|
13
13
|
var catalogModel = require('@backstage/catalog-model');
|
|
14
14
|
var z = require('zod');
|
|
15
15
|
var integration = require('@backstage/integration');
|
|
@@ -22,7 +22,7 @@ require('util');
|
|
|
22
22
|
require('recursive-readdir');
|
|
23
23
|
require('child_process');
|
|
24
24
|
require('@backstage/errors');
|
|
25
|
-
require('./index-
|
|
25
|
+
require('./index-DmUbBCFk.cjs.js');
|
|
26
26
|
require('commander');
|
|
27
27
|
require('semver');
|
|
28
28
|
require('@backstage/config-loader');
|
|
@@ -1024,4 +1024,4 @@ async function command() {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
1026
1026
|
exports.command = command;
|
|
1027
|
-
//# sourceMappingURL=index-
|
|
1027
|
+
//# sourceMappingURL=index-DRp-18FB.cjs.js.map
|
|
@@ -47,13 +47,13 @@ class NotFoundError extends CustomError {
|
|
|
47
47
|
|
|
48
48
|
const paths = cliCommon.findPaths(__dirname);
|
|
49
49
|
|
|
50
|
-
var version$f = "0.25.0
|
|
50
|
+
var version$f = "0.25.0";
|
|
51
51
|
|
|
52
|
-
var version$e = "0.
|
|
52
|
+
var version$e = "1.0.0";
|
|
53
53
|
|
|
54
|
-
var version$d = "0.
|
|
54
|
+
var version$d = "1.0.0";
|
|
55
55
|
|
|
56
|
-
var version$c = "0.27.1
|
|
56
|
+
var version$c = "0.27.1";
|
|
57
57
|
var dependencies = {
|
|
58
58
|
"@backstage/catalog-model": "workspace:^",
|
|
59
59
|
"@backstage/cli-common": "workspace:^",
|
|
@@ -66,13 +66,13 @@ var dependencies = {
|
|
|
66
66
|
"@backstage/release-manifests": "workspace:^",
|
|
67
67
|
"@backstage/types": "workspace:^",
|
|
68
68
|
"@manypkg/get-packages": "^1.1.3",
|
|
69
|
-
"@module-federation/enhanced": "^0.
|
|
69
|
+
"@module-federation/enhanced": "^0.6.0",
|
|
70
70
|
"@octokit/graphql": "^5.0.0",
|
|
71
71
|
"@octokit/graphql-schema": "^13.7.0",
|
|
72
72
|
"@octokit/oauth-app": "^4.2.0",
|
|
73
73
|
"@octokit/request": "^6.0.0",
|
|
74
74
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
|
|
75
|
-
"@rollup/plugin-commonjs": "^
|
|
75
|
+
"@rollup/plugin-commonjs": "^26.0.0",
|
|
76
76
|
"@rollup/plugin-json": "^6.0.0",
|
|
77
77
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
78
78
|
"@rollup/plugin-yaml": "^4.0.0",
|
|
@@ -111,7 +111,7 @@ var dependencies = {
|
|
|
111
111
|
"eslint-formatter-friendly": "^7.0.0",
|
|
112
112
|
"eslint-plugin-deprecation": "^2.0.0",
|
|
113
113
|
"eslint-plugin-import": "^2.25.4",
|
|
114
|
-
"eslint-plugin-jest": "^
|
|
114
|
+
"eslint-plugin-jest": "^28.0.0",
|
|
115
115
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
116
116
|
"eslint-plugin-react": "^7.28.0",
|
|
117
117
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
@@ -143,6 +143,7 @@ var dependencies = {
|
|
|
143
143
|
pirates: "^4.0.6",
|
|
144
144
|
postcss: "^8.1.0",
|
|
145
145
|
process: "^0.11.10",
|
|
146
|
+
"raw-loader": "^4.0.2",
|
|
146
147
|
"react-dev-utils": "^12.0.0-next.60",
|
|
147
148
|
"react-refresh": "^0.14.0",
|
|
148
149
|
"recursive-readdir": "^2.2.2",
|
|
@@ -195,36 +196,36 @@ var devDependencies = {
|
|
|
195
196
|
"@types/tar": "^6.1.1",
|
|
196
197
|
"@types/terser-webpack-plugin": "^5.0.4",
|
|
197
198
|
"@types/yarnpkg__lockfile": "^1.1.4",
|
|
198
|
-
"@vitejs/plugin-react": "^4.
|
|
199
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
199
200
|
del: "^7.0.0",
|
|
200
201
|
msw: "^1.0.0",
|
|
201
202
|
nodemon: "^3.0.1",
|
|
202
|
-
vite: "^
|
|
203
|
-
"vite-plugin-html": "^3.2.
|
|
203
|
+
vite: "^5.0.0",
|
|
204
|
+
"vite-plugin-html": "^3.2.2",
|
|
204
205
|
"vite-plugin-node-polyfills": "^0.22.0"
|
|
205
206
|
};
|
|
206
207
|
|
|
207
208
|
var version$b = "1.2.0";
|
|
208
209
|
|
|
209
|
-
var version$a = "1.
|
|
210
|
+
var version$a = "1.15.0";
|
|
210
211
|
|
|
211
|
-
var version$9 = "0.
|
|
212
|
+
var version$9 = "0.15.0";
|
|
212
213
|
|
|
213
|
-
var version$8 = "1.9.
|
|
214
|
+
var version$8 = "1.9.4";
|
|
214
215
|
|
|
215
|
-
var version$7 = "1.0
|
|
216
|
+
var version$7 = "1.1.0";
|
|
216
217
|
|
|
217
|
-
var version$6 = "1.6.0
|
|
218
|
+
var version$6 = "1.6.0";
|
|
218
219
|
|
|
219
|
-
var version$5 = "0.4.11
|
|
220
|
+
var version$5 = "0.4.11";
|
|
220
221
|
|
|
221
|
-
var version$4 = "0.23.0
|
|
222
|
+
var version$4 = "0.23.0";
|
|
222
223
|
|
|
223
|
-
var version$3 = "0.2.0
|
|
224
|
+
var version$3 = "0.2.0";
|
|
224
225
|
|
|
225
|
-
var version$2 = "0.5.
|
|
226
|
+
var version$2 = "0.5.7";
|
|
226
227
|
|
|
227
|
-
var version$1 = "0.5.0
|
|
228
|
+
var version$1 = "0.5.0";
|
|
228
229
|
|
|
229
230
|
const packageVersions = {
|
|
230
231
|
"@backstage/backend-common": version$f,
|
|
@@ -290,7 +291,7 @@ const configOption = [
|
|
|
290
291
|
Array()
|
|
291
292
|
];
|
|
292
293
|
function registerOnboardCommand(program) {
|
|
293
|
-
program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
294
|
+
program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-DRp-18FB.cjs.js'); }).then((m) => m.command)));
|
|
294
295
|
}
|
|
295
296
|
function registerRepoCommand(program) {
|
|
296
297
|
const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
|
|
@@ -302,7 +303,10 @@ function registerRepoCommand(program) {
|
|
|
302
303
|
).option(
|
|
303
304
|
"--since <ref>",
|
|
304
305
|
"Only build packages and their dev dependents that changed since the specified ref"
|
|
305
|
-
).
|
|
306
|
+
).option(
|
|
307
|
+
"--minify",
|
|
308
|
+
"Minify the generated code. Does not apply to app package (app is minified by default)."
|
|
309
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./build-D9YZ-dyI.cjs.js'); }).then((m) => m.command)));
|
|
306
310
|
command.command("lint").description("Lint all packages in the project").option(
|
|
307
311
|
"--format <format>",
|
|
308
312
|
"Lint report output format",
|
|
@@ -310,17 +314,17 @@ function registerRepoCommand(program) {
|
|
|
310
314
|
).option(
|
|
311
315
|
"--since <ref>",
|
|
312
316
|
"Only lint packages that changed since the specified ref"
|
|
313
|
-
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
317
|
+
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-Cm_9pg85.cjs.js'); }).then((m) => m.command)));
|
|
314
318
|
command.command("fix").description("Automatically fix packages in the project").option(
|
|
315
319
|
"--publish",
|
|
316
320
|
"Enable additional fixes that only apply when publishing packages"
|
|
317
321
|
).option(
|
|
318
322
|
"--check",
|
|
319
323
|
"Fail if any packages would have been changed by the command"
|
|
320
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./fix-
|
|
321
|
-
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
324
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./fix-BM8I_DZ2.cjs.js'); }).then((m) => m.command)));
|
|
325
|
+
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-CVl--Ec9.cjs.js'); }).then((m) => m.command)));
|
|
322
326
|
command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
|
|
323
|
-
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-
|
|
327
|
+
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-C6R3rEyS.cjs.js'); }).then((m) => m.command))
|
|
324
328
|
);
|
|
325
329
|
command.command("test").allowUnknownOption(true).option(
|
|
326
330
|
"--since <ref>",
|
|
@@ -328,14 +332,14 @@ function registerRepoCommand(program) {
|
|
|
328
332
|
).option(
|
|
329
333
|
"--jest-help",
|
|
330
334
|
"Show help for Jest CLI options, which are passed through"
|
|
331
|
-
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
335
|
+
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-DVUsmgyZ.cjs.js'); }).then((m) => m.command)));
|
|
332
336
|
}
|
|
333
337
|
function registerScriptCommand(program) {
|
|
334
338
|
const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
|
|
335
339
|
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 [host]", "Enable debugger in Node.js environments").option(
|
|
336
340
|
"--inspect-brk [host]",
|
|
337
341
|
"Enable debugger in Node.js environments, breaking before code starts"
|
|
338
|
-
).option("--require <path>", "Add a --require argument to the node process").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
342
|
+
).option("--require <path>", "Add a --require argument to the node process").action(lazy(() => Promise.resolve().then(function () { return require('./index-CXG8-26G.cjs.js'); }).then((m) => m.command)));
|
|
339
343
|
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
|
|
340
344
|
"--minify",
|
|
341
345
|
"Minify the generated code. Does not apply to app package (app is minified by default)."
|
|
@@ -350,30 +354,30 @@ function registerScriptCommand(program) {
|
|
|
350
354
|
"Config files to load instead of app-config.yaml. Applies to app packages only.",
|
|
351
355
|
(opt, opts) => opts ? [...opts, opt] : [opt],
|
|
352
356
|
Array()
|
|
353
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
357
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-Cw0lUK20.cjs.js'); }).then((m) => m.command)));
|
|
354
358
|
command.command("lint [directories...]").option(
|
|
355
359
|
"--format <format>",
|
|
356
360
|
"Lint report output format",
|
|
357
361
|
"eslint-formatter-friendly"
|
|
358
|
-
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
359
|
-
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-
|
|
360
|
-
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
361
|
-
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
362
|
-
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
362
|
+
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-6vrbdjyg.cjs.js'); }).then((m) => m.default)));
|
|
363
|
+
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-Diil1uTk.cjs.js'); }).then((m) => m.default)));
|
|
364
|
+
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-BllZTky1.cjs.js'); }).then((m) => m.default)));
|
|
365
|
+
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-BqFGqZb5.cjs.js'); }).then((m) => m.pre)));
|
|
366
|
+
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-BqFGqZb5.cjs.js'); }).then((m) => m.post)));
|
|
363
367
|
}
|
|
364
368
|
function registerMigrateCommand(program) {
|
|
365
369
|
const command = program.command("migrate [command]").description("Migration utilities");
|
|
366
|
-
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-
|
|
370
|
+
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-CHz7zkIQ.cjs.js'); }).then((m) => m.default)));
|
|
367
371
|
command.command("package-scripts").description("Set package scripts according to each package role").action(
|
|
368
372
|
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-DX6dilK6.cjs.js'); }).then((m) => m.command))
|
|
369
373
|
);
|
|
370
374
|
command.command("package-exports").description("Synchronize package subpath export definitions").action(
|
|
371
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageExports-
|
|
375
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageExports-DvjdOWjC.cjs.js'); }).then((m) => m.command))
|
|
372
376
|
);
|
|
373
377
|
command.command("package-lint-configs").description(
|
|
374
378
|
"Migrates all packages to use @backstage/cli/config/eslint-factory"
|
|
375
379
|
).action(
|
|
376
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-
|
|
380
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-DGkvTpBd.cjs.js'); }).then((m) => m.command))
|
|
377
381
|
);
|
|
378
382
|
command.command("react-router-deps").description(
|
|
379
383
|
"Migrates the react-router dependencies for all packages to be peer dependencies"
|
|
@@ -401,7 +405,7 @@ function registerCommands(program) {
|
|
|
401
405
|
).option(
|
|
402
406
|
"--license <license>",
|
|
403
407
|
"The license to use for any new packages (default: Apache-2.0)"
|
|
404
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
408
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-DJUBFwiF.cjs.js'); }).then((m) => m.default)));
|
|
405
409
|
program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
|
|
406
410
|
"Open up an interactive guide to creating new things in your app [DEPRECATED]"
|
|
407
411
|
).option(
|
|
@@ -415,30 +419,30 @@ function registerCommands(program) {
|
|
|
415
419
|
).option("--scope <scope>", "The scope to use for new packages").option(
|
|
416
420
|
"--npm-registry <URL>",
|
|
417
421
|
"The package registry to use for new packages"
|
|
418
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
422
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-DJUBFwiF.cjs.js'); }).then((m) => m.default)));
|
|
419
423
|
program.command("create-plugin", { hidden: true }).option(
|
|
420
424
|
"--backend",
|
|
421
425
|
"Create plugin with the backend dependencies as default"
|
|
422
426
|
).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(
|
|
423
|
-
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-
|
|
427
|
+
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-Dj7O_us6.cjs.js'); }).then((m) => m.default))
|
|
424
428
|
);
|
|
425
429
|
program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
|
|
426
430
|
"Diff an existing plugin with the creation template [DEPRECATED]"
|
|
427
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-
|
|
431
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-Drt115Zb.cjs.js'); }).then((m) => m.default)));
|
|
428
432
|
program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
|
|
429
433
|
"Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
|
|
430
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
434
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./test-Diil1uTk.cjs.js'); }).then((m) => m.default)));
|
|
431
435
|
program.command("config:docs").option(
|
|
432
436
|
"--package <name>",
|
|
433
437
|
"Only include the schema that applies to the given package"
|
|
434
|
-
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-
|
|
438
|
+
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-DPzCP6Jp.cjs.js'); }).then((m) => m.default)));
|
|
435
439
|
program.command("config:print").option(
|
|
436
440
|
"--package <name>",
|
|
437
441
|
"Only load config schema that applies to the given package"
|
|
438
442
|
).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(
|
|
439
443
|
"--format <format>",
|
|
440
444
|
"Format to print the configuration in, either json or yaml [yaml]"
|
|
441
|
-
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-
|
|
445
|
+
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-CQU7JzAh.cjs.js'); }).then((m) => m.default)));
|
|
442
446
|
program.command("config:check").option(
|
|
443
447
|
"--package <name>",
|
|
444
448
|
"Only load config schema that applies to the given package"
|
|
@@ -447,14 +451,14 @@ function registerCommands(program) {
|
|
|
447
451
|
"Enable strict config validation, forbidding errors and unknown keys"
|
|
448
452
|
).option(...configOption).description(
|
|
449
453
|
"Validate that the given configuration loads and matches schema"
|
|
450
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-
|
|
454
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-DDIGkK2r.cjs.js'); }).then((m) => m.default)));
|
|
451
455
|
program.command("config:schema").option(
|
|
452
456
|
"--package <name>",
|
|
453
457
|
"Only output config schema that applies to the given package"
|
|
454
458
|
).option(
|
|
455
459
|
"--format <format>",
|
|
456
460
|
"Format to print the schema in, either json or yaml [yaml]"
|
|
457
|
-
).option("--merge", "Print the config schemas merged", true).option("--no-merge", "Print the config schemas not merged").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-
|
|
461
|
+
).option("--merge", "Print the config schemas merged", true).option("--no-merge", "Print the config schemas not merged").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-B4250t0W.cjs.js'); }).then((m) => m.default)));
|
|
458
462
|
registerRepoCommand(program);
|
|
459
463
|
registerScriptCommand(program);
|
|
460
464
|
registerMigrateCommand(program);
|
|
@@ -466,7 +470,7 @@ function registerCommands(program) {
|
|
|
466
470
|
"--release <version|next|main>",
|
|
467
471
|
"Bump to a specific Backstage release line or version",
|
|
468
472
|
"main"
|
|
469
|
-
).option("--skip-install", "Skips yarn install step").option("--skip-migrate", "Skips migration of any moved packages").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-
|
|
473
|
+
).option("--skip-install", "Skips yarn install step").option("--skip-migrate", "Skips migration of any moved packages").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-BQ6YRL6D.cjs.js'); }).then(function (n) { return n.bump; }).then((m) => m.default)));
|
|
470
474
|
program.command("versions:check", { hidden: true }).option("--fix", "Fix any auto-fixable versioning problems").description("Check Backstage package versioning").action(lazy(() => Promise.resolve().then(function () { return require('./lint-Dkx_fBkS.cjs.js'); }).then((m) => m.default)));
|
|
471
475
|
program.command("versions:migrate").option(
|
|
472
476
|
"--pattern <glob>",
|
|
@@ -476,18 +480,18 @@ function registerCommands(program) {
|
|
|
476
480
|
"Skip code changes and only update package.json files"
|
|
477
481
|
).description(
|
|
478
482
|
"Migrate any plugins that have been moved to the @backstage-community namespace automatically"
|
|
479
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./bump-
|
|
480
|
-
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
483
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./bump-BQ6YRL6D.cjs.js'); }).then(function (n) { return n.migrate; }).then((m) => m.default)));
|
|
484
|
+
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-BllZTky1.cjs.js'); }).then((m) => m.default)));
|
|
481
485
|
program.command("build-workspace <workspace-dir> [packages...]").option(
|
|
482
486
|
"--alwaysYarnPack",
|
|
483
487
|
"Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
|
|
484
|
-
).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-
|
|
485
|
-
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
486
|
-
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-
|
|
488
|
+
).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-C4wCq5WM.cjs.js'); }).then((m) => m.default)));
|
|
489
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-BgEQ8aeF.cjs.js'); }).then((m) => m.default)));
|
|
490
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-FKrzx-9W.cjs.js'); }).then((m) => m.default)));
|
|
487
491
|
program.command("install [plugin-id]", { hidden: true }).option(
|
|
488
492
|
"--from <packageJsonFilePath>",
|
|
489
493
|
"Install from a local package.json containing the installation recipe"
|
|
490
|
-
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-
|
|
494
|
+
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-BMA3RshT.cjs.js'); }).then((m) => m.default)));
|
|
491
495
|
}
|
|
492
496
|
function lazy(getActionFunc) {
|
|
493
497
|
return async (...args) => {
|
|
@@ -531,4 +535,4 @@ exports.devDependencies = devDependencies;
|
|
|
531
535
|
exports.paths = paths;
|
|
532
536
|
exports.version = version;
|
|
533
537
|
exports.version$1 = version$c;
|
|
534
|
-
//# sourceMappingURL=index-
|
|
538
|
+
//# sourceMappingURL=index-DmUbBCFk.cjs.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DmUbBCFk.cjs.js');
|
|
4
4
|
var os = require('os');
|
|
5
|
-
var run = require('./run-
|
|
5
|
+
var run = require('./run-CSt1n0F1.cjs.js');
|
|
6
6
|
var Lockfile = require('./Lockfile-B4mqBkH6.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-FKrzx-9W.cjs.js.map
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
4
|
require('@yarnpkg/parsers');
|
|
5
5
|
require('@yarnpkg/lockfile');
|
|
6
|
-
var packages = require('./packages-
|
|
7
|
-
var index = require('./index-
|
|
6
|
+
var packages = require('./packages-Cuogjl7j.cjs.js');
|
|
7
|
+
var index = require('./index-DmUbBCFk.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-CSt1n0F1.cjs.js');
|
|
12
12
|
require('minimatch');
|
|
13
13
|
require('@manypkg/get-packages');
|
|
14
14
|
require('./yarn-Ukl9MOS0.cjs.js');
|
|
@@ -265,4 +265,4 @@ var install = async (pluginId, cmd) => {
|
|
|
265
265
|
};
|
|
266
266
|
|
|
267
267
|
exports.default = install;
|
|
268
|
-
//# sourceMappingURL=install-
|
|
268
|
+
//# sourceMappingURL=install-BMA3RshT.cjs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DmUbBCFk.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-6vrbdjyg.cjs.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var path = require('path');
|
|
5
5
|
var cliNode = require('@backstage/cli-node');
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-DmUbBCFk.cjs.js');
|
|
7
7
|
var parallel = require('./parallel-BszNaKyc.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('fs-extra');
|
|
@@ -88,4 +88,4 @@ async function command(opts) {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
exports.command = command;
|
|
91
|
-
//# sourceMappingURL=lint-
|
|
91
|
+
//# sourceMappingURL=lint-Cm_9pg85.cjs.js.map
|
|
@@ -4,7 +4,7 @@ var chalk = require('chalk');
|
|
|
4
4
|
var eslint = require('eslint');
|
|
5
5
|
var path = require('path');
|
|
6
6
|
var cliNode = require('@backstage/cli-node');
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-DmUbBCFk.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('fs-extra');
|
|
10
10
|
require('semver');
|
|
@@ -76,4 +76,4 @@ async function command(opts) {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
exports.command = command;
|
|
79
|
-
//# sourceMappingURL=list-deprecations-
|
|
79
|
+
//# sourceMappingURL=list-deprecations-C6R3rEyS.cjs.js.map
|
|
@@ -11,13 +11,13 @@ var cliCommon = require('@backstage/cli-common');
|
|
|
11
11
|
var ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
|
|
12
12
|
var runScriptWebpackPlugin = require('run-script-webpack-plugin');
|
|
13
13
|
var ReactRefreshPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
|
|
14
|
-
var index = require('./index-
|
|
14
|
+
var index = require('./index-DmUbBCFk.cjs.js');
|
|
15
15
|
var fs = require('fs-extra');
|
|
16
16
|
var getPackages = require('@manypkg/get-packages');
|
|
17
17
|
var nodeExternals = require('webpack-node-externals');
|
|
18
18
|
var pickBy = require('lodash/pickBy');
|
|
19
19
|
var entryPoints = require('./entryPoints-CoHH4lBA.cjs.js');
|
|
20
|
-
var run = require('./run-
|
|
20
|
+
var run = require('./run-CSt1n0F1.cjs.js');
|
|
21
21
|
var MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
22
22
|
var svgrTemplate = require('./svgrTemplate-BTjBQ3by.cjs.js');
|
|
23
23
|
var yn = require('yn');
|
|
@@ -416,6 +416,19 @@ async function createConfig(paths, options) {
|
|
|
416
416
|
}
|
|
417
417
|
})
|
|
418
418
|
);
|
|
419
|
+
plugins.push(
|
|
420
|
+
new HtmlWebpackPlugin__default.default({
|
|
421
|
+
meta: {
|
|
422
|
+
"backstage-app-mode": options?.appMode ?? "public",
|
|
423
|
+
// This is added to be written in the later step, and finally read by the extra entry point
|
|
424
|
+
"backstage-public-path": "<%= publicPath %>/"
|
|
425
|
+
},
|
|
426
|
+
minify: false,
|
|
427
|
+
publicPath: "<%= publicPath %>",
|
|
428
|
+
filename: "index.html.tmpl",
|
|
429
|
+
template: `raw-loader!${paths.targetHtml}`
|
|
430
|
+
})
|
|
431
|
+
);
|
|
419
432
|
}
|
|
420
433
|
if (options.moduleFederation) {
|
|
421
434
|
const isRemote = options.moduleFederation?.mode === "remote";
|
|
@@ -528,6 +541,11 @@ async function createConfig(paths, options) {
|
|
|
528
541
|
return {
|
|
529
542
|
mode,
|
|
530
543
|
profile: false,
|
|
544
|
+
...isDev ? {
|
|
545
|
+
watchOptions: {
|
|
546
|
+
ignored: /node_modules/
|
|
547
|
+
}
|
|
548
|
+
} : {},
|
|
531
549
|
optimization: optimization$1,
|
|
532
550
|
bail: false,
|
|
533
551
|
performance: {
|
|
@@ -536,7 +554,11 @@ async function createConfig(paths, options) {
|
|
|
536
554
|
},
|
|
537
555
|
devtool: isDev ? "eval-cheap-module-source-map" : "source-map",
|
|
538
556
|
context: paths.targetPath,
|
|
539
|
-
entry: [
|
|
557
|
+
entry: [
|
|
558
|
+
require.resolve("@backstage/cli/config/webpack-public-path"),
|
|
559
|
+
...options.additionalEntryPoints ?? [],
|
|
560
|
+
paths.targetEntry
|
|
561
|
+
],
|
|
540
562
|
resolve: {
|
|
541
563
|
extensions: [".ts", ".tsx", ".mjs", ".js", ".jsx", ".json", ".wasm"],
|
|
542
564
|
mainFields: ["browser", "module", "main"],
|
|
@@ -885,4 +907,4 @@ exports.resolveBaseUrl = resolveBaseUrl;
|
|
|
885
907
|
exports.resolveBundlingPaths = resolveBundlingPaths;
|
|
886
908
|
exports.resolveEndpoint = resolveEndpoint;
|
|
887
909
|
exports.resolveOptionalBundlingPaths = resolveOptionalBundlingPaths;
|
|
888
|
-
//# sourceMappingURL=moduleFederation-
|
|
910
|
+
//# sourceMappingURL=moduleFederation-8XXecxLD.cjs.js.map
|