@backstage/cli 0.18.1-next.1 → 0.19.0-next.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 +98 -0
- package/config/eslint-factory.js +1 -1
- package/config/jest.js +3 -3
- package/config/jestSwcTransform.js +35 -0
- package/dist/cjs/{PackageGraph-5d948874.cjs.js → PackageGraph-424871dc.cjs.js} +2 -2
- package/dist/cjs/{build-f78dac97.cjs.js → build-99235d84.cjs.js} +10 -9
- package/dist/cjs/{buildBackend-9ad412b4.cjs.js → buildBackend-39c64859.cjs.js} +7 -6
- package/dist/cjs/{buildWorkspace-14c5555a.cjs.js → buildWorkspace-09512b94.cjs.js} +6 -6
- package/dist/cjs/{bump-63ce7a78.cjs.js → bump-fecbbc0a.cjs.js} +5 -5
- package/dist/cjs/{clean-5cf1e765.cjs.js → clean-cd509a41.cjs.js} +2 -2
- package/dist/cjs/{config-c432602b.cjs.js → config-e2a2d4a6.cjs.js} +3 -3
- package/dist/cjs/{create-e0bcf927.cjs.js → create-86c41604.cjs.js} +4 -4
- package/dist/cjs/{createDistWorkspace-8d497122.cjs.js → createDistWorkspace-82c60398.cjs.js} +5 -5
- package/dist/cjs/{createPlugin-97b1a86c.cjs.js → createPlugin-c26303d8.cjs.js} +4 -4
- package/dist/cjs/{diff-b5e5becb.cjs.js → diff-6a78ec4c.cjs.js} +2 -2
- package/dist/cjs/{docs-8febf088.cjs.js → docs-8e386279.cjs.js} +4 -4
- package/dist/cjs/{fix-59653afd.cjs.js → fix-3c44b003.cjs.js} +3 -3
- package/dist/cjs/{index-4b5ea23c.cjs.js → index-3a4a537f.cjs.js} +10 -9
- package/dist/cjs/{index-64071683.cjs.js → index-82587726.cjs.js} +62 -54
- package/dist/cjs/{index-abf50752.cjs.js → index-d4a2dd72.cjs.js} +10 -8
- package/dist/cjs/{index-7fd003de.cjs.js → index-f798881b.cjs.js} +2 -2
- package/dist/cjs/{info-b7d05969.cjs.js → info-696f22bf.cjs.js} +3 -3
- package/dist/cjs/{install-b17550a5.cjs.js → install-acc8eb12.cjs.js} +4 -4
- package/dist/cjs/{lint-b6a6407d.cjs.js → lint-20a7382f.cjs.js} +3 -3
- package/dist/cjs/{lint-28cd7a0c.cjs.js → lint-886fb5df.cjs.js} +3 -3
- package/dist/cjs/{lint-9116fb03.cjs.js → lint-b1213456.cjs.js} +2 -2
- package/dist/cjs/{list-deprecations-645ddf66.cjs.js → list-deprecations-4273a5a5.cjs.js} +3 -3
- package/dist/cjs/{pack-85bbaf51.cjs.js → pack-b4b51d9e.cjs.js} +2 -2
- package/dist/cjs/{packageLintConfigs-bb58088c.cjs.js → packageLintConfigs-ff7728bc.cjs.js} +4 -4
- package/dist/cjs/{packageRole-295689e7.cjs.js → packageRole-03b55c0a.cjs.js} +3 -3
- package/dist/cjs/{packageRoles-6d4c3119.cjs.js → packageRoles-fdfa8905.cjs.js} +2 -2
- package/dist/cjs/{packageScripts-21f60a13.cjs.js → packageScripts-e960be45.cjs.js} +4 -4
- package/dist/cjs/{packages-e645702a.cjs.js → packages-fab3e760.cjs.js} +3 -3
- package/dist/cjs/{paths-61bae2a9.cjs.js → paths-820ff228.cjs.js} +76 -40
- package/dist/cjs/{print-d340f261.cjs.js → print-b50ffebc.cjs.js} +4 -4
- package/dist/cjs/reactRouterDeps-2399528b.cjs.js +59 -0
- package/dist/cjs/{run-25dfd657.cjs.js → run-0ac37ebd.cjs.js} +2 -2
- package/dist/cjs/{schema-cd2a13c6.cjs.js → schema-a805969e.cjs.js} +4 -4
- package/dist/cjs/{tasks-673f06be.cjs.js → tasks-7770ecc3.cjs.js} +2 -2
- package/dist/cjs/{test-4ea05d08.cjs.js → test-d54a7f33.cjs.js} +3 -3
- package/dist/cjs/{validate-25c75473.cjs.js → validate-a9880467.cjs.js} +4 -4
- package/dist/index.cjs.js +1 -1
- package/package.json +20 -17
- package/templates/default-backend-plugin/package.json.hbs +1 -1
- package/templates/default-plugin/package.json.hbs +1 -1
- package/config/jestEsmTransform.js +0 -19
|
@@ -46,20 +46,19 @@ class NotFoundError extends CustomError {
|
|
|
46
46
|
|
|
47
47
|
const paths = cliCommon.findPaths(__dirname);
|
|
48
48
|
|
|
49
|
-
var version$a = "0.15.
|
|
49
|
+
var version$a = "0.15.1-next.1";
|
|
50
50
|
|
|
51
|
-
var version$9 = "0.
|
|
51
|
+
var version$9 = "0.19.0-next.1";
|
|
52
52
|
var dependencies = {
|
|
53
53
|
"@backstage/cli-common": "^0.1.9",
|
|
54
54
|
"@backstage/config": "^1.0.1",
|
|
55
|
-
"@backstage/config-loader": "^1.1.
|
|
55
|
+
"@backstage/config-loader": "^1.1.4-next.0",
|
|
56
56
|
"@backstage/errors": "^1.1.0",
|
|
57
|
-
"@backstage/release-manifests": "^0.0.
|
|
57
|
+
"@backstage/release-manifests": "^0.0.6-next.0",
|
|
58
58
|
"@backstage/types": "^1.0.0",
|
|
59
|
-
"@hot-loader/react-dom-v16": "npm:@hot-loader/react-dom@^16.0.2",
|
|
60
|
-
"@hot-loader/react-dom-v17": "npm:@hot-loader/react-dom@^17.0.2",
|
|
61
59
|
"@manypkg/get-packages": "^1.1.3",
|
|
62
60
|
"@octokit/request": "^6.0.0",
|
|
61
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
|
|
63
62
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
64
63
|
"@rollup/plugin-json": "^4.1.0",
|
|
65
64
|
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
@@ -73,6 +72,9 @@ var dependencies = {
|
|
|
73
72
|
"@svgr/plugin-svgo": "6.3.x",
|
|
74
73
|
"@svgr/rollup": "6.3.x",
|
|
75
74
|
"@svgr/webpack": "6.3.x",
|
|
75
|
+
"@swc/core": "^1.2.239",
|
|
76
|
+
"@swc/helpers": "^0.4.7",
|
|
77
|
+
"@swc/jest": "^0.2.22",
|
|
76
78
|
"@types/webpack-env": "^1.15.2",
|
|
77
79
|
"@typescript-eslint/eslint-plugin": "^5.9.0",
|
|
78
80
|
"@typescript-eslint/parser": "^5.9.0",
|
|
@@ -92,7 +94,7 @@ var dependencies = {
|
|
|
92
94
|
"eslint-formatter-friendly": "^7.0.0",
|
|
93
95
|
"eslint-plugin-deprecation": "^1.3.2",
|
|
94
96
|
"eslint-plugin-import": "^2.25.4",
|
|
95
|
-
"eslint-plugin-jest": "^
|
|
97
|
+
"eslint-plugin-jest": "^27.0.0",
|
|
96
98
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
97
99
|
"eslint-plugin-monorepo": "^0.3.2",
|
|
98
100
|
"eslint-plugin-react": "^7.28.0",
|
|
@@ -107,8 +109,8 @@ var dependencies = {
|
|
|
107
109
|
"html-webpack-plugin": "^5.3.1",
|
|
108
110
|
inquirer: "^8.2.0",
|
|
109
111
|
jest: "^27.5.1",
|
|
110
|
-
"jest-runtime": "^27.5.1",
|
|
111
112
|
"jest-css-modules": "^2.1.0",
|
|
113
|
+
"jest-runtime": "^27.5.1",
|
|
112
114
|
"jest-transform-yaml": "^1.0.0",
|
|
113
115
|
"json-schema": "^0.4.0",
|
|
114
116
|
lodash: "^4.17.21",
|
|
@@ -121,7 +123,7 @@ var dependencies = {
|
|
|
121
123
|
postcss: "^8.1.0",
|
|
122
124
|
process: "^0.11.10",
|
|
123
125
|
"react-dev-utils": "^12.0.0-next.60",
|
|
124
|
-
"react-
|
|
126
|
+
"react-refresh": "^0.14.0",
|
|
125
127
|
"recursive-readdir": "^2.2.2",
|
|
126
128
|
"replace-in-file": "^6.0.0",
|
|
127
129
|
rollup: "^2.60.2",
|
|
@@ -133,10 +135,11 @@ var dependencies = {
|
|
|
133
135
|
semver: "^7.3.2",
|
|
134
136
|
"style-loader": "^3.3.1",
|
|
135
137
|
sucrase: "^3.20.2",
|
|
138
|
+
"swc-loader": "^0.2.3",
|
|
136
139
|
tar: "^6.1.2",
|
|
137
140
|
"terser-webpack-plugin": "^5.1.3",
|
|
138
141
|
util: "^0.12.3",
|
|
139
|
-
webpack: "^5.
|
|
142
|
+
webpack: "^5.70.0",
|
|
140
143
|
"webpack-dev-server": "^4.7.3",
|
|
141
144
|
"webpack-node-externals": "^3.0.0",
|
|
142
145
|
yaml: "^2.0.0",
|
|
@@ -145,20 +148,20 @@ var dependencies = {
|
|
|
145
148
|
zod: "^3.11.6"
|
|
146
149
|
};
|
|
147
150
|
var devDependencies = {
|
|
148
|
-
"@backstage/backend-common": "^0.15.
|
|
151
|
+
"@backstage/backend-common": "^0.15.1-next.1",
|
|
149
152
|
"@backstage/config": "^1.0.1",
|
|
150
|
-
"@backstage/core-app-api": "^1.0
|
|
151
|
-
"@backstage/core-components": "^0.11.
|
|
152
|
-
"@backstage/core-plugin-api": "^1.0.
|
|
153
|
-
"@backstage/dev-utils": "^1.0.
|
|
154
|
-
"@backstage/test-utils": "^1.
|
|
153
|
+
"@backstage/core-app-api": "^1.1.0-next.1",
|
|
154
|
+
"@backstage/core-components": "^0.11.1-next.1",
|
|
155
|
+
"@backstage/core-plugin-api": "^1.0.6-next.1",
|
|
156
|
+
"@backstage/dev-utils": "^1.0.6-next.1",
|
|
157
|
+
"@backstage/test-utils": "^1.2.0-next.1",
|
|
155
158
|
"@backstage/theme": "^0.2.16",
|
|
156
159
|
"@types/diff": "^5.0.0",
|
|
157
160
|
"@types/express": "^4.17.6",
|
|
158
161
|
"@types/fs-extra": "^9.0.1",
|
|
159
162
|
"@types/http-proxy": "^1.17.4",
|
|
160
163
|
"@types/inquirer": "^8.1.3",
|
|
161
|
-
"@types/minimatch": "^
|
|
164
|
+
"@types/minimatch": "^5.0.0",
|
|
162
165
|
"@types/mock-fs": "^4.13.0",
|
|
163
166
|
"@types/node": "^16.11.26",
|
|
164
167
|
"@types/npm-packlist": "^3.0.0",
|
|
@@ -171,26 +174,26 @@ var devDependencies = {
|
|
|
171
174
|
"@types/yarnpkg__lockfile": "^1.1.4",
|
|
172
175
|
del: "^6.0.0",
|
|
173
176
|
"mock-fs": "^5.1.0",
|
|
174
|
-
msw: "^0.
|
|
177
|
+
msw: "^0.45.0",
|
|
175
178
|
nodemon: "^2.0.2",
|
|
176
179
|
"ts-node": "^10.0.0"
|
|
177
180
|
};
|
|
178
181
|
|
|
179
182
|
var version$8 = "1.0.1";
|
|
180
183
|
|
|
181
|
-
var version$7 = "1.0
|
|
184
|
+
var version$7 = "1.1.0-next.1";
|
|
182
185
|
|
|
183
|
-
var version$6 = "0.11.
|
|
186
|
+
var version$6 = "0.11.1-next.1";
|
|
184
187
|
|
|
185
|
-
var version$5 = "1.0.
|
|
188
|
+
var version$5 = "1.0.6-next.1";
|
|
186
189
|
|
|
187
|
-
var version$4 = "1.0.
|
|
190
|
+
var version$4 = "1.0.6-next.1";
|
|
188
191
|
|
|
189
|
-
var version$3 = "1.
|
|
192
|
+
var version$3 = "1.2.0-next.1";
|
|
190
193
|
|
|
191
194
|
var version$2 = "0.2.16";
|
|
192
195
|
|
|
193
|
-
var version$1 = "1.
|
|
196
|
+
var version$1 = "1.6.0-next.1";
|
|
194
197
|
|
|
195
198
|
const packageVersions = {
|
|
196
199
|
"@backstage/backend-common": version$a,
|
|
@@ -255,7 +258,7 @@ function registerRepoCommand(program) {
|
|
|
255
258
|
).option(
|
|
256
259
|
"--since <ref>",
|
|
257
260
|
"Only build packages and their dev dependents that changed since the specified ref"
|
|
258
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
261
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./build-99235d84.cjs.js'); }).then((m) => m.command)));
|
|
259
262
|
command.command("lint").description("Lint all packages in the project").option(
|
|
260
263
|
"--format <format>",
|
|
261
264
|
"Lint report output format",
|
|
@@ -263,9 +266,9 @@ function registerRepoCommand(program) {
|
|
|
263
266
|
).option(
|
|
264
267
|
"--since <ref>",
|
|
265
268
|
"Only lint packages that changed since the specified ref"
|
|
266
|
-
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
269
|
+
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-886fb5df.cjs.js'); }).then((m) => m.command)));
|
|
267
270
|
command.command("list-deprecations", { hidden: true }).description("List deprecations. [EXPERIMENTAL]").option("--json", "Output as JSON").action(
|
|
268
|
-
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-
|
|
271
|
+
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-4273a5a5.cjs.js'); }).then((m) => m.command))
|
|
269
272
|
);
|
|
270
273
|
}
|
|
271
274
|
function registerScriptCommand(program) {
|
|
@@ -273,7 +276,7 @@ function registerScriptCommand(program) {
|
|
|
273
276
|
command.command("start").description("Start a package for local development").option(...configOption).option("--role <name>", "Run the command with an explicit package role").option("--check", "Enable type checking and linting if available").option("--inspect", "Enable debugger in Node.js environments").option(
|
|
274
277
|
"--inspect-brk",
|
|
275
278
|
"Enable debugger in Node.js environments, breaking before code starts"
|
|
276
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
279
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-d4a2dd72.cjs.js'); }).then((m) => m.command)));
|
|
277
280
|
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
|
|
278
281
|
"--minify",
|
|
279
282
|
"Minify the generated code. Does not apply to app or backend packages."
|
|
@@ -291,28 +294,33 @@ function registerScriptCommand(program) {
|
|
|
291
294
|
"Config files to load instead of app-config.yaml. Applies to app packages only.",
|
|
292
295
|
(opt, opts) => opts ? [...opts, opt] : [opt],
|
|
293
296
|
Array()
|
|
294
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
297
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-3a4a537f.cjs.js'); }).then((m) => m.command)));
|
|
295
298
|
command.command("lint [directories...]").option(
|
|
296
299
|
"--format <format>",
|
|
297
300
|
"Lint report output format",
|
|
298
301
|
"eslint-formatter-friendly"
|
|
299
|
-
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
300
|
-
command.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
301
|
-
command.command("fix", { hidden: true }).description("Applies automated fixes to the package. [EXPERIMENTAL]").option("--deps", "Only fix monorepo dependencies in package.json").action(lazy(() => Promise.resolve().then(function () { return require('./fix-
|
|
302
|
-
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
303
|
-
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
304
|
-
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
302
|
+
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-b1213456.cjs.js'); }).then((m) => m.default)));
|
|
303
|
+
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-d54a7f33.cjs.js'); }).then((m) => m.default)));
|
|
304
|
+
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-3c44b003.cjs.js'); }).then((m) => m.command)));
|
|
305
|
+
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-cd509a41.cjs.js'); }).then((m) => m.default)));
|
|
306
|
+
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-b4b51d9e.cjs.js'); }).then((m) => m.pre)));
|
|
307
|
+
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-b4b51d9e.cjs.js'); }).then((m) => m.post)));
|
|
305
308
|
}
|
|
306
309
|
function registerMigrateCommand(program) {
|
|
307
310
|
const command = program.command("migrate [command]").description("Migration utilities");
|
|
308
|
-
command.command("package-roles").description(`Add package role field to packages that don't have it`).action(lazy(() => Promise.resolve().then(function () { return require('./packageRole-
|
|
311
|
+
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-03b55c0a.cjs.js'); }).then((m) => m.default)));
|
|
309
312
|
command.command("package-scripts").description("Set package scripts according to each package role").action(
|
|
310
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-
|
|
313
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-e960be45.cjs.js'); }).then((m) => m.command))
|
|
311
314
|
);
|
|
312
315
|
command.command("package-lint-configs").description(
|
|
313
316
|
"Migrates all packages to use @backstage/cli/config/eslint-factory"
|
|
314
317
|
).action(
|
|
315
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-
|
|
318
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-ff7728bc.cjs.js'); }).then((m) => m.command))
|
|
319
|
+
);
|
|
320
|
+
command.command("react-router-deps").description(
|
|
321
|
+
"Migrates the react-router dependencies for all packages to be peer dependencies"
|
|
322
|
+
).action(
|
|
323
|
+
lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-2399528b.cjs.js'); }).then((m) => m.command))
|
|
316
324
|
);
|
|
317
325
|
}
|
|
318
326
|
function registerCommands(program) {
|
|
@@ -329,41 +337,41 @@ function registerCommands(program) {
|
|
|
329
337
|
).option("--scope <scope>", "The scope to use for new packages").option(
|
|
330
338
|
"--npm-registry <URL>",
|
|
331
339
|
"The package registry to use for new packages"
|
|
332
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./create-
|
|
340
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./create-86c41604.cjs.js'); }).then((m) => m.default)));
|
|
333
341
|
program.command("create-plugin").option(
|
|
334
342
|
"--backend",
|
|
335
343
|
"Create plugin with the backend dependencies as default"
|
|
336
344
|
).description("Creates a new plugin in the current repository").option("--scope <scope>", "npm scope").option("--npm-registry <URL>", "npm registry URL").option("--no-private", "Public npm package").action(
|
|
337
|
-
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-
|
|
345
|
+
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-c26303d8.cjs.js'); }).then((m) => m.default))
|
|
338
346
|
);
|
|
339
|
-
program.command("plugin:diff").option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description("Diff an existing plugin with the creation template").action(lazy(() => Promise.resolve().then(function () { return require('./diff-
|
|
347
|
+
program.command("plugin:diff").option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description("Diff an existing plugin with the creation template").action(lazy(() => Promise.resolve().then(function () { return require('./diff-6a78ec4c.cjs.js'); }).then((m) => m.default)));
|
|
340
348
|
program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
|
|
341
349
|
"Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
|
|
342
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
350
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./test-d54a7f33.cjs.js'); }).then((m) => m.default)));
|
|
343
351
|
program.command("config:docs").option(
|
|
344
352
|
"--package <name>",
|
|
345
353
|
"Only include the schema that applies to the given package"
|
|
346
|
-
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-
|
|
354
|
+
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-8e386279.cjs.js'); }).then((m) => m.default)));
|
|
347
355
|
program.command("config:print").option(
|
|
348
356
|
"--package <name>",
|
|
349
357
|
"Only load config schema that applies to the given package"
|
|
350
358
|
).option("--lax", "Do not require environment variables to be set").option("--frontend", "Print only the frontend configuration").option("--with-secrets", "Include secrets in the printed configuration").option(
|
|
351
359
|
"--format <format>",
|
|
352
360
|
"Format to print the configuration in, either json or yaml [yaml]"
|
|
353
|
-
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-
|
|
361
|
+
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-b50ffebc.cjs.js'); }).then((m) => m.default)));
|
|
354
362
|
program.command("config:check").option(
|
|
355
363
|
"--package <name>",
|
|
356
364
|
"Only load config schema that applies to the given package"
|
|
357
365
|
).option("--lax", "Do not require environment variables to be set").option("--frontend", "Only validate the frontend configuration").option("--deprecated", "Output deprecated configuration settings").option(...configOption).description(
|
|
358
366
|
"Validate that the given configuration loads and matches schema"
|
|
359
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-
|
|
367
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-a9880467.cjs.js'); }).then((m) => m.default)));
|
|
360
368
|
program.command("config:schema").option(
|
|
361
369
|
"--package <name>",
|
|
362
370
|
"Only output config schema that applies to the given package"
|
|
363
371
|
).option(
|
|
364
372
|
"--format <format>",
|
|
365
373
|
"Format to print the schema in, either json or yaml [yaml]"
|
|
366
|
-
).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-
|
|
374
|
+
).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-a805969e.cjs.js'); }).then((m) => m.default)));
|
|
367
375
|
registerRepoCommand(program);
|
|
368
376
|
registerScriptCommand(program);
|
|
369
377
|
registerMigrateCommand(program);
|
|
@@ -374,16 +382,16 @@ function registerCommands(program) {
|
|
|
374
382
|
"--release <version|next|main>",
|
|
375
383
|
"Bump to a specific Backstage release line or version",
|
|
376
384
|
"main"
|
|
377
|
-
).description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-
|
|
378
|
-
program.command("versions:check").option("--fix", "Fix any auto-fixable versioning problems").description("Check Backstage package versioning").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
379
|
-
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
380
|
-
program.command("build-workspace <workspace-dir> [packages...]").description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace-
|
|
381
|
-
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
382
|
-
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-
|
|
385
|
+
).description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-fecbbc0a.cjs.js'); }).then((m) => m.default)));
|
|
386
|
+
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-20a7382f.cjs.js'); }).then((m) => m.default)));
|
|
387
|
+
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-cd509a41.cjs.js'); }).then((m) => m.default)));
|
|
388
|
+
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-09512b94.cjs.js'); }).then((m) => m.default)));
|
|
389
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-f798881b.cjs.js'); }).then((m) => m.default)));
|
|
390
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-696f22bf.cjs.js'); }).then((m) => m.default)));
|
|
383
391
|
program.command("install [plugin-id]", { hidden: true }).option(
|
|
384
392
|
"--from <packageJsonFilePath>",
|
|
385
393
|
"Install from a local package.json containing the installation recipe"
|
|
386
|
-
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-
|
|
394
|
+
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-acc8eb12.cjs.js'); }).then((m) => m.default)));
|
|
387
395
|
}
|
|
388
396
|
function lazy(getActionFunc) {
|
|
389
397
|
return async (...args) => {
|
|
@@ -427,4 +435,4 @@ exports.devDependencies = devDependencies;
|
|
|
427
435
|
exports.paths = paths;
|
|
428
436
|
exports.version = version;
|
|
429
437
|
exports.version$1 = version$9;
|
|
430
|
-
//# sourceMappingURL=index-
|
|
438
|
+
//# sourceMappingURL=index-82587726.cjs.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
|
-
var index = require('./index-
|
|
4
|
+
var index = require('./index-82587726.cjs.js');
|
|
5
5
|
var webpack = require('webpack');
|
|
6
|
-
var paths = require('./paths-
|
|
6
|
+
var paths = require('./paths-820ff228.cjs.js');
|
|
7
7
|
require('yn');
|
|
8
8
|
require('path');
|
|
9
9
|
require('react-dev-utils/FileSizeReporter');
|
|
@@ -16,18 +16,19 @@ require('webpack-node-externals');
|
|
|
16
16
|
require('@backstage/cli-common');
|
|
17
17
|
require('@manypkg/get-packages');
|
|
18
18
|
require('mini-css-extract-plugin');
|
|
19
|
-
require('
|
|
19
|
+
require('@pmmmwh/react-refresh-webpack-plugin');
|
|
20
|
+
require('./run-0ac37ebd.cjs.js');
|
|
20
21
|
require('eslint-webpack-plugin');
|
|
21
22
|
require('lodash/pickBy');
|
|
22
23
|
var chalk = require('chalk');
|
|
23
24
|
var WebpackDevServer = require('webpack-dev-server');
|
|
24
25
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
25
26
|
var uniq = require('lodash/uniq');
|
|
26
|
-
var config = require('./config-
|
|
27
|
+
var config = require('./config-e2a2d4a6.cjs.js');
|
|
27
28
|
var Lockfile = require('./Lockfile-72b7072e.cjs.js');
|
|
28
29
|
require('minimatch');
|
|
29
|
-
var lint = require('./lint-
|
|
30
|
-
var packageRoles = require('./packageRoles-
|
|
30
|
+
var lint = require('./lint-20a7382f.cjs.js');
|
|
31
|
+
var packageRoles = require('./packageRoles-fdfa8905.cjs.js');
|
|
31
32
|
require('commander');
|
|
32
33
|
require('semver');
|
|
33
34
|
require('@backstage/errors');
|
|
@@ -36,7 +37,7 @@ require('child_process');
|
|
|
36
37
|
require('util');
|
|
37
38
|
require('@backstage/config-loader');
|
|
38
39
|
require('@backstage/config');
|
|
39
|
-
require('./PackageGraph-
|
|
40
|
+
require('./PackageGraph-424871dc.cjs.js');
|
|
40
41
|
require('@yarnpkg/parsers');
|
|
41
42
|
require('@yarnpkg/lockfile');
|
|
42
43
|
require('lodash/partition');
|
|
@@ -57,6 +58,7 @@ async function serveBackend(options) {
|
|
|
57
58
|
...options,
|
|
58
59
|
isDev: true
|
|
59
60
|
});
|
|
61
|
+
process.env.NODE_ENV = "development";
|
|
60
62
|
const compiler = webpack__default["default"](config, (err) => {
|
|
61
63
|
if (err) {
|
|
62
64
|
console.error(err);
|
|
@@ -239,4 +241,4 @@ async function command(opts) {
|
|
|
239
241
|
}
|
|
240
242
|
|
|
241
243
|
exports.command = command;
|
|
242
|
-
//# sourceMappingURL=index-
|
|
244
|
+
//# sourceMappingURL=index-d4a2dd72.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-82587726.cjs.js');
|
|
8
8
|
var crypto = require('crypto');
|
|
9
9
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
10
10
|
var request = require('@octokit/request');
|
|
@@ -222,4 +222,4 @@ async function verifyGithubOrg(org) {
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
exports["default"] = index;
|
|
225
|
-
//# sourceMappingURL=index-
|
|
225
|
+
//# sourceMappingURL=index-f798881b.cjs.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-82587726.cjs.js');
|
|
4
4
|
var os = require('os');
|
|
5
|
-
var run = require('./run-
|
|
5
|
+
var run = require('./run-0ac37ebd.cjs.js');
|
|
6
6
|
var Lockfile = require('./Lockfile-72b7072e.cjs.js');
|
|
7
7
|
require('minimatch');
|
|
8
8
|
require('@manypkg/get-packages');
|
|
@@ -57,4 +57,4 @@ var info = async () => {
|
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
exports["default"] = info;
|
|
60
|
-
//# sourceMappingURL=info-
|
|
60
|
+
//# sourceMappingURL=info-696f22bf.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-fab3e760.cjs.js');
|
|
8
|
+
var index = require('./index-82587726.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-0ac37ebd.cjs.js');
|
|
13
13
|
require('minimatch');
|
|
14
14
|
require('@manypkg/get-packages');
|
|
15
15
|
require('commander');
|
|
@@ -267,4 +267,4 @@ var install = async (pluginId, cmd) => {
|
|
|
267
267
|
};
|
|
268
268
|
|
|
269
269
|
exports["default"] = install;
|
|
270
|
-
//# sourceMappingURL=install-
|
|
270
|
+
//# sourceMappingURL=install-acc8eb12.cjs.js.map
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
var Lockfile = require('./Lockfile-72b7072e.cjs.js');
|
|
4
4
|
require('minimatch');
|
|
5
5
|
require('@manypkg/get-packages');
|
|
6
|
-
require('./run-
|
|
6
|
+
require('./run-0ac37ebd.cjs.js');
|
|
7
7
|
require('chalk');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-82587726.cjs.js');
|
|
9
9
|
var partition = require('lodash/partition');
|
|
10
10
|
require('fs-extra');
|
|
11
11
|
require('semver');
|
|
@@ -104,4 +104,4 @@ function logArray(arr, header, each) {
|
|
|
104
104
|
exports["default"] = lint;
|
|
105
105
|
exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
|
|
106
106
|
exports.includedFilter = includedFilter;
|
|
107
|
-
//# sourceMappingURL=lint-
|
|
107
|
+
//# sourceMappingURL=lint-20a7382f.cjs.js.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
4
|
var path = require('path');
|
|
5
|
-
var PackageGraph = require('./PackageGraph-
|
|
5
|
+
var PackageGraph = require('./PackageGraph-424871dc.cjs.js');
|
|
6
6
|
var parallel = require('./parallel-a8f6219c.cjs.js');
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-82587726.cjs.js');
|
|
8
8
|
require('@manypkg/get-packages');
|
|
9
9
|
require('@backstage/errors');
|
|
10
10
|
require('child_process');
|
|
@@ -88,4 +88,4 @@ async function command(opts) {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
exports.command = command;
|
|
91
|
-
//# sourceMappingURL=lint-
|
|
91
|
+
//# sourceMappingURL=lint-886fb5df.cjs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-82587726.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-b1213456.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-82587726.cjs.js');
|
|
7
|
+
var PackageGraph = require('./PackageGraph-424871dc.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('fs-extra');
|
|
10
10
|
require('semver');
|
|
@@ -79,4 +79,4 @@ async function command(opts) {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
exports.command = command;
|
|
82
|
-
//# sourceMappingURL=list-deprecations-
|
|
82
|
+
//# sourceMappingURL=list-deprecations-4273a5a5.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-82587726.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-b4b51d9e.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-424871dc.cjs.js');
|
|
6
|
+
var run = require('./run-0ac37ebd.cjs.js');
|
|
7
7
|
require('@manypkg/get-packages');
|
|
8
|
-
require('./index-
|
|
8
|
+
require('./index-82587726.cjs.js');
|
|
9
9
|
require('commander');
|
|
10
10
|
require('chalk');
|
|
11
11
|
require('semver');
|
|
@@ -80,4 +80,4 @@ async function command() {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
exports.command = command;
|
|
83
|
-
//# sourceMappingURL=packageLintConfigs-
|
|
83
|
+
//# sourceMappingURL=packageLintConfigs-ff7728bc.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-82587726.cjs.js');
|
|
7
|
+
var packageRoles = require('./packageRoles-fdfa8905.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-03b55c0a.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-82587726.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-fdfa8905.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 packageRoles = require('./packageRoles-
|
|
5
|
+
var PackageGraph = require('./PackageGraph-424871dc.cjs.js');
|
|
6
|
+
var packageRoles = require('./packageRoles-fdfa8905.cjs.js');
|
|
7
7
|
require('@manypkg/get-packages');
|
|
8
|
-
require('./index-
|
|
8
|
+
require('./index-82587726.cjs.js');
|
|
9
9
|
require('commander');
|
|
10
10
|
require('chalk');
|
|
11
11
|
require('semver');
|
|
@@ -95,4 +95,4 @@ async function command() {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
exports.command = command;
|
|
98
|
-
//# sourceMappingURL=packageScripts-
|
|
98
|
+
//# sourceMappingURL=packageScripts-e960be45.cjs.js.map
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var minimatch = require('minimatch');
|
|
4
4
|
var getPackages = require('@manypkg/get-packages');
|
|
5
|
-
var run = require('./run-
|
|
6
|
-
var index = require('./index-
|
|
5
|
+
var run = require('./run-0ac37ebd.cjs.js');
|
|
6
|
+
var index = require('./index-82587726.cjs.js');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
9
|
|
|
@@ -56,4 +56,4 @@ async function mapDependencies(targetDir, pattern) {
|
|
|
56
56
|
|
|
57
57
|
exports.fetchPackageInfo = fetchPackageInfo;
|
|
58
58
|
exports.mapDependencies = mapDependencies;
|
|
59
|
-
//# sourceMappingURL=packages-
|
|
59
|
+
//# sourceMappingURL=packages-fab3e760.cjs.js.map
|