@backstage/cli 0.22.13-next.2 → 0.22.13
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 +52 -0
- package/dist/cjs/{build-61f12081.cjs.js → build-affb01b7.cjs.js} +15 -14
- package/dist/cjs/{buildBackend-0c9b8029.cjs.js → buildBackend-73e54dc3.cjs.js} +31 -25
- package/dist/cjs/{buildWorkspace-2a1f0741.cjs.js → buildWorkspace-ece5f9da.cjs.js} +4 -4
- package/dist/cjs/{bump-d649b42f.cjs.js → bump-1dddd386.cjs.js} +16 -8
- package/dist/cjs/{clean-9b51fff0.cjs.js → clean-55b54fa4.cjs.js} +2 -2
- package/dist/cjs/{clean-faf08223.cjs.js → clean-6675c657.cjs.js} +2 -2
- package/dist/cjs/{codeowners-8b7e308e.cjs.js → codeowners-3f8b7b3a.cjs.js} +2 -2
- package/dist/cjs/{config-d8ecdd2a.cjs.js → config-d08b981b.cjs.js} +2 -2
- package/dist/cjs/{createDistWorkspace-4ac62b5d.cjs.js → createDistWorkspace-cf86b976.cjs.js} +4 -4
- package/dist/cjs/{createPlugin-d62dc168.cjs.js → createPlugin-6c6fba51.cjs.js} +4 -4
- package/dist/cjs/{diff-a8ef52c5.cjs.js → diff-e5fd1f2e.cjs.js} +2 -2
- package/dist/cjs/{docs-fafae9f2.cjs.js → docs-ea167b53.cjs.js} +3 -3
- package/dist/cjs/fix-28974fe5.cjs.js +164 -0
- package/dist/cjs/{index-11ae10f6.cjs.js → index-2e2d5423.cjs.js} +14 -13
- package/dist/cjs/{index-96b0a17a.cjs.js → index-3a524c78.cjs.js} +2 -2
- package/dist/cjs/{index-a85fa658.cjs.js → index-904f60f5.cjs.js} +52 -37
- package/dist/cjs/{index-0b440be5.cjs.js → index-c8324a66.cjs.js} +52 -48
- package/dist/cjs/{index-0cfc54be.cjs.js → index-f1be1963.cjs.js} +3 -3
- package/dist/cjs/{info-0921439d.cjs.js → info-8566d7dc.cjs.js} +3 -3
- package/dist/cjs/{install-624b65bc.cjs.js → install-a9fa86c1.cjs.js} +4 -4
- package/dist/cjs/{lint-fce006ec.cjs.js → lint-05e9cbe5.cjs.js} +2 -2
- package/dist/cjs/{lint-55bd0e03.cjs.js → lint-3d9078c5.cjs.js} +2 -2
- package/dist/cjs/{lint-fe1ab2e4.cjs.js → lint-f6790ec9.cjs.js} +3 -3
- package/dist/cjs/{list-deprecations-2de96d4f.cjs.js → list-deprecations-fa56cd69.cjs.js} +2 -2
- package/dist/cjs/{new-4b4d19d6.cjs.js → new-5366c4b4.cjs.js} +4 -4
- package/dist/cjs/{pack-70a9f513.cjs.js → pack-d5376906.cjs.js} +2 -2
- package/dist/cjs/{paths-ca13b79a.cjs.js → packageDetection-0bcd55f4.cjs.js} +146 -58
- package/dist/cjs/packageExports-e23f69e2.cjs.js +26 -0
- package/dist/cjs/{packageLintConfigs-f0e77a42.cjs.js → packageLintConfigs-32bb66d9.cjs.js} +3 -3
- package/dist/cjs/{packageRole-9745f723.cjs.js → packageRole-d9549771.cjs.js} +2 -2
- package/dist/cjs/{packages-166b3872.cjs.js → packages-c1806837.cjs.js} +3 -3
- package/dist/cjs/{print-0b2a9205.cjs.js → print-b90121f3.cjs.js} +3 -3
- package/dist/cjs/{role-a3fe9702.cjs.js → role-672b48f1.cjs.js} +2 -2
- package/dist/cjs/{run-31011946.cjs.js → run-c66068ff.cjs.js} +2 -2
- package/dist/cjs/{schema-14cdc4b5.cjs.js → schema-33040c3b.cjs.js} +3 -3
- package/dist/cjs/{test-13508bc1.cjs.js → test-47a8be63.cjs.js} +3 -3
- package/dist/cjs/{test-d9b99821.cjs.js → test-afb4f363.cjs.js} +3 -3
- package/dist/cjs/{validate-19d89965.cjs.js → validate-7baeee87.cjs.js} +3 -3
- package/dist/index.cjs.js +1 -1
- package/package.json +20 -19
- package/templates/default-common-plugin-package/package.json.hbs +1 -0
- package/templates/default-plugin/package.json.hbs +1 -0
- package/templates/default-react-plugin-package/package.json.hbs +1 -0
- package/templates/web-library-package/package.json.hbs +1 -0
- package/dist/cjs/fix-3502b42a.cjs.js +0 -123
- package/dist/cjs/packageExports-50d8546d.cjs.js +0 -93
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var createDistWorkspace = require('./createDistWorkspace-
|
|
4
|
-
var role = require('./role-
|
|
3
|
+
var createDistWorkspace = require('./createDistWorkspace-cf86b976.cjs.js');
|
|
4
|
+
var role = require('./role-672b48f1.cjs.js');
|
|
5
5
|
var cliNode = require('@backstage/cli-node');
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var buildBackend = require('./buildBackend-
|
|
8
|
-
var config = require('./config-
|
|
6
|
+
var index = require('./index-c8324a66.cjs.js');
|
|
7
|
+
var buildBackend = require('./buildBackend-73e54dc3.cjs.js');
|
|
8
|
+
var config = require('./config-d08b981b.cjs.js');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('fs-extra');
|
|
11
11
|
require('path');
|
|
12
12
|
require('os');
|
|
13
13
|
require('tar');
|
|
14
14
|
require('lodash/partition');
|
|
15
|
-
require('./run-
|
|
15
|
+
require('./run-c66068ff.cjs.js');
|
|
16
16
|
require('child_process');
|
|
17
17
|
require('util');
|
|
18
18
|
require('@backstage/errors');
|
|
@@ -36,23 +36,24 @@ require('commander');
|
|
|
36
36
|
require('semver');
|
|
37
37
|
require('@backstage/cli-common');
|
|
38
38
|
require('webpack');
|
|
39
|
+
require('eslint-webpack-plugin');
|
|
39
40
|
require('fork-ts-checker-webpack-plugin');
|
|
40
41
|
require('html-webpack-plugin');
|
|
41
42
|
require('react-dev-utils/ModuleScopePlugin');
|
|
42
43
|
require('run-script-webpack-plugin');
|
|
43
|
-
require('webpack-node-externals');
|
|
44
44
|
require('@manypkg/get-packages');
|
|
45
|
-
require('
|
|
45
|
+
require('webpack-node-externals');
|
|
46
|
+
require('./packageDetection-0bcd55f4.cjs.js');
|
|
47
|
+
require('lodash/pickBy');
|
|
46
48
|
require('mini-css-extract-plugin');
|
|
47
49
|
require('@pmmmwh/react-refresh-webpack-plugin');
|
|
48
|
-
require('eslint-webpack-plugin');
|
|
49
|
-
require('lodash/pickBy');
|
|
50
50
|
require('yn');
|
|
51
|
+
require('chokidar');
|
|
51
52
|
require('react-dev-utils/FileSizeReporter');
|
|
52
53
|
require('react-dev-utils/formatWebpackMessages');
|
|
53
|
-
require('webpack-dev-server');
|
|
54
|
-
require('react-dev-utils/openBrowser');
|
|
55
54
|
require('lodash/uniq');
|
|
55
|
+
require('react-dev-utils/openBrowser');
|
|
56
|
+
require('webpack-dev-server');
|
|
56
57
|
require('@yarnpkg/parsers');
|
|
57
58
|
require('@yarnpkg/lockfile');
|
|
58
59
|
require('minimatch');
|
|
@@ -101,4 +102,4 @@ async function command(opts) {
|
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
exports.command = command;
|
|
104
|
-
//# sourceMappingURL=index-
|
|
105
|
+
//# sourceMappingURL=index-2e2d5423.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-c8324a66.cjs.js');
|
|
8
8
|
var crypto = require('crypto');
|
|
9
9
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
10
10
|
var request = require('@octokit/request');
|
|
@@ -230,4 +230,4 @@ async function verifyGithubOrg(org) {
|
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
exports["default"] = index;
|
|
233
|
-
//# sourceMappingURL=index-
|
|
233
|
+
//# sourceMappingURL=index-3a524c78.cjs.js.map
|
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var role = require('./role-672b48f1.cjs.js');
|
|
3
4
|
var fs = require('fs-extra');
|
|
4
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-c8324a66.cjs.js');
|
|
5
6
|
var webpack = require('webpack');
|
|
6
|
-
var
|
|
7
|
+
var packageDetection = require('./packageDetection-0bcd55f4.cjs.js');
|
|
7
8
|
require('yn');
|
|
8
9
|
var path = require('path');
|
|
9
10
|
require('react-dev-utils/FileSizeReporter');
|
|
10
11
|
require('react-dev-utils/formatWebpackMessages');
|
|
12
|
+
require('eslint-webpack-plugin');
|
|
11
13
|
require('fork-ts-checker-webpack-plugin');
|
|
12
14
|
require('html-webpack-plugin');
|
|
15
|
+
require('@backstage/cli-common');
|
|
13
16
|
require('react-dev-utils/ModuleScopePlugin');
|
|
14
17
|
require('run-script-webpack-plugin');
|
|
15
|
-
require('webpack-node-externals');
|
|
16
|
-
require('@backstage/cli-common');
|
|
17
18
|
require('@manypkg/get-packages');
|
|
19
|
+
require('webpack-node-externals');
|
|
20
|
+
require('lodash/pickBy');
|
|
21
|
+
require('./run-c66068ff.cjs.js');
|
|
18
22
|
require('mini-css-extract-plugin');
|
|
19
23
|
require('@pmmmwh/react-refresh-webpack-plugin');
|
|
20
|
-
require('./run-31011946.cjs.js');
|
|
21
|
-
require('eslint-webpack-plugin');
|
|
22
|
-
require('lodash/pickBy');
|
|
23
24
|
var chalk = require('chalk');
|
|
24
|
-
var
|
|
25
|
-
var openBrowser = require('react-dev-utils/openBrowser');
|
|
26
|
-
var uniq = require('lodash/uniq');
|
|
27
|
-
require('@backstage/config-loader');
|
|
28
|
-
require('@backstage/config');
|
|
25
|
+
var chokidar = require('chokidar');
|
|
29
26
|
var cliNode = require('@backstage/cli-node');
|
|
27
|
+
var uniq = require('lodash/uniq');
|
|
28
|
+
var openBrowser = require('react-dev-utils/openBrowser');
|
|
29
|
+
var WebpackDevServer = require('webpack-dev-server');
|
|
30
30
|
require('semver');
|
|
31
31
|
require('@yarnpkg/parsers');
|
|
32
32
|
require('@yarnpkg/lockfile');
|
|
33
33
|
require('minimatch');
|
|
34
34
|
require('./yarn-6cd89e16.cjs.js');
|
|
35
35
|
require('lodash/partition');
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
require('@backstage/config-loader');
|
|
37
|
+
require('@backstage/config');
|
|
38
38
|
var errors = require('@backstage/errors');
|
|
39
39
|
var debounce = require('lodash/debounce');
|
|
40
|
+
var url = require('url');
|
|
40
41
|
var spawn = require('cross-spawn');
|
|
41
|
-
var
|
|
42
|
+
var lint = require('./lint-f6790ec9.cjs.js');
|
|
43
|
+
var config = require('./config-d08b981b.cjs.js');
|
|
42
44
|
var Lockfile = require('./Lockfile-eced6070.cjs.js');
|
|
43
|
-
var lint = require('./lint-fe1ab2e4.cjs.js');
|
|
44
|
-
var role = require('./role-a3fe9702.cjs.js');
|
|
45
45
|
require('commander');
|
|
46
|
-
require('./svgrTemplate-550efce6.cjs.js');
|
|
47
46
|
require('./entryPoints-0cc55995.cjs.js');
|
|
47
|
+
require('./svgrTemplate-550efce6.cjs.js');
|
|
48
48
|
require('child_process');
|
|
49
49
|
require('util');
|
|
50
50
|
|
|
@@ -53,15 +53,15 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
53
53
|
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|
54
54
|
var webpack__default = /*#__PURE__*/_interopDefaultLegacy(webpack);
|
|
55
55
|
var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
|
|
56
|
-
var WebpackDevServer__default = /*#__PURE__*/_interopDefaultLegacy(WebpackDevServer);
|
|
57
|
-
var openBrowser__default = /*#__PURE__*/_interopDefaultLegacy(openBrowser);
|
|
58
56
|
var uniq__default = /*#__PURE__*/_interopDefaultLegacy(uniq);
|
|
57
|
+
var openBrowser__default = /*#__PURE__*/_interopDefaultLegacy(openBrowser);
|
|
58
|
+
var WebpackDevServer__default = /*#__PURE__*/_interopDefaultLegacy(WebpackDevServer);
|
|
59
59
|
var debounce__default = /*#__PURE__*/_interopDefaultLegacy(debounce);
|
|
60
60
|
var spawn__default = /*#__PURE__*/_interopDefaultLegacy(spawn);
|
|
61
61
|
|
|
62
62
|
async function serveBackend(options) {
|
|
63
|
-
const paths
|
|
64
|
-
const config = await
|
|
63
|
+
const paths = packageDetection.resolveBundlingPaths(options);
|
|
64
|
+
const config = await packageDetection.createBackendConfig(paths, {
|
|
65
65
|
...options,
|
|
66
66
|
isDev: true
|
|
67
67
|
});
|
|
@@ -86,6 +86,8 @@ async function serveBackend(options) {
|
|
|
86
86
|
|
|
87
87
|
async function serveBundle(options) {
|
|
88
88
|
var _a, _b, _c;
|
|
89
|
+
const paths = packageDetection.resolveBundlingPaths(options);
|
|
90
|
+
const targetPkg = await fs__default["default"].readJson(paths.targetPackageJson);
|
|
89
91
|
if (options.verifyVersions) {
|
|
90
92
|
const lockfile = await Lockfile.Lockfile.load(
|
|
91
93
|
index.paths.resolveTargetRoot("yarn.lock")
|
|
@@ -148,20 +150,26 @@ async function serveBundle(options) {
|
|
|
148
150
|
);
|
|
149
151
|
}
|
|
150
152
|
const { frontendConfig, fullConfig } = cliConfig;
|
|
151
|
-
const url =
|
|
153
|
+
const url = packageDetection.resolveBaseUrl(frontendConfig);
|
|
152
154
|
const host = frontendConfig.getOptionalString("app.listen.host") || url.hostname;
|
|
153
155
|
const port = frontendConfig.getOptionalNumber("app.listen.port") || Number(url.port) || (url.protocol === "https:" ? 443 : 80);
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
const detectedModulesEntryPoint = await packageDetection.createDetectedModulesEntryPoint({
|
|
157
|
+
config: fullConfig,
|
|
158
|
+
targetPath: paths.targetPath,
|
|
159
|
+
watch() {
|
|
160
|
+
server == null ? void 0 : server.invalidate();
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
const config$1 = await packageDetection.createConfig(paths, {
|
|
164
|
+
...options,
|
|
158
165
|
checksEnabled: options.checksEnabled,
|
|
159
166
|
isDev: true,
|
|
160
167
|
baseUrl: url,
|
|
161
168
|
frontendConfig,
|
|
162
169
|
getFrontendAppConfigs: () => {
|
|
163
170
|
return latestFrontendAppConfigs;
|
|
164
|
-
}
|
|
171
|
+
},
|
|
172
|
+
additionalEntryPoints: detectedModulesEntryPoint
|
|
165
173
|
});
|
|
166
174
|
const compiler = webpack__default["default"](config$1);
|
|
167
175
|
server = new WebpackDevServer__default["default"](
|
|
@@ -171,9 +179,9 @@ async function serveBundle(options) {
|
|
|
171
179
|
publicPath: (_a = config$1.output) == null ? void 0 : _a.publicPath,
|
|
172
180
|
stats: "errors-warnings"
|
|
173
181
|
},
|
|
174
|
-
static: paths
|
|
182
|
+
static: paths.targetPublic ? {
|
|
175
183
|
publicPath: (_b = config$1.output) == null ? void 0 : _b.publicPath,
|
|
176
|
-
directory: paths
|
|
184
|
+
directory: paths.targetPublic
|
|
177
185
|
} : void 0,
|
|
178
186
|
historyApiFallback: {
|
|
179
187
|
// Paths with dots should still use the history fallback.
|
|
@@ -188,7 +196,7 @@ async function serveBundle(options) {
|
|
|
188
196
|
} : false,
|
|
189
197
|
host,
|
|
190
198
|
port,
|
|
191
|
-
proxy:
|
|
199
|
+
proxy: targetPkg.proxy,
|
|
192
200
|
// When the dev server is behind a proxy, the host and public hostname differ
|
|
193
201
|
allowedHosts: [url.hostname],
|
|
194
202
|
client: {
|
|
@@ -359,7 +367,12 @@ class ServerDataStore {
|
|
|
359
367
|
}
|
|
360
368
|
}
|
|
361
369
|
|
|
362
|
-
const loaderArgs = [
|
|
370
|
+
const loaderArgs = [
|
|
371
|
+
"--require",
|
|
372
|
+
require.resolve("@esbuild-kit/cjs-loader"),
|
|
373
|
+
"--loader",
|
|
374
|
+
require.resolve("@esbuild-kit/esm-loader")
|
|
375
|
+
];
|
|
363
376
|
async function startBackendExperimental(options) {
|
|
364
377
|
const envEnv = process.env;
|
|
365
378
|
if (!envEnv.NODE_ENV) {
|
|
@@ -386,9 +399,11 @@ async function startBackendExperimental(options) {
|
|
|
386
399
|
}
|
|
387
400
|
const optionArgs = new Array();
|
|
388
401
|
if (options.inspectEnabled) {
|
|
389
|
-
|
|
402
|
+
const inspect = typeof options.inspectEnabled === "string" ? `--inspect=${options.inspectEnabled}` : "--inspect";
|
|
403
|
+
optionArgs.push(inspect);
|
|
390
404
|
} else if (options.inspectBrkEnabled) {
|
|
391
|
-
|
|
405
|
+
const inspect = typeof options.inspectBrkEnabled === "string" ? `--inspect-brk=${options.inspectBrkEnabled}` : "--inspect-brk";
|
|
406
|
+
optionArgs.push(inspect);
|
|
392
407
|
}
|
|
393
408
|
const userArgs = process.argv.slice(["node", "backstage-cli", "package", "start"].length).filter((arg) => !optionArgs.includes(arg));
|
|
394
409
|
child = spawn__default["default"](
|
|
@@ -489,8 +504,8 @@ async function command(opts) {
|
|
|
489
504
|
const options = {
|
|
490
505
|
configPaths: opts.config,
|
|
491
506
|
checksEnabled: Boolean(opts.check),
|
|
492
|
-
inspectEnabled:
|
|
493
|
-
inspectBrkEnabled:
|
|
507
|
+
inspectEnabled: opts.inspect,
|
|
508
|
+
inspectBrkEnabled: opts.inspectBrk
|
|
494
509
|
};
|
|
495
510
|
switch (role$1) {
|
|
496
511
|
case "backend":
|
|
@@ -516,4 +531,4 @@ async function command(opts) {
|
|
|
516
531
|
}
|
|
517
532
|
|
|
518
533
|
exports.command = command;
|
|
519
|
-
//# sourceMappingURL=index-
|
|
534
|
+
//# sourceMappingURL=index-904f60f5.cjs.js.map
|
|
@@ -53,13 +53,13 @@ class NotFoundError extends CustomError {
|
|
|
53
53
|
|
|
54
54
|
const paths = cliCommon.findPaths(__dirname);
|
|
55
55
|
|
|
56
|
-
var version$c = "0.19.5
|
|
56
|
+
var version$c = "0.19.5";
|
|
57
57
|
|
|
58
|
-
var version$b = "0.6.3
|
|
58
|
+
var version$b = "0.6.3";
|
|
59
59
|
|
|
60
|
-
var version$a = "0.2.3
|
|
60
|
+
var version$a = "0.2.3";
|
|
61
61
|
|
|
62
|
-
var version$9 = "0.22.13
|
|
62
|
+
var version$9 = "0.22.13";
|
|
63
63
|
var dependencies = {
|
|
64
64
|
"@backstage/catalog-model": "workspace:^",
|
|
65
65
|
"@backstage/cli-common": "workspace:^",
|
|
@@ -72,6 +72,7 @@ var dependencies = {
|
|
|
72
72
|
"@backstage/release-manifests": "workspace:^",
|
|
73
73
|
"@backstage/types": "workspace:^",
|
|
74
74
|
"@esbuild-kit/cjs-loader": "^2.4.1",
|
|
75
|
+
"@esbuild-kit/esm-loader": "^2.5.5",
|
|
75
76
|
"@manypkg/get-packages": "^1.1.3",
|
|
76
77
|
"@octokit/graphql": "^5.0.0",
|
|
77
78
|
"@octokit/graphql-schema": "^13.7.0",
|
|
@@ -205,21 +206,21 @@ var devDependencies = {
|
|
|
205
206
|
"type-fest": "^2.19.0"
|
|
206
207
|
};
|
|
207
208
|
|
|
208
|
-
var version$8 = "1.1.0
|
|
209
|
+
var version$8 = "1.1.0";
|
|
209
210
|
|
|
210
|
-
var version$7 = "1.10.0
|
|
211
|
+
var version$7 = "1.10.0";
|
|
211
212
|
|
|
212
|
-
var version$6 = "0.13.5
|
|
213
|
+
var version$6 = "0.13.5";
|
|
213
214
|
|
|
214
|
-
var version$5 = "1.6.0
|
|
215
|
+
var version$5 = "1.6.0";
|
|
215
216
|
|
|
216
|
-
var version$4 = "1.0.21
|
|
217
|
+
var version$4 = "1.0.21";
|
|
217
218
|
|
|
218
|
-
var version$3 = "1.4.3
|
|
219
|
+
var version$3 = "1.4.3";
|
|
219
220
|
|
|
220
|
-
var version$2 = "0.4.
|
|
221
|
+
var version$2 = "0.4.2";
|
|
221
222
|
|
|
222
|
-
var version$1 = "1.
|
|
223
|
+
var version$1 = "1.17.0";
|
|
223
224
|
|
|
224
225
|
const packageVersions = {
|
|
225
226
|
"@backstage/backend-common": version$c,
|
|
@@ -283,7 +284,7 @@ const configOption = [
|
|
|
283
284
|
Array()
|
|
284
285
|
];
|
|
285
286
|
function registerOnboardCommand(program) {
|
|
286
|
-
program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
287
|
+
program.command("onboard", { hidden: true }).description("Get help setting up your Backstage App.").action(lazy(() => Promise.resolve().then(function () { return require('./index-f1be1963.cjs.js'); }).then((m) => m.command)));
|
|
287
288
|
}
|
|
288
289
|
function registerRepoCommand(program) {
|
|
289
290
|
const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
|
|
@@ -295,7 +296,7 @@ function registerRepoCommand(program) {
|
|
|
295
296
|
).option(
|
|
296
297
|
"--since <ref>",
|
|
297
298
|
"Only build packages and their dev dependents that changed since the specified ref"
|
|
298
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
299
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./build-affb01b7.cjs.js'); }).then((m) => m.command)));
|
|
299
300
|
command.command("lint").description("Lint all packages in the project").option(
|
|
300
301
|
"--format <format>",
|
|
301
302
|
"Lint report output format",
|
|
@@ -303,10 +304,14 @@ function registerRepoCommand(program) {
|
|
|
303
304
|
).option(
|
|
304
305
|
"--since <ref>",
|
|
305
306
|
"Only lint packages that changed since the specified ref"
|
|
306
|
-
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
307
|
-
command.command("
|
|
307
|
+
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-05e9cbe5.cjs.js'); }).then((m) => m.command)));
|
|
308
|
+
command.command("fix").description("Automatically fix packages in the project").option(
|
|
309
|
+
"--check",
|
|
310
|
+
"Fail if any packages would have been changed by the command"
|
|
311
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./fix-28974fe5.cjs.js'); }).then((m) => m.command)));
|
|
312
|
+
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-55b54fa4.cjs.js'); }).then((m) => m.command)));
|
|
308
313
|
command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
|
|
309
|
-
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-
|
|
314
|
+
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-fa56cd69.cjs.js'); }).then((m) => m.command))
|
|
310
315
|
);
|
|
311
316
|
command.command("test").allowUnknownOption(true).option(
|
|
312
317
|
"--since <ref>",
|
|
@@ -314,14 +319,14 @@ function registerRepoCommand(program) {
|
|
|
314
319
|
).option(
|
|
315
320
|
"--jest-help",
|
|
316
321
|
"Show help for Jest CLI options, which are passed through"
|
|
317
|
-
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
322
|
+
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-afb4f363.cjs.js'); }).then((m) => m.command)));
|
|
318
323
|
}
|
|
319
324
|
function registerScriptCommand(program) {
|
|
320
325
|
const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
|
|
321
|
-
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(
|
|
322
|
-
"--inspect-brk",
|
|
326
|
+
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(
|
|
327
|
+
"--inspect-brk [host]",
|
|
323
328
|
"Enable debugger in Node.js environments, breaking before code starts"
|
|
324
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
329
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-904f60f5.cjs.js'); }).then((m) => m.command)));
|
|
325
330
|
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
|
|
326
331
|
"--minify",
|
|
327
332
|
"Minify the generated code. Does not apply to app or backend packages."
|
|
@@ -339,31 +344,30 @@ function registerScriptCommand(program) {
|
|
|
339
344
|
"Config files to load instead of app-config.yaml. Applies to app packages only.",
|
|
340
345
|
(opt, opts) => opts ? [...opts, opt] : [opt],
|
|
341
346
|
Array()
|
|
342
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
347
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-2e2d5423.cjs.js'); }).then((m) => m.command)));
|
|
343
348
|
command.command("lint [directories...]").option(
|
|
344
349
|
"--format <format>",
|
|
345
350
|
"Lint report output format",
|
|
346
351
|
"eslint-formatter-friendly"
|
|
347
|
-
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
348
|
-
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-
|
|
349
|
-
command.command("
|
|
350
|
-
command.command("
|
|
351
|
-
command.command("
|
|
352
|
-
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-70a9f513.cjs.js'); }).then((m) => m.post)));
|
|
352
|
+
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-3d9078c5.cjs.js'); }).then((m) => m.default)));
|
|
353
|
+
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-47a8be63.cjs.js'); }).then((m) => m.default)));
|
|
354
|
+
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-6675c657.cjs.js'); }).then((m) => m.default)));
|
|
355
|
+
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-d5376906.cjs.js'); }).then((m) => m.pre)));
|
|
356
|
+
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-d5376906.cjs.js'); }).then((m) => m.post)));
|
|
353
357
|
}
|
|
354
358
|
function registerMigrateCommand(program) {
|
|
355
359
|
const command = program.command("migrate [command]").description("Migration utilities");
|
|
356
|
-
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-
|
|
360
|
+
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-d9549771.cjs.js'); }).then((m) => m.default)));
|
|
357
361
|
command.command("package-scripts").description("Set package scripts according to each package role").action(
|
|
358
362
|
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-c6721fac.cjs.js'); }).then((m) => m.command))
|
|
359
363
|
);
|
|
360
364
|
command.command("package-exports").description("Synchronize package subpath export definitions").action(
|
|
361
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageExports-
|
|
365
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageExports-e23f69e2.cjs.js'); }).then((m) => m.command))
|
|
362
366
|
);
|
|
363
367
|
command.command("package-lint-configs").description(
|
|
364
368
|
"Migrates all packages to use @backstage/cli/config/eslint-factory"
|
|
365
369
|
).action(
|
|
366
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-
|
|
370
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-32bb66d9.cjs.js'); }).then((m) => m.command))
|
|
367
371
|
);
|
|
368
372
|
command.command("react-router-deps").description(
|
|
369
373
|
"Migrates the react-router dependencies for all packages to be peer dependencies"
|
|
@@ -388,7 +392,7 @@ function registerCommands(program) {
|
|
|
388
392
|
).option(
|
|
389
393
|
"--baseVersion <version>",
|
|
390
394
|
"The version to use for any new packages (default: 0.1.0)"
|
|
391
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
395
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-5366c4b4.cjs.js'); }).then((m) => m.default)));
|
|
392
396
|
program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
|
|
393
397
|
"Open up an interactive guide to creating new things in your app [DEPRECATED]"
|
|
394
398
|
).option(
|
|
@@ -402,30 +406,30 @@ function registerCommands(program) {
|
|
|
402
406
|
).option("--scope <scope>", "The scope to use for new packages").option(
|
|
403
407
|
"--npm-registry <URL>",
|
|
404
408
|
"The package registry to use for new packages"
|
|
405
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
409
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-5366c4b4.cjs.js'); }).then((m) => m.default)));
|
|
406
410
|
program.command("create-plugin", { hidden: true }).option(
|
|
407
411
|
"--backend",
|
|
408
412
|
"Create plugin with the backend dependencies as default"
|
|
409
413
|
).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(
|
|
410
|
-
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-
|
|
414
|
+
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-6c6fba51.cjs.js'); }).then((m) => m.default))
|
|
411
415
|
);
|
|
412
416
|
program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
|
|
413
417
|
"Diff an existing plugin with the creation template [DEPRECATED]"
|
|
414
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-
|
|
418
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-e5fd1f2e.cjs.js'); }).then((m) => m.default)));
|
|
415
419
|
program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
|
|
416
420
|
"Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
|
|
417
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
421
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./test-47a8be63.cjs.js'); }).then((m) => m.default)));
|
|
418
422
|
program.command("config:docs").option(
|
|
419
423
|
"--package <name>",
|
|
420
424
|
"Only include the schema that applies to the given package"
|
|
421
|
-
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-
|
|
425
|
+
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-ea167b53.cjs.js'); }).then((m) => m.default)));
|
|
422
426
|
program.command("config:print").option(
|
|
423
427
|
"--package <name>",
|
|
424
428
|
"Only load config schema that applies to the given package"
|
|
425
429
|
).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(
|
|
426
430
|
"--format <format>",
|
|
427
431
|
"Format to print the configuration in, either json or yaml [yaml]"
|
|
428
|
-
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-
|
|
432
|
+
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-b90121f3.cjs.js'); }).then((m) => m.default)));
|
|
429
433
|
program.command("config:check").option(
|
|
430
434
|
"--package <name>",
|
|
431
435
|
"Only load config schema that applies to the given package"
|
|
@@ -434,14 +438,14 @@ function registerCommands(program) {
|
|
|
434
438
|
"Enable strict config validation, forbidding errors and unknown keys"
|
|
435
439
|
).option(...configOption).description(
|
|
436
440
|
"Validate that the given configuration loads and matches schema"
|
|
437
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-
|
|
441
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-7baeee87.cjs.js'); }).then((m) => m.default)));
|
|
438
442
|
program.command("config:schema").option(
|
|
439
443
|
"--package <name>",
|
|
440
444
|
"Only output config schema that applies to the given package"
|
|
441
445
|
).option(
|
|
442
446
|
"--format <format>",
|
|
443
447
|
"Format to print the schema in, either json or yaml [yaml]"
|
|
444
|
-
).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-
|
|
448
|
+
).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-33040c3b.cjs.js'); }).then((m) => m.default)));
|
|
445
449
|
registerRepoCommand(program);
|
|
446
450
|
registerScriptCommand(program);
|
|
447
451
|
registerMigrateCommand(program);
|
|
@@ -453,19 +457,19 @@ function registerCommands(program) {
|
|
|
453
457
|
"--release <version|next|main>",
|
|
454
458
|
"Bump to a specific Backstage release line or version",
|
|
455
459
|
"main"
|
|
456
|
-
).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-
|
|
457
|
-
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-
|
|
458
|
-
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
460
|
+
).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-1dddd386.cjs.js'); }).then((m) => m.default)));
|
|
461
|
+
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-f6790ec9.cjs.js'); }).then((m) => m.default)));
|
|
462
|
+
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-6675c657.cjs.js'); }).then((m) => m.default)));
|
|
459
463
|
program.command("build-workspace <workspace-dir> [packages...]").option(
|
|
460
464
|
"--alwaysYarnPack",
|
|
461
465
|
"Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
|
|
462
|
-
).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-
|
|
463
|
-
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
464
|
-
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-
|
|
466
|
+
).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-ece5f9da.cjs.js'); }).then((m) => m.default)));
|
|
467
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-3a524c78.cjs.js'); }).then((m) => m.default)));
|
|
468
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-8566d7dc.cjs.js'); }).then((m) => m.default)));
|
|
465
469
|
program.command("install [plugin-id]", { hidden: true }).option(
|
|
466
470
|
"--from <packageJsonFilePath>",
|
|
467
471
|
"Install from a local package.json containing the installation recipe"
|
|
468
|
-
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-
|
|
472
|
+
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-a9fa86c1.cjs.js'); }).then((m) => m.default)));
|
|
469
473
|
}
|
|
470
474
|
function lazy(getActionFunc) {
|
|
471
475
|
return async (...args) => {
|
|
@@ -509,4 +513,4 @@ exports.devDependencies = devDependencies;
|
|
|
509
513
|
exports.paths = paths;
|
|
510
514
|
exports.version = version;
|
|
511
515
|
exports.version$1 = version$9;
|
|
512
|
-
//# sourceMappingURL=index-
|
|
516
|
+
//# sourceMappingURL=index-c8324a66.cjs.js.map
|
|
@@ -9,7 +9,7 @@ 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-d08b981b.cjs.js');
|
|
13
13
|
var catalogModel = require('@backstage/catalog-model');
|
|
14
14
|
var z = require('zod');
|
|
15
15
|
var integration = require('@backstage/integration');
|
|
@@ -24,7 +24,7 @@ require('child_process');
|
|
|
24
24
|
require('@backstage/errors');
|
|
25
25
|
require('@backstage/config-loader');
|
|
26
26
|
require('@backstage/config');
|
|
27
|
-
require('./index-
|
|
27
|
+
require('./index-c8324a66.cjs.js');
|
|
28
28
|
require('commander');
|
|
29
29
|
require('semver');
|
|
30
30
|
require('@manypkg/get-packages');
|
|
@@ -1208,4 +1208,4 @@ async function command() {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
1210
|
exports.command = command;
|
|
1211
|
-
//# sourceMappingURL=index-
|
|
1211
|
+
//# sourceMappingURL=index-f1be1963.cjs.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-c8324a66.cjs.js');
|
|
4
4
|
var os = require('os');
|
|
5
|
-
var run = require('./run-
|
|
5
|
+
var run = require('./run-c66068ff.cjs.js');
|
|
6
6
|
var Lockfile = require('./Lockfile-eced6070.cjs.js');
|
|
7
7
|
require('minimatch');
|
|
8
8
|
require('@manypkg/get-packages');
|
|
@@ -58,4 +58,4 @@ var info = async () => {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
exports["default"] = info;
|
|
61
|
-
//# sourceMappingURL=info-
|
|
61
|
+
//# sourceMappingURL=info-8566d7dc.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-c1806837.cjs.js');
|
|
8
|
+
var index = require('./index-c8324a66.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-c66068ff.cjs.js');
|
|
13
13
|
require('minimatch');
|
|
14
14
|
require('@manypkg/get-packages');
|
|
15
15
|
require('./yarn-6cd89e16.cjs.js');
|
|
@@ -268,4 +268,4 @@ var install = async (pluginId, cmd) => {
|
|
|
268
268
|
};
|
|
269
269
|
|
|
270
270
|
exports["default"] = install;
|
|
271
|
-
//# sourceMappingURL=install-
|
|
271
|
+
//# sourceMappingURL=install-a9fa86c1.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-c8324a66.cjs.js');
|
|
7
7
|
var parallel = require('./parallel-a8f6219c.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-05e9cbe5.cjs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-c8324a66.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-3d9078c5.cjs.js.map
|