@backstage/cli 0.22.3 → 0.22.4-next.0
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 +5 -2
- package/dist/cjs/{Lockfile-bc3a8337.cjs.js → index/Lockfile-e5943b84.cjs.js} +1 -1
- package/dist/cjs/{PackageGraph-5cd8b6d9.cjs.js → index/PackageGraph-583328aa.cjs.js} +5 -5
- package/dist/cjs/{build-ec5ef7e9.cjs.js → index/build-eb378232.cjs.js} +15 -13
- package/dist/cjs/{buildBackend-8e6c3c4c.cjs.js → index/buildBackend-3ff6a1aa.cjs.js} +8 -7
- package/dist/cjs/{buildWorkspace-8c25ffb2.cjs.js → index/buildWorkspace-7f9d23b6.cjs.js} +12 -11
- package/dist/cjs/{bump-918a304f.cjs.js → index/bump-ee1d7a65.cjs.js} +9 -9
- package/dist/cjs/{clean-6f98df01.cjs.js → index/clean-31a1f618.cjs.js} +2 -2
- package/dist/cjs/{clean-718950b6.cjs.js → index/clean-c050d998.cjs.js} +6 -6
- package/dist/cjs/{config-d7029aa8.cjs.js → index/config-37cf3eff.cjs.js} +3 -3
- package/dist/cjs/{createDistWorkspace-cc06390d.cjs.js → index/createDistWorkspace-cd594c0f.cjs.js} +117 -161
- package/dist/cjs/{createPlugin-96f42a6a.cjs.js → index/createPlugin-a2904ac4.cjs.js} +6 -6
- package/dist/cjs/{diff-de813448.cjs.js → index/diff-7484f58b.cjs.js} +2 -2
- package/dist/cjs/{docs-bdbc6e7e.cjs.js → index/docs-3dc75573.cjs.js} +7 -7
- package/dist/cjs/{fix-8c8a8658.cjs.js → index/fix-049fbfc9.cjs.js} +6 -6
- package/dist/cjs/{index-77c5f873.cjs.js → index/index-49993236.cjs.js} +2 -2
- package/dist/cjs/{index-6c7dbf32.cjs.js → index/index-56f89375.cjs.js} +15 -14
- package/dist/cjs/{index-3f5b204a.cjs.js → index/index-70b5e9f0.cjs.js} +11 -11
- package/dist/cjs/{index-4757258f.cjs.js → index/index-fc99613b.cjs.js} +46 -43
- package/dist/cjs/{info-e640b7f0.cjs.js → index/info-5ceccf59.cjs.js} +5 -5
- package/dist/cjs/{install-4508ea3b.cjs.js → index/install-69068763.cjs.js} +5 -5
- package/dist/cjs/{lint-acb15aef.cjs.js → index/lint-4c20bc10.cjs.js} +2 -2
- package/dist/cjs/{lint-5b6f058e.cjs.js → index/lint-6ffcd019.cjs.js} +6 -6
- package/dist/cjs/{lint-aa3dda62.cjs.js → index/lint-af391261.cjs.js} +7 -7
- package/dist/cjs/{list-deprecations-e1aafd6b.cjs.js → index/list-deprecations-d474804f.cjs.js} +6 -6
- package/dist/cjs/{new-b141ae29.cjs.js → index/new-0aa80b7a.cjs.js} +6 -6
- package/dist/cjs/index/pack-06a08024.cjs.js +23 -0
- package/dist/cjs/index/packageExports-ddd7a9dd.cjs.js +108 -0
- package/dist/cjs/{packageLintConfigs-bd6a6ffb.cjs.js → index/packageLintConfigs-3be64192.cjs.js} +6 -6
- package/dist/cjs/{packageRole-8d74d86a.cjs.js → index/packageRole-1c4efbb6.cjs.js} +3 -3
- package/dist/cjs/{packageRoles-956dca20.cjs.js → index/packageRoles-2d5ba047.cjs.js} +2 -2
- package/dist/cjs/{packageScripts-b4dfbc9a.cjs.js → index/packageScripts-0c36bb2f.cjs.js} +7 -7
- package/dist/cjs/{packages-ab515737.cjs.js → index/packages-ad97f7b8.cjs.js} +4 -4
- package/dist/cjs/{parallel-a8f6219c.cjs.js → index/parallel-4af834f6.cjs.js} +1 -1
- package/dist/cjs/{paths-df76dd28.cjs.js → index/paths-cbef9084.cjs.js} +4 -4
- package/dist/cjs/{print-cabdc32a.cjs.js → index/print-453dcd69.cjs.js} +7 -7
- package/dist/cjs/index/productionPack-2d16db59.cjs.js +235 -0
- package/dist/cjs/{reactRouterDeps-16d02280.cjs.js → index/reactRouterDeps-a4c295bd.cjs.js} +7 -7
- package/dist/cjs/{run-3445beee.cjs.js → index/run-d843bae0.cjs.js} +2 -2
- package/dist/cjs/{schema-bd6ef683.cjs.js → index/schema-4c760ac7.cjs.js} +7 -7
- package/dist/cjs/{svgrTemplate-550efce6.cjs.js → index/svgrTemplate-d1dad6d3.cjs.js} +1 -1
- package/dist/cjs/{tasks-b86e63da.cjs.js → index/tasks-989067ef.cjs.js} +2 -2
- package/dist/cjs/{test-2ea225bc.cjs.js → index/test-0ba8dd19.cjs.js} +6 -6
- package/dist/cjs/{test-88aa4859.cjs.js → index/test-406b3cba.cjs.js} +3 -3
- package/dist/cjs/{validate-b595e7b4.cjs.js → index/validate-ab69bd87.cjs.js} +7 -7
- package/dist/cjs/{yarn-6cd89e16.cjs.js → index/yarn-8315d2ff.cjs.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/package.json +8 -8
- package/templates/default-backend-plugin/package.json.hbs +2 -2
- package/templates/default-plugin/src/components/ExampleFetchComponent/ExampleFetchComponent.tsx.hbs +4 -3
- package/dist/cjs/pack-62958350.cjs.js +0 -78
|
@@ -46,9 +46,9 @@ class NotFoundError extends CustomError {
|
|
|
46
46
|
|
|
47
47
|
const paths = cliCommon.findPaths(__dirname);
|
|
48
48
|
|
|
49
|
-
var version$a = "0.18.
|
|
49
|
+
var version$a = "0.18.3-next.0";
|
|
50
50
|
|
|
51
|
-
var version$9 = "0.22.
|
|
51
|
+
var version$9 = "0.22.4-next.0";
|
|
52
52
|
var dependencies = {
|
|
53
53
|
"@backstage/cli-common": "workspace:^",
|
|
54
54
|
"@backstage/config": "workspace:^",
|
|
@@ -184,19 +184,19 @@ var devDependencies = {
|
|
|
184
184
|
|
|
185
185
|
var version$8 = "1.0.6";
|
|
186
186
|
|
|
187
|
-
var version$7 = "1.5.0";
|
|
187
|
+
var version$7 = "1.5.1-next.0";
|
|
188
188
|
|
|
189
|
-
var version$6 = "0.12.
|
|
189
|
+
var version$6 = "0.12.5-next.0";
|
|
190
190
|
|
|
191
|
-
var version$5 = "1.4.0";
|
|
191
|
+
var version$5 = "1.4.1-next.0";
|
|
192
192
|
|
|
193
|
-
var version$4 = "1.0.
|
|
193
|
+
var version$4 = "1.0.13-next.0";
|
|
194
194
|
|
|
195
|
-
var version$3 = "1.2.
|
|
195
|
+
var version$3 = "1.2.6-next.0";
|
|
196
196
|
|
|
197
197
|
var version$2 = "0.2.17";
|
|
198
198
|
|
|
199
|
-
var version$1 = "1.11.0";
|
|
199
|
+
var version$1 = "1.11.1-next.0";
|
|
200
200
|
|
|
201
201
|
const packageVersions = {
|
|
202
202
|
"@backstage/backend-common": version$a,
|
|
@@ -267,7 +267,7 @@ function registerRepoCommand(program) {
|
|
|
267
267
|
).option(
|
|
268
268
|
"--since <ref>",
|
|
269
269
|
"Only build packages and their dev dependents that changed since the specified ref"
|
|
270
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
270
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./build-eb378232.cjs.js'); }).then((m) => m.command)));
|
|
271
271
|
command.command("lint").description("Lint all packages in the project").option(
|
|
272
272
|
"--format <format>",
|
|
273
273
|
"Lint report output format",
|
|
@@ -275,10 +275,10 @@ function registerRepoCommand(program) {
|
|
|
275
275
|
).option(
|
|
276
276
|
"--since <ref>",
|
|
277
277
|
"Only lint packages that changed since the specified ref"
|
|
278
|
-
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
279
|
-
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
278
|
+
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-af391261.cjs.js'); }).then((m) => m.command)));
|
|
279
|
+
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-c050d998.cjs.js'); }).then((m) => m.command)));
|
|
280
280
|
command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
|
|
281
|
-
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-
|
|
281
|
+
lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-d474804f.cjs.js'); }).then((m) => m.command))
|
|
282
282
|
);
|
|
283
283
|
command.command("test").allowUnknownOption(true).option(
|
|
284
284
|
"--since <ref>",
|
|
@@ -286,20 +286,20 @@ function registerRepoCommand(program) {
|
|
|
286
286
|
).option(
|
|
287
287
|
"--jest-help",
|
|
288
288
|
"Show help for Jest CLI options, which are passed through"
|
|
289
|
-
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
289
|
+
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./test-0ba8dd19.cjs.js'); }).then((m) => m.command)));
|
|
290
290
|
}
|
|
291
291
|
function registerScriptCommand(program) {
|
|
292
292
|
const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
|
|
293
293
|
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(
|
|
294
294
|
"--inspect-brk",
|
|
295
295
|
"Enable debugger in Node.js environments, breaking before code starts"
|
|
296
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
296
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-70b5e9f0.cjs.js'); }).then((m) => m.command)));
|
|
297
297
|
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
|
|
298
298
|
"--minify",
|
|
299
299
|
"Minify the generated code. Does not apply to app or backend packages."
|
|
300
300
|
).option(
|
|
301
301
|
"--experimental-type-build",
|
|
302
|
-
"Enable experimental type build. Does not apply to app or backend packages."
|
|
302
|
+
"Enable experimental type build. Does not apply to app or backend packages. [DEPRECATED]"
|
|
303
303
|
).option(
|
|
304
304
|
"--skip-build-dependencies",
|
|
305
305
|
"Skip the automatic building of local dependencies. Applies to backend packages only."
|
|
@@ -311,33 +311,36 @@ function registerScriptCommand(program) {
|
|
|
311
311
|
"Config files to load instead of app-config.yaml. Applies to app packages only.",
|
|
312
312
|
(opt, opts) => opts ? [...opts, opt] : [opt],
|
|
313
313
|
Array()
|
|
314
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
314
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./index-56f89375.cjs.js'); }).then((m) => m.command)));
|
|
315
315
|
command.command("lint [directories...]").option(
|
|
316
316
|
"--format <format>",
|
|
317
317
|
"Lint report output format",
|
|
318
318
|
"eslint-formatter-friendly"
|
|
319
|
-
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
320
|
-
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-
|
|
321
|
-
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-
|
|
322
|
-
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
323
|
-
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
324
|
-
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
319
|
+
).option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-4c20bc10.cjs.js'); }).then((m) => m.default)));
|
|
320
|
+
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-406b3cba.cjs.js'); }).then((m) => m.default)));
|
|
321
|
+
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-049fbfc9.cjs.js'); }).then((m) => m.command)));
|
|
322
|
+
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-31a1f618.cjs.js'); }).then((m) => m.default)));
|
|
323
|
+
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-06a08024.cjs.js'); }).then((m) => m.pre)));
|
|
324
|
+
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-06a08024.cjs.js'); }).then((m) => m.post)));
|
|
325
325
|
}
|
|
326
326
|
function registerMigrateCommand(program) {
|
|
327
327
|
const command = program.command("migrate [command]").description("Migration utilities");
|
|
328
|
-
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-
|
|
328
|
+
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-1c4efbb6.cjs.js'); }).then((m) => m.default)));
|
|
329
329
|
command.command("package-scripts").description("Set package scripts according to each package role").action(
|
|
330
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-
|
|
330
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageScripts-0c36bb2f.cjs.js'); }).then((m) => m.command))
|
|
331
|
+
);
|
|
332
|
+
command.command("package-exports").description("Synchronize package subpath export definitions").action(
|
|
333
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageExports-ddd7a9dd.cjs.js'); }).then((m) => m.command))
|
|
331
334
|
);
|
|
332
335
|
command.command("package-lint-configs").description(
|
|
333
336
|
"Migrates all packages to use @backstage/cli/config/eslint-factory"
|
|
334
337
|
).action(
|
|
335
|
-
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-
|
|
338
|
+
lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-3be64192.cjs.js'); }).then((m) => m.command))
|
|
336
339
|
);
|
|
337
340
|
command.command("react-router-deps").description(
|
|
338
341
|
"Migrates the react-router dependencies for all packages to be peer dependencies"
|
|
339
342
|
).action(
|
|
340
|
-
lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-
|
|
343
|
+
lazy(() => Promise.resolve().then(function () { return require('./reactRouterDeps-a4c295bd.cjs.js'); }).then((m) => m.command))
|
|
341
344
|
);
|
|
342
345
|
}
|
|
343
346
|
function registerCommands(program) {
|
|
@@ -357,7 +360,7 @@ function registerCommands(program) {
|
|
|
357
360
|
).option(
|
|
358
361
|
"--baseVersion <version>",
|
|
359
362
|
"The version to use for any new packages (default: 0.1.0)"
|
|
360
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
363
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-0aa80b7a.cjs.js'); }).then((m) => m.default)));
|
|
361
364
|
program.command("create", { hidden: true }).storeOptionsAsProperties(false).description(
|
|
362
365
|
"Open up an interactive guide to creating new things in your app [DEPRECATED]"
|
|
363
366
|
).option(
|
|
@@ -371,43 +374,43 @@ function registerCommands(program) {
|
|
|
371
374
|
).option("--scope <scope>", "The scope to use for new packages").option(
|
|
372
375
|
"--npm-registry <URL>",
|
|
373
376
|
"The package registry to use for new packages"
|
|
374
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-
|
|
377
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new-0aa80b7a.cjs.js'); }).then((m) => m.default)));
|
|
375
378
|
program.command("create-plugin", { hidden: true }).option(
|
|
376
379
|
"--backend",
|
|
377
380
|
"Create plugin with the backend dependencies as default"
|
|
378
381
|
).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(
|
|
379
|
-
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-
|
|
382
|
+
lazy(() => Promise.resolve().then(function () { return require('./createPlugin-a2904ac4.cjs.js'); }).then((m) => m.default))
|
|
380
383
|
);
|
|
381
384
|
program.command("plugin:diff", { hidden: true }).option("--check", "Fail if changes are required").option("--yes", "Apply all changes").description(
|
|
382
385
|
"Diff an existing plugin with the creation template [DEPRECATED]"
|
|
383
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-
|
|
386
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./diff-7484f58b.cjs.js'); }).then((m) => m.default)));
|
|
384
387
|
program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description(
|
|
385
388
|
"Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]"
|
|
386
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./test-
|
|
389
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./test-406b3cba.cjs.js'); }).then((m) => m.default)));
|
|
387
390
|
program.command("config:docs").option(
|
|
388
391
|
"--package <name>",
|
|
389
392
|
"Only include the schema that applies to the given package"
|
|
390
|
-
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-
|
|
393
|
+
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-3dc75573.cjs.js'); }).then((m) => m.default)));
|
|
391
394
|
program.command("config:print").option(
|
|
392
395
|
"--package <name>",
|
|
393
396
|
"Only load config schema that applies to the given package"
|
|
394
397
|
).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(
|
|
395
398
|
"--format <format>",
|
|
396
399
|
"Format to print the configuration in, either json or yaml [yaml]"
|
|
397
|
-
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-
|
|
400
|
+
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-453dcd69.cjs.js'); }).then((m) => m.default)));
|
|
398
401
|
program.command("config:check").option(
|
|
399
402
|
"--package <name>",
|
|
400
403
|
"Only load config schema that applies to the given package"
|
|
401
404
|
).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(
|
|
402
405
|
"Validate that the given configuration loads and matches schema"
|
|
403
|
-
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-
|
|
406
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./validate-ab69bd87.cjs.js'); }).then((m) => m.default)));
|
|
404
407
|
program.command("config:schema").option(
|
|
405
408
|
"--package <name>",
|
|
406
409
|
"Only output config schema that applies to the given package"
|
|
407
410
|
).option(
|
|
408
411
|
"--format <format>",
|
|
409
412
|
"Format to print the schema in, either json or yaml [yaml]"
|
|
410
|
-
).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-
|
|
413
|
+
).description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-4c760ac7.cjs.js'); }).then((m) => m.default)));
|
|
411
414
|
registerRepoCommand(program);
|
|
412
415
|
registerScriptCommand(program);
|
|
413
416
|
registerMigrateCommand(program);
|
|
@@ -418,16 +421,16 @@ function registerCommands(program) {
|
|
|
418
421
|
"--release <version|next|main>",
|
|
419
422
|
"Bump to a specific Backstage release line or version",
|
|
420
423
|
"main"
|
|
421
|
-
).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-
|
|
422
|
-
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-
|
|
423
|
-
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
424
|
-
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-
|
|
425
|
-
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
426
|
-
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-
|
|
424
|
+
).option("--skip-install", "Skips yarn install step").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-ee1d7a65.cjs.js'); }).then((m) => m.default)));
|
|
425
|
+
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-6ffcd019.cjs.js'); }).then((m) => m.default)));
|
|
426
|
+
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-31a1f618.cjs.js'); }).then((m) => m.default)));
|
|
427
|
+
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-7f9d23b6.cjs.js'); }).then((m) => m.default)));
|
|
428
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-49993236.cjs.js'); }).then((m) => m.default)));
|
|
429
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-5ceccf59.cjs.js'); }).then((m) => m.default)));
|
|
427
430
|
program.command("install [plugin-id]", { hidden: true }).option(
|
|
428
431
|
"--from <packageJsonFilePath>",
|
|
429
432
|
"Install from a local package.json containing the installation recipe"
|
|
430
|
-
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-
|
|
433
|
+
).description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-69068763.cjs.js'); }).then((m) => m.default)));
|
|
431
434
|
}
|
|
432
435
|
function lazy(getActionFunc) {
|
|
433
436
|
return async (...args) => {
|
|
@@ -471,4 +474,4 @@ exports.devDependencies = devDependencies;
|
|
|
471
474
|
exports.paths = paths;
|
|
472
475
|
exports.version = version;
|
|
473
476
|
exports.version$1 = version$9;
|
|
474
|
-
//# sourceMappingURL=index-
|
|
477
|
+
//# sourceMappingURL=index-fc99613b.cjs.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-fc99613b.cjs.js');
|
|
4
4
|
var os = require('os');
|
|
5
|
-
var run = require('./run-
|
|
6
|
-
var Lockfile = require('./Lockfile-
|
|
5
|
+
var run = require('./run-d843bae0.cjs.js');
|
|
6
|
+
var Lockfile = require('./Lockfile-e5943b84.cjs.js');
|
|
7
7
|
require('minimatch');
|
|
8
8
|
require('@manypkg/get-packages');
|
|
9
9
|
require('chalk');
|
|
10
|
-
require('./yarn-
|
|
10
|
+
require('./yarn-8315d2ff.cjs.js');
|
|
11
11
|
var fs = require('fs-extra');
|
|
12
12
|
require('commander');
|
|
13
13
|
require('semver');
|
|
@@ -58,4 +58,4 @@ var info = async () => {
|
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
exports["default"] = info;
|
|
61
|
-
//# sourceMappingURL=info-
|
|
61
|
+
//# sourceMappingURL=info-5ceccf59.cjs.js.map
|
|
@@ -4,15 +4,15 @@ 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-ad97f7b8.cjs.js');
|
|
8
|
+
var index = require('./index-fc99613b.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-d843bae0.cjs.js');
|
|
13
13
|
require('minimatch');
|
|
14
14
|
require('@manypkg/get-packages');
|
|
15
|
-
require('./yarn-
|
|
15
|
+
require('./yarn-8315d2ff.cjs.js');
|
|
16
16
|
require('@backstage/errors');
|
|
17
17
|
require('child_process');
|
|
18
18
|
require('util');
|
|
@@ -268,4 +268,4 @@ var install = async (pluginId, cmd) => {
|
|
|
268
268
|
};
|
|
269
269
|
|
|
270
270
|
exports["default"] = install;
|
|
271
|
-
//# sourceMappingURL=install-
|
|
271
|
+
//# sourceMappingURL=install-69068763.cjs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-fc99613b.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-4c20bc10.cjs.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Lockfile = require('./Lockfile-
|
|
3
|
+
var Lockfile = require('./Lockfile-e5943b84.cjs.js');
|
|
4
4
|
require('minimatch');
|
|
5
5
|
require('@manypkg/get-packages');
|
|
6
6
|
require('chalk');
|
|
7
|
-
require('./yarn-
|
|
8
|
-
require('./run-
|
|
9
|
-
var index = require('./index-
|
|
7
|
+
require('./yarn-8315d2ff.cjs.js');
|
|
8
|
+
require('./run-d843bae0.cjs.js');
|
|
9
|
+
var index = require('./index-fc99613b.cjs.js');
|
|
10
10
|
var partition = require('lodash/partition');
|
|
11
|
-
var PackageGraph = require('./PackageGraph-
|
|
11
|
+
var PackageGraph = require('./PackageGraph-583328aa.cjs.js');
|
|
12
12
|
require('fs-extra');
|
|
13
13
|
require('semver');
|
|
14
14
|
require('@yarnpkg/parsers');
|
|
@@ -113,4 +113,4 @@ function logArray(arr, header, each) {
|
|
|
113
113
|
exports["default"] = lint;
|
|
114
114
|
exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
|
|
115
115
|
exports.includedFilter = includedFilter;
|
|
116
|
-
//# sourceMappingURL=lint-
|
|
116
|
+
//# sourceMappingURL=lint-6ffcd019.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-
|
|
6
|
-
var parallel = require('./parallel-
|
|
7
|
-
var index = require('./index-
|
|
5
|
+
var PackageGraph = require('./PackageGraph-583328aa.cjs.js');
|
|
6
|
+
var parallel = require('./parallel-4af834f6.cjs.js');
|
|
7
|
+
var index = require('./index-fc99613b.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-e5943b84.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
|
-
require('./yarn-
|
|
19
|
-
require('./run-
|
|
18
|
+
require('./yarn-8315d2ff.cjs.js');
|
|
19
|
+
require('./run-d843bae0.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-af391261.cjs.js.map
|
package/dist/cjs/{list-deprecations-e1aafd6b.cjs.js → index/list-deprecations-d474804f.cjs.js}
RENAMED
|
@@ -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-fc99613b.cjs.js');
|
|
7
|
+
var PackageGraph = require('./PackageGraph-583328aa.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-e5943b84.cjs.js');
|
|
17
17
|
require('@yarnpkg/parsers');
|
|
18
18
|
require('@yarnpkg/lockfile');
|
|
19
19
|
require('minimatch');
|
|
20
|
-
require('./yarn-
|
|
21
|
-
require('./run-
|
|
20
|
+
require('./yarn-8315d2ff.cjs.js');
|
|
21
|
+
require('./run-d843bae0.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-d474804f.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-fc99613b.cjs.js');
|
|
11
|
+
var tasks = require('./tasks-989067ef.cjs.js');
|
|
12
|
+
var Lockfile = require('./Lockfile-e5943b84.cjs.js');
|
|
13
13
|
require('minimatch');
|
|
14
14
|
require('@manypkg/get-packages');
|
|
15
|
-
require('./yarn-
|
|
16
|
-
require('./run-
|
|
15
|
+
require('./yarn-8315d2ff.cjs.js');
|
|
16
|
+
require('./run-d843bae0.cjs.js');
|
|
17
17
|
var partition = require('lodash/partition');
|
|
18
18
|
var errors = require('@backstage/errors');
|
|
19
19
|
require('commander');
|
|
@@ -560,4 +560,4 @@ var _new = async (opts) => {
|
|
|
560
560
|
};
|
|
561
561
|
|
|
562
562
|
exports["default"] = _new;
|
|
563
|
-
//# sourceMappingURL=new-
|
|
563
|
+
//# sourceMappingURL=new-0aa80b7a.cjs.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var productionPack = require('./productionPack-2d16db59.cjs.js');
|
|
4
|
+
var index = require('./index-fc99613b.cjs.js');
|
|
5
|
+
require('fs-extra');
|
|
6
|
+
require('npm-packlist');
|
|
7
|
+
require('path');
|
|
8
|
+
require('commander');
|
|
9
|
+
require('chalk');
|
|
10
|
+
require('semver');
|
|
11
|
+
require('@backstage/cli-common');
|
|
12
|
+
require('@backstage/errors');
|
|
13
|
+
|
|
14
|
+
const pre = async () => {
|
|
15
|
+
await productionPack.productionPack({ packageDir: index.paths.targetDir });
|
|
16
|
+
};
|
|
17
|
+
const post = async () => {
|
|
18
|
+
await productionPack.revertProductionPack(index.paths.targetDir);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
exports.post = post;
|
|
22
|
+
exports.pre = pre;
|
|
23
|
+
//# sourceMappingURL=pack-06a08024.cjs.js.map
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var fs = require('fs-extra');
|
|
4
|
+
var path = require('path');
|
|
5
|
+
var PackageGraph = require('./PackageGraph-583328aa.cjs.js');
|
|
6
|
+
require('@manypkg/get-packages');
|
|
7
|
+
require('./index-fc99613b.cjs.js');
|
|
8
|
+
require('commander');
|
|
9
|
+
require('chalk');
|
|
10
|
+
require('semver');
|
|
11
|
+
require('@backstage/cli-common');
|
|
12
|
+
require('@backstage/errors');
|
|
13
|
+
require('child_process');
|
|
14
|
+
require('util');
|
|
15
|
+
require('./Lockfile-e5943b84.cjs.js');
|
|
16
|
+
require('@yarnpkg/parsers');
|
|
17
|
+
require('@yarnpkg/lockfile');
|
|
18
|
+
require('minimatch');
|
|
19
|
+
require('./yarn-8315d2ff.cjs.js');
|
|
20
|
+
require('./run-d843bae0.cjs.js');
|
|
21
|
+
|
|
22
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
23
|
+
|
|
24
|
+
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|
25
|
+
|
|
26
|
+
function trimRelative(path) {
|
|
27
|
+
if (path.startsWith("./")) {
|
|
28
|
+
return path.slice(2);
|
|
29
|
+
}
|
|
30
|
+
return path;
|
|
31
|
+
}
|
|
32
|
+
async function command() {
|
|
33
|
+
const packages = await PackageGraph.PackageGraph.listTargetPackages();
|
|
34
|
+
await Promise.all(
|
|
35
|
+
packages.map(async ({ dir, packageJson }) => {
|
|
36
|
+
let changed = false;
|
|
37
|
+
let newPackageJson = packageJson;
|
|
38
|
+
let { exports: exp } = newPackageJson;
|
|
39
|
+
if (!exp) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (Array.isArray(exp)) {
|
|
43
|
+
throw new Error("Unexpected array in package.json exports field");
|
|
44
|
+
}
|
|
45
|
+
if (typeof exp === "string") {
|
|
46
|
+
changed = true;
|
|
47
|
+
exp = { ".": exp };
|
|
48
|
+
newPackageJson.exports = exp;
|
|
49
|
+
} else if (typeof exp !== "object") {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (!exp["./package.json"]) {
|
|
53
|
+
changed = true;
|
|
54
|
+
exp["./package.json"] = "./package.json";
|
|
55
|
+
}
|
|
56
|
+
const existingTypesVersions = JSON.stringify(packageJson.typesVersions);
|
|
57
|
+
const typeEntries = {};
|
|
58
|
+
for (const [path, value] of Object.entries(exp)) {
|
|
59
|
+
if (path === ".") {
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
const newPath = trimRelative(path);
|
|
63
|
+
if (typeof value === "string") {
|
|
64
|
+
typeEntries[newPath] = [trimRelative(value)];
|
|
65
|
+
} else if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
66
|
+
if (typeof value.types === "string") {
|
|
67
|
+
typeEntries[newPath] = [trimRelative(value.types)];
|
|
68
|
+
} else if (typeof value.default === "string") {
|
|
69
|
+
typeEntries[newPath] = [trimRelative(value.default)];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const typesVersions = { "*": typeEntries };
|
|
74
|
+
if (existingTypesVersions !== JSON.stringify(typesVersions)) {
|
|
75
|
+
console.log(`Synchronizing exports in ${packageJson.name}`);
|
|
76
|
+
const newPkgEntries = Object.entries(newPackageJson).filter(
|
|
77
|
+
([name]) => name !== "typesVersions"
|
|
78
|
+
);
|
|
79
|
+
newPkgEntries.splice(
|
|
80
|
+
newPkgEntries.findIndex(([name]) => name === "exports") + 1,
|
|
81
|
+
0,
|
|
82
|
+
["typesVersions", typesVersions]
|
|
83
|
+
);
|
|
84
|
+
newPackageJson = Object.fromEntries(
|
|
85
|
+
newPkgEntries
|
|
86
|
+
);
|
|
87
|
+
changed = true;
|
|
88
|
+
}
|
|
89
|
+
const publishConfig = newPackageJson.publishConfig;
|
|
90
|
+
if (publishConfig) {
|
|
91
|
+
for (const field of ["main", "module", "browser", "types"]) {
|
|
92
|
+
if (publishConfig[field]) {
|
|
93
|
+
delete publishConfig[field];
|
|
94
|
+
changed = true;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
if (changed) {
|
|
99
|
+
await fs__default["default"].writeJson(path.resolve(dir, "package.json"), newPackageJson, {
|
|
100
|
+
spaces: 2
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
})
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
exports.command = command;
|
|
108
|
+
//# sourceMappingURL=packageExports-ddd7a9dd.cjs.js.map
|
package/dist/cjs/{packageLintConfigs-bd6a6ffb.cjs.js → index/packageLintConfigs-3be64192.cjs.js}
RENAMED
|
@@ -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-583328aa.cjs.js');
|
|
6
|
+
var run = require('./run-d843bae0.cjs.js');
|
|
7
7
|
require('@manypkg/get-packages');
|
|
8
|
-
require('./index-
|
|
8
|
+
require('./index-fc99613b.cjs.js');
|
|
9
9
|
require('commander');
|
|
10
10
|
require('chalk');
|
|
11
11
|
require('semver');
|
|
@@ -13,11 +13,11 @@ require('@backstage/cli-common');
|
|
|
13
13
|
require('@backstage/errors');
|
|
14
14
|
require('child_process');
|
|
15
15
|
require('util');
|
|
16
|
-
require('./Lockfile-
|
|
16
|
+
require('./Lockfile-e5943b84.cjs.js');
|
|
17
17
|
require('@yarnpkg/parsers');
|
|
18
18
|
require('@yarnpkg/lockfile');
|
|
19
19
|
require('minimatch');
|
|
20
|
-
require('./yarn-
|
|
20
|
+
require('./yarn-8315d2ff.cjs.js');
|
|
21
21
|
|
|
22
22
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
23
23
|
|
|
@@ -85,4 +85,4 @@ async function command() {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
exports.command = command;
|
|
88
|
-
//# sourceMappingURL=packageLintConfigs-
|
|
88
|
+
//# sourceMappingURL=packageLintConfigs-3be64192.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-fc99613b.cjs.js');
|
|
7
|
+
var packageRoles = require('./packageRoles-2d5ba047.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-1c4efbb6.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-fc99613b.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-2d5ba047.cjs.js.map
|