@backstage/cli 0.22.1-next.0 → 0.22.1-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 +28 -0
- package/dist/cjs/{Lockfile-938c566f.cjs.js → Lockfile-bc3a8337.cjs.js} +9 -1
- package/dist/cjs/{PackageGraph-27139b51.cjs.js → PackageGraph-d9da7b23.cjs.js} +12 -4
- package/dist/cjs/{build-f35ba9d4.cjs.js → build-6779a61a.cjs.js} +10 -10
- package/dist/cjs/{buildBackend-92288964.cjs.js → buildBackend-9d91bb6d.cjs.js} +9 -10
- package/dist/cjs/{buildWorkspace-90af4c50.cjs.js → buildWorkspace-b8998009.cjs.js} +7 -7
- package/dist/cjs/{bump-60e77b71.cjs.js → bump-b3792b9f.cjs.js} +11 -7
- package/dist/cjs/{clean-98730a79.cjs.js → clean-acf50f3a.cjs.js} +2 -2
- package/dist/cjs/{clean-554e75b3.cjs.js → clean-bc937296.cjs.js} +5 -5
- package/dist/cjs/{config-9cbaba35.cjs.js → config-a681b4d3.cjs.js} +4 -3
- package/dist/cjs/{createDistWorkspace-aba632c5.cjs.js → createDistWorkspace-9fdb27fb.cjs.js} +9 -5
- package/dist/cjs/{createPlugin-7c210502.cjs.js → createPlugin-823c2eda.cjs.js} +5 -5
- package/dist/cjs/{diff-4f99d904.cjs.js → diff-aa4a4f88.cjs.js} +4 -2
- package/dist/cjs/{docs-17d299dc.cjs.js → docs-bf1a1e9d.cjs.js} +6 -6
- package/dist/cjs/{fix-7d71aac2.cjs.js → fix-1cea568e.cjs.js} +5 -5
- package/dist/cjs/{index-ff90d0b7.cjs.js → index-37128a30.cjs.js} +2 -2
- package/dist/cjs/{index-a9c742dd.cjs.js → index-55d157d2.cjs.js} +14 -10
- package/dist/cjs/{index-173db28b.cjs.js → index-87524caa.cjs.js} +10 -10
- package/dist/cjs/{index-f37153bc.cjs.js → index-8acf6249.cjs.js} +44 -45
- package/dist/cjs/{info-3d85d4eb.cjs.js → info-095a8cec.cjs.js} +4 -4
- package/dist/cjs/{install-f9de4688.cjs.js → install-9f819fe7.cjs.js} +4 -4
- package/dist/cjs/{lint-524d2657.cjs.js → lint-17f6aab2.cjs.js} +2 -2
- package/dist/cjs/{lint-72ed986c.cjs.js → lint-467da923.cjs.js} +7 -5
- package/dist/cjs/{lint-90c3b7a2.cjs.js → lint-e82970e9.cjs.js} +5 -5
- package/dist/cjs/{list-deprecations-3f44175a.cjs.js → list-deprecations-543ffee8.cjs.js} +5 -5
- package/dist/cjs/{new-812b42ff.cjs.js → new-700afe05.cjs.js} +5 -5
- package/dist/cjs/{pack-7bc68e27.cjs.js → pack-a6012ad4.cjs.js} +2 -2
- package/dist/cjs/{packageLintConfigs-ebf303c2.cjs.js → packageLintConfigs-fb3b621c.cjs.js} +5 -5
- package/dist/cjs/{packageRole-f29a3482.cjs.js → packageRole-af8ea0bc.cjs.js} +3 -3
- package/dist/cjs/{packageRoles-0c615b3b.cjs.js → packageRoles-2010a10e.cjs.js} +2 -2
- package/dist/cjs/{packageScripts-042a9698.cjs.js → packageScripts-9d94f906.cjs.js} +6 -6
- package/dist/cjs/{packages-ba696901.cjs.js → packages-69e88f30.cjs.js} +3 -3
- package/dist/cjs/{paths-517ec1e5.cjs.js → paths-86c86a11.cjs.js} +26 -4
- package/dist/cjs/{print-24588f54.cjs.js → print-e52610e3.cjs.js} +6 -6
- package/dist/cjs/{reactRouterDeps-4f6b592f.cjs.js → reactRouterDeps-d1e177ae.cjs.js} +6 -6
- package/dist/cjs/{run-2ece670f.cjs.js → run-c41b9e63.cjs.js} +2 -2
- package/dist/cjs/{schema-9ac4b8ed.cjs.js → schema-ff978f86.cjs.js} +6 -6
- package/dist/cjs/{tasks-78bc530a.cjs.js → tasks-6e4c0619.cjs.js} +2 -2
- package/dist/cjs/{test-f35bf2af.cjs.js → test-6c4f80c4.cjs.js} +6 -4
- package/dist/cjs/{test-c2d0ed2f.cjs.js → test-c3d76800.cjs.js} +8 -6
- package/dist/cjs/{validate-0f4fd4fc.cjs.js → validate-fe982015.cjs.js} +6 -6
- package/dist/index.cjs.js +1 -1
- package/package.json +11 -12
- package/templates/default-plugin/src/components/ExampleComponent/ExampleComponent.test.tsx.hbs +1 -7
|
@@ -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-8acf6249.cjs.js');
|
|
5
5
|
var webpack = require('webpack');
|
|
6
|
-
var paths = require('./paths-
|
|
6
|
+
var paths = require('./paths-86c86a11.cjs.js');
|
|
7
7
|
require('yn');
|
|
8
8
|
require('path');
|
|
9
9
|
require('react-dev-utils/FileSizeReporter');
|
|
@@ -17,20 +17,20 @@ require('@backstage/cli-common');
|
|
|
17
17
|
require('@manypkg/get-packages');
|
|
18
18
|
require('mini-css-extract-plugin');
|
|
19
19
|
require('@pmmmwh/react-refresh-webpack-plugin');
|
|
20
|
-
require('./run-
|
|
20
|
+
require('./run-c41b9e63.cjs.js');
|
|
21
21
|
require('eslint-webpack-plugin');
|
|
22
22
|
require('lodash/pickBy');
|
|
23
23
|
var chalk = require('chalk');
|
|
24
24
|
var WebpackDevServer = require('webpack-dev-server');
|
|
25
25
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
26
26
|
var uniq = require('lodash/uniq');
|
|
27
|
-
var config = require('./config-
|
|
28
|
-
var Lockfile = require('./Lockfile-
|
|
27
|
+
var config = require('./config-a681b4d3.cjs.js');
|
|
28
|
+
var Lockfile = require('./Lockfile-bc3a8337.cjs.js');
|
|
29
29
|
require('minimatch');
|
|
30
30
|
require('./yarn-6cd89e16.cjs.js');
|
|
31
|
-
var lint = require('./lint-
|
|
32
|
-
var PackageGraph = require('./PackageGraph-
|
|
33
|
-
var packageRoles = require('./packageRoles-
|
|
31
|
+
var lint = require('./lint-467da923.cjs.js');
|
|
32
|
+
var PackageGraph = require('./PackageGraph-d9da7b23.cjs.js');
|
|
33
|
+
var packageRoles = require('./packageRoles-2010a10e.cjs.js');
|
|
34
34
|
require('commander');
|
|
35
35
|
require('semver');
|
|
36
36
|
require('@backstage/errors');
|
|
@@ -104,7 +104,10 @@ async function serveBundle(options) {
|
|
|
104
104
|
directory: paths$1.targetPublic
|
|
105
105
|
} : void 0,
|
|
106
106
|
historyApiFallback: {
|
|
107
|
+
// Paths with dots should still use the history fallback.
|
|
108
|
+
// See https://github.com/facebookincubator/create-react-app/issues/387.
|
|
107
109
|
disableDotRule: true,
|
|
110
|
+
// The index needs to be rewritten relative to the new public path, including subroutes.
|
|
108
111
|
index: `${(_c = config.output) == null ? void 0 : _c.publicPath}index.html`
|
|
109
112
|
},
|
|
110
113
|
https: url.protocol === "https:" ? {
|
|
@@ -114,6 +117,7 @@ async function serveBundle(options) {
|
|
|
114
117
|
host,
|
|
115
118
|
port,
|
|
116
119
|
proxy: pkg.proxy,
|
|
120
|
+
// When the dev server is behind a proxy, the host and public hostname differ
|
|
117
121
|
allowedHosts: [url.hostname],
|
|
118
122
|
client: {
|
|
119
123
|
webSocketURL: "auto://0.0.0.0:0/ws"
|
|
@@ -198,7 +202,7 @@ async function startFrontend(options) {
|
|
|
198
202
|
`\u26A0\uFE0F Conflict between app baseUrl and backend baseUrl:
|
|
199
203
|
|
|
200
204
|
app.baseUrl: ${appBaseUrl}
|
|
201
|
-
backend.baseUrl: ${
|
|
205
|
+
backend.baseUrl: ${backendBaseUrl}
|
|
202
206
|
|
|
203
207
|
Must have unique hostname and/or ports.
|
|
204
208
|
|
|
@@ -247,4 +251,4 @@ async function command(opts) {
|
|
|
247
251
|
}
|
|
248
252
|
|
|
249
253
|
exports.command = command;
|
|
250
|
-
//# sourceMappingURL=index-
|
|
254
|
+
//# sourceMappingURL=index-55d157d2.cjs.js.map
|
|
@@ -1,22 +1,22 @@
|
|
|
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-9fdb27fb.cjs.js');
|
|
4
|
+
var packageRoles = require('./packageRoles-2010a10e.cjs.js');
|
|
5
|
+
var index = require('./index-8acf6249.cjs.js');
|
|
6
|
+
var buildBackend = require('./buildBackend-9d91bb6d.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-c41b9e63.cjs.js');
|
|
14
14
|
require('child_process');
|
|
15
15
|
require('util');
|
|
16
16
|
require('@backstage/errors');
|
|
17
|
-
require('./PackageGraph-
|
|
17
|
+
require('./PackageGraph-d9da7b23.cjs.js');
|
|
18
18
|
require('@manypkg/get-packages');
|
|
19
|
-
require('./Lockfile-
|
|
19
|
+
require('./Lockfile-bc3a8337.cjs.js');
|
|
20
20
|
require('semver');
|
|
21
21
|
require('@yarnpkg/parsers');
|
|
22
22
|
require('@yarnpkg/lockfile');
|
|
@@ -45,7 +45,7 @@ require('html-webpack-plugin');
|
|
|
45
45
|
require('react-dev-utils/ModuleScopePlugin');
|
|
46
46
|
require('run-script-webpack-plugin');
|
|
47
47
|
require('webpack-node-externals');
|
|
48
|
-
require('./paths-
|
|
48
|
+
require('./paths-86c86a11.cjs.js');
|
|
49
49
|
require('mini-css-extract-plugin');
|
|
50
50
|
require('@pmmmwh/react-refresh-webpack-plugin');
|
|
51
51
|
require('eslint-webpack-plugin');
|
|
@@ -55,7 +55,7 @@ require('react-dev-utils/FileSizeReporter');
|
|
|
55
55
|
require('react-dev-utils/formatWebpackMessages');
|
|
56
56
|
require('webpack-dev-server');
|
|
57
57
|
require('react-dev-utils/openBrowser');
|
|
58
|
-
require('./config-
|
|
58
|
+
require('./config-a681b4d3.cjs.js');
|
|
59
59
|
require('@backstage/config-loader');
|
|
60
60
|
require('@backstage/config');
|
|
61
61
|
|
|
@@ -93,4 +93,4 @@ async function command(opts) {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
exports.command = command;
|
|
96
|
-
//# sourceMappingURL=index-
|
|
96
|
+
//# sourceMappingURL=index-87524caa.cjs.js.map
|
|
@@ -46,9 +46,9 @@ class NotFoundError extends CustomError {
|
|
|
46
46
|
|
|
47
47
|
const paths = cliCommon.findPaths(__dirname);
|
|
48
48
|
|
|
49
|
-
var version$a = "0.
|
|
49
|
+
var version$a = "0.18.0-next.1";
|
|
50
50
|
|
|
51
|
-
var version$9 = "0.22.1-next.
|
|
51
|
+
var version$9 = "0.22.1-next.2";
|
|
52
52
|
var dependencies = {
|
|
53
53
|
"@backstage/cli-common": "workspace:^",
|
|
54
54
|
"@backstage/config": "workspace:^",
|
|
@@ -176,25 +176,24 @@ var devDependencies = {
|
|
|
176
176
|
"mock-fs": "^5.1.0",
|
|
177
177
|
msw: "^0.49.0",
|
|
178
178
|
nodemon: "^2.0.2",
|
|
179
|
-
"ts-node": "^10.0.0"
|
|
180
|
-
"type-fest": "^2.0.0"
|
|
179
|
+
"ts-node": "^10.0.0"
|
|
181
180
|
};
|
|
182
181
|
|
|
183
|
-
var version$8 = "1.0.
|
|
182
|
+
var version$8 = "1.0.6-next.0";
|
|
184
183
|
|
|
185
|
-
var version$7 = "1.
|
|
184
|
+
var version$7 = "1.4.0-next.1";
|
|
186
185
|
|
|
187
|
-
var version$6 = "0.12.3-next.
|
|
186
|
+
var version$6 = "0.12.3-next.2";
|
|
188
187
|
|
|
189
|
-
var version$5 = "1.
|
|
188
|
+
var version$5 = "1.3.0-next.1";
|
|
190
189
|
|
|
191
|
-
var version$4 = "1.0.11-next.
|
|
190
|
+
var version$4 = "1.0.11-next.2";
|
|
192
191
|
|
|
193
|
-
var version$3 = "1.2.
|
|
192
|
+
var version$3 = "1.2.4-next.1";
|
|
194
193
|
|
|
195
194
|
var version$2 = "0.2.16";
|
|
196
195
|
|
|
197
|
-
var version$1 = "1.
|
|
196
|
+
var version$1 = "1.10.0-next.2";
|
|
198
197
|
|
|
199
198
|
const packageVersions = {
|
|
200
199
|
"@backstage/backend-common": version$a,
|
|
@@ -265,7 +264,7 @@ function registerRepoCommand(program) {
|
|
|
265
264
|
).option(
|
|
266
265
|
"--since <ref>",
|
|
267
266
|
"Only build packages and their dev dependents that changed since the specified ref"
|
|
268
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
267
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./build-6779a61a.cjs.js'); }).then((m) => m.command)));
|
|
269
268
|
command.command("lint").description("Lint all packages in the project").option(
|
|
270
269
|
"--format <format>",
|
|
271
270
|
"Lint report output format",
|
|
@@ -273,10 +272,10 @@ function registerRepoCommand(program) {
|
|
|
273
272
|
).option(
|
|
274
273
|
"--since <ref>",
|
|
275
274
|
"Only lint packages that changed since the specified ref"
|
|
276
|
-
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
277
|
-
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
275
|
+
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-e82970e9.cjs.js'); }).then((m) => m.command)));
|
|
276
|
+
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-bc937296.cjs.js'); }).then((m) => m.command)));
|
|
278
277
|
command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
|
|
279
|
-
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-
|
|
278
|
+
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-543ffee8.cjs.js'); }).then((m) => m.command))
|
|
280
279
|
);
|
|
281
280
|
command.command("test").allowUnknownOption(true).option(
|
|
282
281
|
"--since <ref>",
|
|
@@ -284,14 +283,14 @@ function registerRepoCommand(program) {
|
|
|
284
283
|
).option(
|
|
285
284
|
"--jest-help",
|
|
286
285
|
"Show help for Jest CLI options, which are passed through"
|
|
287
|
-
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
286
|
+
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-c3d76800.cjs.js'); }).then((m) => m.command)));
|
|
288
287
|
}
|
|
289
288
|
function registerScriptCommand(program) {
|
|
290
289
|
const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
|
|
291
290
|
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(
|
|
292
291
|
"--inspect-brk",
|
|
293
292
|
"Enable debugger in Node.js environments, breaking before code starts"
|
|
294
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
293
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-55d157d2.cjs.js'); }).then((m) => m.command)));
|
|
295
294
|
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
|
|
296
295
|
"--minify",
|
|
297
296
|
"Minify the generated code. Does not apply to app or backend packages."
|
|
@@ -309,33 +308,33 @@ function registerScriptCommand(program) {
|
|
|
309
308
|
"Config files to load instead of app-config.yaml. Applies to app packages only.",
|
|
310
309
|
(opt, opts) => opts ? [...opts, opt] : [opt],
|
|
311
310
|
Array()
|
|
312
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
311
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-87524caa.cjs.js'); }).then((m) => m.command)));
|
|
313
312
|
command.command("lint [directories...]").option(
|
|
314
313
|
"--format <format>",
|
|
315
314
|
"Lint report output format",
|
|
316
315
|
"eslint-formatter-friendly"
|
|
317
|
-
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
318
|
-
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-
|
|
319
|
-
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-
|
|
320
|
-
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
321
|
-
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
322
|
-
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
316
|
+
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-17f6aab2.cjs.js'); }).then((m) => m.default)));
|
|
317
|
+
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-6c4f80c4.cjs.js'); }).then((m) => m.default)));
|
|
318
|
+
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-1cea568e.cjs.js'); }).then((m) => m.command)));
|
|
319
|
+
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-acf50f3a.cjs.js'); }).then((m) => m.default)));
|
|
320
|
+
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-a6012ad4.cjs.js'); }).then((m) => m.pre)));
|
|
321
|
+
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-a6012ad4.cjs.js'); }).then((m) => m.post)));
|
|
323
322
|
}
|
|
324
323
|
function registerMigrateCommand(program) {
|
|
325
324
|
const command = program.command("migrate [command]").description("Migration utilities");
|
|
326
|
-
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-
|
|
325
|
+
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-af8ea0bc.cjs.js'); }).then((m) => m.default)));
|
|
327
326
|
command.command("package-scripts").description("Set package scripts according to each package role").action(
|
|
328
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-
|
|
327
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-9d94f906.cjs.js'); }).then((m) => m.command))
|
|
329
328
|
);
|
|
330
329
|
command.command("package-lint-configs").description(
|
|
331
330
|
"Migrates all packages to use @backstage/cli/config/eslint-factory"
|
|
332
331
|
).action(
|
|
333
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-
|
|
332
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-fb3b621c.cjs.js'); }).then((m) => m.command))
|
|
334
333
|
);
|
|
335
334
|
command.command("react-router-deps").description(
|
|
336
335
|
"Migrates the react-router dependencies for all packages to be peer dependencies"
|
|
337
336
|
).action(
|
|
338
|
-
lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-
|
|
337
|
+
lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-d1e177ae.cjs.js'); }).then((m) => m.command))
|
|
339
338
|
);
|
|
340
339
|
}
|
|
341
340
|
function registerCommands(program) {
|
|
@@ -355,7 +354,7 @@ function registerCommands(program) {
|
|
|
355
354
|
).option(
|
|
356
355
|
"--baseVersion <version>",
|
|
357
356
|
"The version to use for any new packages (default: 0.1.0)"
|
|
358
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
357
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-700afe05.cjs.js'); }).then((m) => m.default)));
|
|
359
358
|
program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
|
|
360
359
|
"Open up an interactive guide to creating new things in your app [DEPRECATED]"
|
|
361
360
|
).option(
|
|
@@ -369,43 +368,43 @@ function registerCommands(program) {
|
|
|
369
368
|
).option("--scope <scope>", "The scope to use for new packages").option(
|
|
370
369
|
"--npm-registry <URL>",
|
|
371
370
|
"The package registry to use for new packages"
|
|
372
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
371
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-700afe05.cjs.js'); }).then((m) => m.default)));
|
|
373
372
|
program.command("create-plugin", { hidden: true }).option(
|
|
374
373
|
"--backend",
|
|
375
374
|
"Create plugin with the backend dependencies as default"
|
|
376
375
|
).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(
|
|
377
|
-
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-
|
|
376
|
+
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-823c2eda.cjs.js'); }).then((m) => m.default))
|
|
378
377
|
);
|
|
379
378
|
program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
|
|
380
379
|
"Diff an existing plugin with the creation template [DEPRECATED]"
|
|
381
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-
|
|
380
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-aa4a4f88.cjs.js'); }).then((m) => m.default)));
|
|
382
381
|
program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
|
|
383
382
|
"Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
|
|
384
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
383
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./test-6c4f80c4.cjs.js'); }).then((m) => m.default)));
|
|
385
384
|
program.command("config:docs").option(
|
|
386
385
|
"--package <name>",
|
|
387
386
|
"Only include the schema that applies to the given package"
|
|
388
|
-
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-
|
|
387
|
+
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-bf1a1e9d.cjs.js'); }).then((m) => m.default)));
|
|
389
388
|
program.command("config:print").option(
|
|
390
389
|
"--package <name>",
|
|
391
390
|
"Only load config schema that applies to the given package"
|
|
392
391
|
).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(
|
|
393
392
|
"--format <format>",
|
|
394
393
|
"Format to print the configuration in, either json or yaml [yaml]"
|
|
395
|
-
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-
|
|
394
|
+
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-e52610e3.cjs.js'); }).then((m) => m.default)));
|
|
396
395
|
program.command("config:check").option(
|
|
397
396
|
"--package <name>",
|
|
398
397
|
"Only load config schema that applies to the given package"
|
|
399
398
|
).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(
|
|
400
399
|
"Validate that the given configuration loads and matches schema"
|
|
401
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-
|
|
400
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-fe982015.cjs.js'); }).then((m) => m.default)));
|
|
402
401
|
program.command("config:schema").option(
|
|
403
402
|
"--package <name>",
|
|
404
403
|
"Only output config schema that applies to the given package"
|
|
405
404
|
).option(
|
|
406
405
|
"--format <format>",
|
|
407
406
|
"Format to print the schema in, either json or yaml [yaml]"
|
|
408
|
-
).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-
|
|
407
|
+
).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-ff978f86.cjs.js'); }).then((m) => m.default)));
|
|
409
408
|
registerRepoCommand(program);
|
|
410
409
|
registerScriptCommand(program);
|
|
411
410
|
registerMigrateCommand(program);
|
|
@@ -416,16 +415,16 @@ function registerCommands(program) {
|
|
|
416
415
|
"--release <version|next|main>",
|
|
417
416
|
"Bump to a specific Backstage release line or version",
|
|
418
417
|
"main"
|
|
419
|
-
).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-
|
|
420
|
-
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-
|
|
421
|
-
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
422
|
-
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-
|
|
423
|
-
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
424
|
-
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-
|
|
418
|
+
).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-b3792b9f.cjs.js'); }).then((m) => m.default)));
|
|
419
|
+
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-467da923.cjs.js'); }).then((m) => m.default)));
|
|
420
|
+
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-acf50f3a.cjs.js'); }).then((m) => m.default)));
|
|
421
|
+
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-b8998009.cjs.js'); }).then((m) => m.default)));
|
|
422
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-37128a30.cjs.js'); }).then((m) => m.default)));
|
|
423
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-095a8cec.cjs.js'); }).then((m) => m.default)));
|
|
425
424
|
program.command("install [plugin-id]", { hidden: true }).option(
|
|
426
425
|
"--from <packageJsonFilePath>",
|
|
427
426
|
"Install from a local package.json containing the installation recipe"
|
|
428
|
-
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-
|
|
427
|
+
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-9f819fe7.cjs.js'); }).then((m) => m.default)));
|
|
429
428
|
}
|
|
430
429
|
function lazy(getActionFunc) {
|
|
431
430
|
return async (...args) => {
|
|
@@ -469,4 +468,4 @@ exports.devDependencies = devDependencies;
|
|
|
469
468
|
exports.paths = paths;
|
|
470
469
|
exports.version = version;
|
|
471
470
|
exports.version$1 = version$9;
|
|
472
|
-
//# sourceMappingURL=index-
|
|
471
|
+
//# sourceMappingURL=index-8acf6249.cjs.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-8acf6249.cjs.js');
|
|
4
4
|
var os = require('os');
|
|
5
|
-
var run = require('./run-
|
|
6
|
-
var Lockfile = require('./Lockfile-
|
|
5
|
+
var run = require('./run-c41b9e63.cjs.js');
|
|
6
|
+
var Lockfile = require('./Lockfile-bc3a8337.cjs.js');
|
|
7
7
|
require('minimatch');
|
|
8
8
|
require('@manypkg/get-packages');
|
|
9
9
|
require('chalk');
|
|
@@ -58,4 +58,4 @@ var info = async () => {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
exports["default"] = info;
|
|
61
|
-
//# sourceMappingURL=info-
|
|
61
|
+
//# sourceMappingURL=info-095a8cec.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-69e88f30.cjs.js');
|
|
8
|
+
var index = require('./index-8acf6249.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-c41b9e63.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-9f819fe7.cjs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-8acf6249.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-17f6aab2.cjs.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Lockfile = require('./Lockfile-
|
|
3
|
+
var Lockfile = require('./Lockfile-bc3a8337.cjs.js');
|
|
4
4
|
require('minimatch');
|
|
5
5
|
require('@manypkg/get-packages');
|
|
6
6
|
require('chalk');
|
|
7
7
|
require('./yarn-6cd89e16.cjs.js');
|
|
8
|
-
require('./run-
|
|
9
|
-
var index = require('./index-
|
|
8
|
+
require('./run-c41b9e63.cjs.js');
|
|
9
|
+
var index = require('./index-8acf6249.cjs.js');
|
|
10
10
|
var partition = require('lodash/partition');
|
|
11
|
-
var PackageGraph = require('./PackageGraph-
|
|
11
|
+
var PackageGraph = require('./PackageGraph-d9da7b23.cjs.js');
|
|
12
12
|
require('fs-extra');
|
|
13
13
|
require('semver');
|
|
14
14
|
require('@yarnpkg/parsers');
|
|
@@ -32,6 +32,8 @@ const FORBID_DUPLICATES = [
|
|
|
32
32
|
];
|
|
33
33
|
const ALLOW_DUPLICATES = [
|
|
34
34
|
/^@backstage\/core-plugin-api$/,
|
|
35
|
+
// Duplicates of libraries are OK
|
|
36
|
+
// TODO(Rugvip): Check this using package role instead
|
|
35
37
|
/^@backstage\/plugin-.*-react$/,
|
|
36
38
|
/^@backstage\/plugin-.*-node$/,
|
|
37
39
|
/^@backstage\/plugin-.*-common$/
|
|
@@ -111,4 +113,4 @@ function logArray(arr, header, each) {
|
|
|
111
113
|
exports["default"] = lint;
|
|
112
114
|
exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
|
|
113
115
|
exports.includedFilter = includedFilter;
|
|
114
|
-
//# sourceMappingURL=lint-
|
|
116
|
+
//# sourceMappingURL=lint-467da923.cjs.js.map
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var path = require('path');
|
|
5
|
-
var PackageGraph = require('./PackageGraph-
|
|
5
|
+
var PackageGraph = require('./PackageGraph-d9da7b23.cjs.js');
|
|
6
6
|
var parallel = require('./parallel-a8f6219c.cjs.js');
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-8acf6249.cjs.js');
|
|
8
8
|
require('@manypkg/get-packages');
|
|
9
9
|
require('@backstage/errors');
|
|
10
10
|
require('child_process');
|
|
11
11
|
require('util');
|
|
12
|
-
require('./Lockfile-
|
|
12
|
+
require('./Lockfile-bc3a8337.cjs.js');
|
|
13
13
|
require('fs-extra');
|
|
14
14
|
require('semver');
|
|
15
15
|
require('@yarnpkg/parsers');
|
|
16
16
|
require('@yarnpkg/lockfile');
|
|
17
17
|
require('minimatch');
|
|
18
18
|
require('./yarn-6cd89e16.cjs.js');
|
|
19
|
-
require('./run-
|
|
19
|
+
require('./run-c41b9e63.cjs.js');
|
|
20
20
|
require('os');
|
|
21
21
|
require('worker_threads');
|
|
22
22
|
require('commander');
|
|
@@ -97,4 +97,4 @@ async function command(opts) {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
exports.command = command;
|
|
100
|
-
//# sourceMappingURL=lint-
|
|
100
|
+
//# sourceMappingURL=lint-e82970e9.cjs.js.map
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var eslint = require('eslint');
|
|
5
5
|
var path = require('path');
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var PackageGraph = require('./PackageGraph-
|
|
6
|
+
var index = require('./index-8acf6249.cjs.js');
|
|
7
|
+
var PackageGraph = require('./PackageGraph-d9da7b23.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('fs-extra');
|
|
10
10
|
require('semver');
|
|
@@ -13,12 +13,12 @@ require('@backstage/errors');
|
|
|
13
13
|
require('@manypkg/get-packages');
|
|
14
14
|
require('child_process');
|
|
15
15
|
require('util');
|
|
16
|
-
require('./Lockfile-
|
|
16
|
+
require('./Lockfile-bc3a8337.cjs.js');
|
|
17
17
|
require('@yarnpkg/parsers');
|
|
18
18
|
require('@yarnpkg/lockfile');
|
|
19
19
|
require('minimatch');
|
|
20
20
|
require('./yarn-6cd89e16.cjs.js');
|
|
21
|
-
require('./run-
|
|
21
|
+
require('./run-c41b9e63.cjs.js');
|
|
22
22
|
|
|
23
23
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
24
24
|
|
|
@@ -85,4 +85,4 @@ async function command(opts) {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
exports.command = command;
|
|
88
|
-
//# sourceMappingURL=list-deprecations-
|
|
88
|
+
//# sourceMappingURL=list-deprecations-543ffee8.cjs.js.map
|
|
@@ -7,13 +7,13 @@ var chalk = require('chalk');
|
|
|
7
7
|
var inquirer = require('inquirer');
|
|
8
8
|
var camelCase = require('lodash/camelCase');
|
|
9
9
|
var upperFirst = require('lodash/upperFirst');
|
|
10
|
-
var index = require('./index-
|
|
11
|
-
var tasks = require('./tasks-
|
|
12
|
-
var Lockfile = require('./Lockfile-
|
|
10
|
+
var index = require('./index-8acf6249.cjs.js');
|
|
11
|
+
var tasks = require('./tasks-6e4c0619.cjs.js');
|
|
12
|
+
var Lockfile = require('./Lockfile-bc3a8337.cjs.js');
|
|
13
13
|
require('minimatch');
|
|
14
14
|
require('@manypkg/get-packages');
|
|
15
15
|
require('./yarn-6cd89e16.cjs.js');
|
|
16
|
-
require('./run-
|
|
16
|
+
require('./run-c41b9e63.cjs.js');
|
|
17
17
|
var partition = require('lodash/partition');
|
|
18
18
|
var errors = require('@backstage/errors');
|
|
19
19
|
require('commander');
|
|
@@ -559,4 +559,4 @@ var _new = async (opts) => {
|
|
|
559
559
|
};
|
|
560
560
|
|
|
561
561
|
exports["default"] = _new;
|
|
562
|
-
//# sourceMappingURL=new-
|
|
562
|
+
//# sourceMappingURL=new-700afe05.cjs.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
|
-
var index = require('./index-
|
|
4
|
+
var index = require('./index-8acf6249.cjs.js');
|
|
5
5
|
var path = require('path');
|
|
6
6
|
require('commander');
|
|
7
7
|
require('chalk');
|
|
@@ -75,4 +75,4 @@ const post = async () => {
|
|
|
75
75
|
|
|
76
76
|
exports.post = post;
|
|
77
77
|
exports.pre = pre;
|
|
78
|
-
//# sourceMappingURL=pack-
|
|
78
|
+
//# sourceMappingURL=pack-a6012ad4.cjs.js.map
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
4
|
var path = require('path');
|
|
5
|
-
var PackageGraph = require('./PackageGraph-
|
|
6
|
-
var run = require('./run-
|
|
5
|
+
var PackageGraph = require('./PackageGraph-d9da7b23.cjs.js');
|
|
6
|
+
var run = require('./run-c41b9e63.cjs.js');
|
|
7
7
|
require('@manypkg/get-packages');
|
|
8
|
-
require('./index-
|
|
8
|
+
require('./index-8acf6249.cjs.js');
|
|
9
9
|
require('commander');
|
|
10
10
|
require('chalk');
|
|
11
11
|
require('semver');
|
|
@@ -13,7 +13,7 @@ require('@backstage/cli-common');
|
|
|
13
13
|
require('@backstage/errors');
|
|
14
14
|
require('child_process');
|
|
15
15
|
require('util');
|
|
16
|
-
require('./Lockfile-
|
|
16
|
+
require('./Lockfile-bc3a8337.cjs.js');
|
|
17
17
|
require('@yarnpkg/parsers');
|
|
18
18
|
require('@yarnpkg/lockfile');
|
|
19
19
|
require('minimatch');
|
|
@@ -85,4 +85,4 @@ async function command() {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
exports.command = command;
|
|
88
|
-
//# sourceMappingURL=packageLintConfigs-
|
|
88
|
+
//# sourceMappingURL=packageLintConfigs-fb3b621c.cjs.js.map
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
4
|
var path = require('path');
|
|
5
5
|
var getPackages = require('@manypkg/get-packages');
|
|
6
|
-
var index = require('./index-
|
|
7
|
-
var packageRoles = require('./packageRoles-
|
|
6
|
+
var index = require('./index-8acf6249.cjs.js');
|
|
7
|
+
var packageRoles = require('./packageRoles-2010a10e.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('semver');
|
|
@@ -56,4 +56,4 @@ var packageRole = async () => {
|
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
exports["default"] = packageRole;
|
|
59
|
-
//# sourceMappingURL=packageRole-
|
|
59
|
+
//# sourceMappingURL=packageRole-af8ea0bc.cjs.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var zod = require('zod');
|
|
4
4
|
var fs = require('fs-extra');
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-8acf6249.cjs.js');
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -157,4 +157,4 @@ exports.detectRoleFromPackage = detectRoleFromPackage;
|
|
|
157
157
|
exports.findRoleFromCommand = findRoleFromCommand;
|
|
158
158
|
exports.getRoleFromPackage = getRoleFromPackage;
|
|
159
159
|
exports.getRoleInfo = getRoleInfo;
|
|
160
|
-
//# sourceMappingURL=packageRoles-
|
|
160
|
+
//# sourceMappingURL=packageRoles-2010a10e.cjs.js.map
|