@backstage/cli 0.29.3-next.2 → 0.29.3
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 +21 -27
- package/dist/commands/build/buildFrontend.cjs.js +1 -1
- package/dist/{modules/config/commands → commands/config}/docs.cjs.js +1 -1
- package/dist/{modules/config/commands → commands/config}/print.cjs.js +1 -1
- package/dist/{modules/config/commands → commands/config}/schema.cjs.js +1 -1
- package/dist/{modules/config/commands → commands/config}/validate.cjs.js +1 -1
- package/dist/commands/create-github-app/index.cjs.js +3 -1
- package/dist/commands/index.cjs.js +72 -34
- package/dist/commands/lint.cjs.js +2 -11
- package/dist/commands/repo/lint.cjs.js +2 -13
- package/dist/commands/versions/bump.cjs.js +0 -14
- package/dist/lib/bundler/server.cjs.js +1 -1
- package/dist/{modules/config/lib → lib}/config.cjs.js +1 -1
- package/dist/lib/version.cjs.js +3 -0
- package/dist/packages/backend-defaults/package.json.cjs.js +1 -1
- package/dist/packages/backend-plugin-api/package.json.cjs.js +1 -1
- package/dist/packages/backend-test-utils/package.json.cjs.js +1 -1
- package/dist/packages/catalog-client/package.json.cjs.js +1 -1
- package/dist/packages/cli/package.json.cjs.js +4 -3
- package/dist/packages/config/package.json.cjs.js +1 -1
- package/dist/packages/core-app-api/package.json.cjs.js +1 -1
- package/dist/packages/core-components/package.json.cjs.js +1 -1
- package/dist/packages/core-plugin-api/package.json.cjs.js +1 -1
- package/dist/packages/dev-utils/package.json.cjs.js +1 -1
- package/dist/packages/errors/package.json.cjs.js +1 -1
- package/dist/packages/test-utils/package.json.cjs.js +1 -1
- package/dist/packages/theme/package.json.cjs.js +1 -1
- package/dist/plugins/auth-backend/package.json.cjs.js +1 -1
- package/dist/plugins/auth-backend-module-guest-provider/package.json.cjs.js +1 -1
- package/dist/plugins/catalog-node/package.json.cjs.js +1 -1
- package/dist/plugins/scaffolder-node/package.json.cjs.js +1 -1
- package/dist/plugins/scaffolder-node-test-utils/package.json.cjs.js +1 -1
- package/package.json +30 -29
- package/bin/backstage-cli-alpha +0 -19
- package/config/prettier.json +0 -5
- package/dist/lib/lazy.cjs.js +0 -20
- package/dist/modules/config/index.cjs.js +0 -43
package/CHANGELOG.md
CHANGED
|
@@ -1,61 +1,55 @@
|
|
|
1
1
|
# @backstage/cli
|
|
2
2
|
|
|
3
|
-
## 0.29.3
|
|
3
|
+
## 0.29.3
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- 2c5822c: Revert `css-loader@v7` bump
|
|
8
8
|
- Updated dependencies
|
|
9
|
-
- @backstage/
|
|
10
|
-
- @backstage/cli-node@0.2.11-next.1
|
|
11
|
-
- @backstage/config-loader@1.9.3-next.1
|
|
12
|
-
- @backstage/catalog-model@1.7.2-next.0
|
|
9
|
+
- @backstage/catalog-model@1.7.1
|
|
13
10
|
- @backstage/cli-common@0.1.15
|
|
14
|
-
- @backstage/
|
|
11
|
+
- @backstage/cli-node@0.2.10
|
|
12
|
+
- @backstage/config@1.3.0
|
|
13
|
+
- @backstage/config-loader@1.9.2
|
|
14
|
+
- @backstage/errors@1.2.5
|
|
15
15
|
- @backstage/eslint-plugin@0.1.10
|
|
16
|
-
- @backstage/integration@1.
|
|
17
|
-
- @backstage/release-manifests@0.0.
|
|
16
|
+
- @backstage/integration@1.15.2
|
|
17
|
+
- @backstage/release-manifests@0.0.11
|
|
18
18
|
- @backstage/types@1.2.0
|
|
19
19
|
|
|
20
|
-
## 0.29.
|
|
20
|
+
## 0.29.2
|
|
21
21
|
|
|
22
22
|
### Patch Changes
|
|
23
23
|
|
|
24
|
-
-
|
|
25
|
-
-
|
|
24
|
+
- a9fc871: Update `rollup` to avoid issues with build output when running `backstage-cli package build`.
|
|
25
|
+
- a9fc871: Fixed a bug that caused missing code in published packages.
|
|
26
26
|
- Updated dependencies
|
|
27
|
-
- @backstage/config-loader@1.9.3-next.0
|
|
28
|
-
- @backstage/release-manifests@0.0.12-next.1
|
|
29
27
|
- @backstage/catalog-model@1.7.1
|
|
30
28
|
- @backstage/cli-common@0.1.15
|
|
31
|
-
- @backstage/cli-node@0.2.
|
|
29
|
+
- @backstage/cli-node@0.2.10
|
|
32
30
|
- @backstage/config@1.3.0
|
|
31
|
+
- @backstage/config-loader@1.9.2
|
|
33
32
|
- @backstage/errors@1.2.5
|
|
34
33
|
- @backstage/eslint-plugin@0.1.10
|
|
35
|
-
- @backstage/integration@1.
|
|
34
|
+
- @backstage/integration@1.15.2
|
|
35
|
+
- @backstage/release-manifests@0.0.11
|
|
36
36
|
- @backstage/types@1.2.0
|
|
37
37
|
|
|
38
|
-
## 0.29.
|
|
38
|
+
## 0.29.1
|
|
39
39
|
|
|
40
40
|
### Patch Changes
|
|
41
41
|
|
|
42
|
-
-
|
|
43
|
-
- 7dcff85: Remove special-casing for `@types` packages when generating dependency entries
|
|
44
|
-
during templating
|
|
45
|
-
- 0aff006: Bumped the version range for `html-webpack-plugin` to fix the `htmlPluginExports.getCompilationHooks is not a function` error when using experimental Rspack.
|
|
46
|
-
- 583f3d4: Added `@backstage/cli/config/prettier` as a replacement for `@spotify/prettier-config`, but with the same configuration.
|
|
47
|
-
- 5f04976: Update `rollup` to avoid issues with build output when running `backstage-cli package build`.
|
|
48
|
-
- 5f04976: Fixed a bug that caused missing code in published packages.
|
|
42
|
+
- 0121b32: Bumped the version range for `html-webpack-plugin` to fix the `htmlPluginExports.getCompilationHooks is not a function` error when using experimental Rspack.
|
|
49
43
|
- Updated dependencies
|
|
50
|
-
- @backstage/integration@1.16.0-next.0
|
|
51
|
-
- @backstage/release-manifests@0.0.12-next.0
|
|
52
|
-
- @backstage/cli-node@0.2.11-next.0
|
|
53
44
|
- @backstage/catalog-model@1.7.1
|
|
54
45
|
- @backstage/cli-common@0.1.15
|
|
46
|
+
- @backstage/cli-node@0.2.10
|
|
55
47
|
- @backstage/config@1.3.0
|
|
56
48
|
- @backstage/config-loader@1.9.2
|
|
57
49
|
- @backstage/errors@1.2.5
|
|
58
50
|
- @backstage/eslint-plugin@0.1.10
|
|
51
|
+
- @backstage/integration@1.15.2
|
|
52
|
+
- @backstage/release-manifests@0.0.11
|
|
59
53
|
- @backstage/types@1.2.0
|
|
60
54
|
|
|
61
55
|
## 0.29.0
|
|
@@ -9,7 +9,7 @@ require('react-dev-utils/openBrowser');
|
|
|
9
9
|
require('webpack');
|
|
10
10
|
require('webpack-dev-server');
|
|
11
11
|
require('../../lib/paths.cjs.js');
|
|
12
|
-
var config = require('../../
|
|
12
|
+
var config = require('../../lib/config.cjs.js');
|
|
13
13
|
require('eslint-webpack-plugin');
|
|
14
14
|
require('fork-ts-checker-webpack-plugin');
|
|
15
15
|
require('html-webpack-plugin');
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var configLoader = require('@backstage/config-loader');
|
|
6
6
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
7
|
-
var config = require('
|
|
7
|
+
var config = require('../../lib/config.cjs.js');
|
|
8
8
|
|
|
9
9
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var yaml = require('yaml');
|
|
6
6
|
var config$1 = require('@backstage/config');
|
|
7
|
-
var config = require('
|
|
7
|
+
var config = require('../../lib/config.cjs.js');
|
|
8
8
|
|
|
9
9
|
var print = async (opts) => {
|
|
10
10
|
const { schema, appConfigs } = await config.loadCliConfig({
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var yaml = require('yaml');
|
|
6
|
-
var config = require('
|
|
6
|
+
var config = require('../../lib/config.cjs.js');
|
|
7
7
|
var configLoader = require('@backstage/config-loader');
|
|
8
8
|
|
|
9
9
|
var schema = async (opts) => {
|
|
@@ -8,6 +8,7 @@ var yaml = require('yaml');
|
|
|
8
8
|
var inquirer = require('inquirer');
|
|
9
9
|
var paths = require('../../lib/paths.cjs.js');
|
|
10
10
|
var GithubCreateAppServer = require('./GithubCreateAppServer.cjs.js');
|
|
11
|
+
var fetch = require('node-fetch');
|
|
11
12
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
12
13
|
|
|
13
14
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
@@ -15,6 +16,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
16
|
var fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
|
|
16
17
|
var chalk__default = /*#__PURE__*/_interopDefaultCompat(chalk);
|
|
17
18
|
var inquirer__default = /*#__PURE__*/_interopDefaultCompat(inquirer);
|
|
19
|
+
var fetch__default = /*#__PURE__*/_interopDefaultCompat(fetch);
|
|
18
20
|
var openBrowser__default = /*#__PURE__*/_interopDefaultCompat(openBrowser);
|
|
19
21
|
|
|
20
22
|
var index = async (org) => {
|
|
@@ -73,7 +75,7 @@ integrations:
|
|
|
73
75
|
async function verifyGithubOrg(org) {
|
|
74
76
|
let response;
|
|
75
77
|
try {
|
|
76
|
-
response = await
|
|
78
|
+
response = await fetch__default.default(
|
|
77
79
|
`https://api.github.com/orgs/${encodeURIComponent(org)}`
|
|
78
80
|
);
|
|
79
81
|
} catch (e) {
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var commander = require('commander');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var errors = require('@backstage/errors');
|
|
5
|
+
var errors$1 = require('../lib/errors.cjs.js');
|
|
6
6
|
|
|
7
|
+
const configOption = [
|
|
8
|
+
"--config <path>",
|
|
9
|
+
"Config files to load instead of app-config.yaml",
|
|
10
|
+
(opt, opts) => opts ? [...opts, opt] : [opt],
|
|
11
|
+
Array()
|
|
12
|
+
];
|
|
7
13
|
function registerRepoCommand(program) {
|
|
8
14
|
const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
|
|
9
15
|
command.command("build").description(
|
|
@@ -17,14 +23,11 @@ function registerRepoCommand(program) {
|
|
|
17
23
|
).option(
|
|
18
24
|
"--minify",
|
|
19
25
|
"Minify the generated code. Does not apply to app package (app is minified by default)."
|
|
20
|
-
).action(lazy
|
|
26
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./repo/build.cjs.js'); }).then((m) => m.command)));
|
|
21
27
|
command.command("lint").description("Lint all packages in the project").option(
|
|
22
28
|
"--format <format>",
|
|
23
29
|
"Lint report output format",
|
|
24
30
|
"eslint-formatter-friendly"
|
|
25
|
-
).option(
|
|
26
|
-
"--output-file <path>",
|
|
27
|
-
"Write the lint report to a file instead of stdout"
|
|
28
31
|
).option(
|
|
29
32
|
"--since <ref>",
|
|
30
33
|
"Only lint packages that changed since the specified ref"
|
|
@@ -34,17 +37,17 @@ function registerRepoCommand(program) {
|
|
|
34
37
|
).option(
|
|
35
38
|
"--successCacheDir <path>",
|
|
36
39
|
"Set the success cache location, (default: node_modules/.cache/backstage-cli)"
|
|
37
|
-
).option("--fix", "Attempt to automatically fix violations").action(lazy
|
|
40
|
+
).option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./repo/lint.cjs.js'); }).then((m) => m.command)));
|
|
38
41
|
command.command("fix").description("Automatically fix packages in the project").option(
|
|
39
42
|
"--publish",
|
|
40
43
|
"Enable additional fixes that only apply when publishing packages"
|
|
41
44
|
).option(
|
|
42
45
|
"--check",
|
|
43
46
|
"Fail if any packages would have been changed by the command"
|
|
44
|
-
).action(lazy
|
|
45
|
-
command.command("clean").description("Delete cache and output directories").action(lazy
|
|
47
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./repo/fix.cjs.js'); }).then((m) => m.command)));
|
|
48
|
+
command.command("clean").description("Delete cache and output directories").action(lazy(() => Promise.resolve().then(function () { return require('./repo/clean.cjs.js'); }).then((m) => m.command)));
|
|
46
49
|
command.command("list-deprecations").description("List deprecations").option("--json", "Output as JSON").action(
|
|
47
|
-
lazy
|
|
50
|
+
lazy(() => Promise.resolve().then(function () { return require('./repo/list-deprecations.cjs.js'); }).then((m) => m.command))
|
|
48
51
|
);
|
|
49
52
|
command.command("test").allowUnknownOption(true).option(
|
|
50
53
|
"--since <ref>",
|
|
@@ -58,14 +61,14 @@ function registerRepoCommand(program) {
|
|
|
58
61
|
).option(
|
|
59
62
|
"--jest-help",
|
|
60
63
|
"Show help for Jest CLI options, which are passed through"
|
|
61
|
-
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy
|
|
64
|
+
).description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy(() => Promise.resolve().then(function () { return require('./repo/test.cjs.js'); }).then((m) => m.command)));
|
|
62
65
|
}
|
|
63
66
|
function registerScriptCommand(program) {
|
|
64
67
|
const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
|
|
65
|
-
command.command("start").description("Start a package for local development").option(...
|
|
68
|
+
command.command("start").description("Start a package for local development").option(...configOption).option("--role <name>", "Run the command with an explicit package role").option("--check", "Enable type checking and linting if available").option("--inspect [host]", "Enable debugger in Node.js environments").option(
|
|
66
69
|
"--inspect-brk [host]",
|
|
67
70
|
"Enable debugger in Node.js environments, breaking before code starts"
|
|
68
|
-
).option("--require <path>", "Add a --require argument to the node process").option("--link <path>", "Link an external workspace for module resolution").action(lazy
|
|
71
|
+
).option("--require <path>", "Add a --require argument to the node process").option("--link <path>", "Link an external workspace for module resolution").action(lazy(() => Promise.resolve().then(function () { return require('./start/index.cjs.js'); }).then((m) => m.command)));
|
|
69
72
|
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option(
|
|
70
73
|
"--minify",
|
|
71
74
|
"Minify the generated code. Does not apply to app package (app is minified by default)."
|
|
@@ -80,41 +83,38 @@ function registerScriptCommand(program) {
|
|
|
80
83
|
"Config files to load instead of app-config.yaml. Applies to app packages only.",
|
|
81
84
|
(opt, opts) => opts ? [...opts, opt] : [opt],
|
|
82
85
|
Array()
|
|
83
|
-
).action(lazy
|
|
86
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./build/index.cjs.js'); }).then((m) => m.command)));
|
|
84
87
|
command.command("lint [directories...]").option(
|
|
85
88
|
"--format <format>",
|
|
86
89
|
"Lint report output format",
|
|
87
90
|
"eslint-formatter-friendly"
|
|
88
|
-
).option(
|
|
89
|
-
"--output-file <path>",
|
|
90
|
-
"Write the lint report to a file instead of stdout"
|
|
91
91
|
).option("--fix", "Attempt to automatically fix violations").option(
|
|
92
92
|
"--max-warnings <number>",
|
|
93
93
|
"Fail if more than this number of warnings. -1 allows warnings. (default: 0)"
|
|
94
|
-
).description("Lint a package").action(lazy
|
|
95
|
-
command.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode").action(lazy
|
|
96
|
-
command.command("clean").description("Delete cache directories").action(lazy
|
|
97
|
-
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy
|
|
98
|
-
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy
|
|
94
|
+
).description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint.cjs.js'); }).then((m) => m.default)));
|
|
95
|
+
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.cjs.js'); }).then((m) => m.default)));
|
|
96
|
+
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean/clean.cjs.js'); }).then((m) => m.default)));
|
|
97
|
+
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack.cjs.js'); }).then((m) => m.pre)));
|
|
98
|
+
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack.cjs.js'); }).then((m) => m.post)));
|
|
99
99
|
}
|
|
100
100
|
function registerMigrateCommand(program) {
|
|
101
101
|
const command = program.command("migrate [command]").description("Migration utilities");
|
|
102
|
-
command.command("package-roles").description(`Add package role field to packages that don't have it`).action(lazy
|
|
102
|
+
command.command("package-roles").description(`Add package role field to packages that don't have it`).action(lazy(() => Promise.resolve().then(function () { return require('./migrate/packageRole.cjs.js'); }).then((m) => m.default)));
|
|
103
103
|
command.command("package-scripts").description("Set package scripts according to each package role").action(
|
|
104
|
-
lazy
|
|
104
|
+
lazy(() => Promise.resolve().then(function () { return require('./migrate/packageScripts.cjs.js'); }).then((m) => m.command))
|
|
105
105
|
);
|
|
106
106
|
command.command("package-exports").description("Synchronize package subpath export definitions").action(
|
|
107
|
-
lazy
|
|
107
|
+
lazy(() => Promise.resolve().then(function () { return require('./migrate/packageExports.cjs.js'); }).then((m) => m.command))
|
|
108
108
|
);
|
|
109
109
|
command.command("package-lint-configs").description(
|
|
110
110
|
"Migrates all packages to use @backstage/cli/config/eslint-factory"
|
|
111
111
|
).action(
|
|
112
|
-
lazy
|
|
112
|
+
lazy(() => Promise.resolve().then(function () { return require('./migrate/packageLintConfigs.cjs.js'); }).then((m) => m.command))
|
|
113
113
|
);
|
|
114
114
|
command.command("react-router-deps").description(
|
|
115
115
|
"Migrates the react-router dependencies for all packages to be peer dependencies"
|
|
116
116
|
).action(
|
|
117
|
-
lazy
|
|
117
|
+
lazy(() => Promise.resolve().then(function () { return require('./migrate/reactRouterDeps.cjs.js'); }).then((m) => m.command))
|
|
118
118
|
);
|
|
119
119
|
}
|
|
120
120
|
function registerCommands(program) {
|
|
@@ -137,8 +137,34 @@ function registerCommands(program) {
|
|
|
137
137
|
).option(
|
|
138
138
|
"--license <license>",
|
|
139
139
|
"The license to use for any new packages (default: Apache-2.0)"
|
|
140
|
-
).option("--no-private", "Do not mark new packages as private").action(lazy
|
|
141
|
-
|
|
140
|
+
).option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./new/new.cjs.js'); }).then((m) => m.default)));
|
|
141
|
+
program.command("config:docs").option(
|
|
142
|
+
"--package <name>",
|
|
143
|
+
"Only include the schema that applies to the given package"
|
|
144
|
+
).description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./config/docs.cjs.js'); }).then((m) => m.default)));
|
|
145
|
+
program.command("config:print").option(
|
|
146
|
+
"--package <name>",
|
|
147
|
+
"Only load config schema that applies to the given package"
|
|
148
|
+
).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(
|
|
149
|
+
"--format <format>",
|
|
150
|
+
"Format to print the configuration in, either json or yaml [yaml]"
|
|
151
|
+
).option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./config/print.cjs.js'); }).then((m) => m.default)));
|
|
152
|
+
program.command("config:check").option(
|
|
153
|
+
"--package <name>",
|
|
154
|
+
"Only load config schema that applies to the given package"
|
|
155
|
+
).option("--lax", "Do not require environment variables to be set").option("--frontend", "Only validate the frontend configuration").option("--deprecated", "Output deprecated configuration settings").option(
|
|
156
|
+
"--strict",
|
|
157
|
+
"Enable strict config validation, forbidding errors and unknown keys"
|
|
158
|
+
).option(...configOption).description(
|
|
159
|
+
"Validate that the given configuration loads and matches schema"
|
|
160
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./config/validate.cjs.js'); }).then((m) => m.default)));
|
|
161
|
+
program.command("config:schema").option(
|
|
162
|
+
"--package <name>",
|
|
163
|
+
"Only output config schema that applies to the given package"
|
|
164
|
+
).option(
|
|
165
|
+
"--format <format>",
|
|
166
|
+
"Format to print the schema in, either json or yaml [yaml]"
|
|
167
|
+
).option("--merge", "Print the config schemas merged", true).option("--no-merge", "Print the config schemas not merged").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./config/schema.cjs.js'); }).then((m) => m.default)));
|
|
142
168
|
registerRepoCommand(program);
|
|
143
169
|
registerScriptCommand(program);
|
|
144
170
|
registerMigrateCommand(program);
|
|
@@ -149,7 +175,7 @@ function registerCommands(program) {
|
|
|
149
175
|
"--release <version|next|main>",
|
|
150
176
|
"Bump to a specific Backstage release line or version",
|
|
151
177
|
"main"
|
|
152
|
-
).option("--skip-install", "Skips yarn install step").option("--skip-migrate", "Skips migration of any moved packages").description("Bump Backstage packages to the latest versions").action(lazy
|
|
178
|
+
).option("--skip-install", "Skips yarn install step").option("--skip-migrate", "Skips migration of any moved packages").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./versions/bump.cjs.js'); }).then((m) => m.default)));
|
|
153
179
|
program.command("versions:migrate").option(
|
|
154
180
|
"--pattern <glob>",
|
|
155
181
|
"Override glob for matching packages to upgrade"
|
|
@@ -158,7 +184,7 @@ function registerCommands(program) {
|
|
|
158
184
|
"Skip code changes and only update package.json files"
|
|
159
185
|
).description(
|
|
160
186
|
"Migrate any plugins that have been moved to the @backstage-community namespace automatically"
|
|
161
|
-
).action(lazy
|
|
187
|
+
).action(lazy(() => Promise.resolve().then(function () { return require('./versions/migrate.cjs.js'); }).then((m) => m.default)));
|
|
162
188
|
program.command("build-workspace <workspace-dir> [packages...]").addOption(
|
|
163
189
|
new commander.Option(
|
|
164
190
|
"--alwaysYarnPack",
|
|
@@ -167,9 +193,9 @@ function registerCommands(program) {
|
|
|
167
193
|
).option(
|
|
168
194
|
"--alwaysPack",
|
|
169
195
|
"Force workspace output to be a result of running `yarn pack` on each package (warning: very slow)"
|
|
170
|
-
).description("Builds a temporary dist workspace from the provided packages").action(lazy
|
|
171
|
-
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy
|
|
172
|
-
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy
|
|
196
|
+
).description("Builds a temporary dist workspace from the provided packages").action(lazy(() => Promise.resolve().then(function () { return require('./buildWorkspace.cjs.js'); }).then((m) => m.default)));
|
|
197
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./create-github-app/index.cjs.js'); }).then((m) => m.default)));
|
|
198
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info.cjs.js'); }).then((m) => m.default)));
|
|
173
199
|
program.command("create").allowUnknownOption(true).action(removed("use 'backstage-cli new' instead"));
|
|
174
200
|
program.command("create-plugin").allowUnknownOption(true).action(removed("use 'backstage-cli new' instead"));
|
|
175
201
|
program.command("plugin:diff").allowUnknownOption(true).action(removed("use 'backstage-cli fix' instead"));
|
|
@@ -191,6 +217,18 @@ function removed(message) {
|
|
|
191
217
|
process.exit(1);
|
|
192
218
|
};
|
|
193
219
|
}
|
|
220
|
+
function lazy(getActionFunc) {
|
|
221
|
+
return async (...args) => {
|
|
222
|
+
try {
|
|
223
|
+
const actionFunc = await getActionFunc();
|
|
224
|
+
await actionFunc(...args);
|
|
225
|
+
process.exit(0);
|
|
226
|
+
} catch (error) {
|
|
227
|
+
errors.assertError(error);
|
|
228
|
+
errors$1.exitWithError(error);
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
}
|
|
194
232
|
|
|
195
233
|
exports.registerCommands = registerCommands;
|
|
196
234
|
exports.registerMigrateCommand = registerMigrateCommand;
|
|
@@ -2,14 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var fs = require('fs-extra');
|
|
6
5
|
var paths = require('../lib/paths.cjs.js');
|
|
7
6
|
var eslint = require('eslint');
|
|
8
7
|
|
|
9
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
var fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
|
|
12
|
-
|
|
13
8
|
var lint = async (directories, opts) => {
|
|
14
9
|
const eslint$1 = new eslint.ESLint({
|
|
15
10
|
cwd: paths.paths.targetDir,
|
|
@@ -29,13 +24,9 @@ var lint = async (directories, opts) => {
|
|
|
29
24
|
if (opts.format === "eslint-formatter-friendly") {
|
|
30
25
|
process.chdir(paths.paths.targetRoot);
|
|
31
26
|
}
|
|
32
|
-
const resultText =
|
|
27
|
+
const resultText = formatter.format(results);
|
|
33
28
|
if (resultText) {
|
|
34
|
-
|
|
35
|
-
await fs__default.default.writeFile(paths.paths.resolveTarget(opts.outputFile), resultText);
|
|
36
|
-
} else {
|
|
37
|
-
console.log(resultText);
|
|
38
|
-
}
|
|
29
|
+
console.log(resultText);
|
|
39
30
|
}
|
|
40
31
|
if (failed) {
|
|
41
32
|
process.exit(1);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chalk = require('chalk');
|
|
4
|
-
var fs = require('fs-extra');
|
|
5
4
|
var crypto = require('crypto');
|
|
6
5
|
var path = require('path');
|
|
7
6
|
var cliNode = require('@backstage/cli-node');
|
|
@@ -13,7 +12,6 @@ var SuccessCache = require('../../lib/cache/SuccessCache.cjs.js');
|
|
|
13
12
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
14
13
|
|
|
15
14
|
var chalk__default = /*#__PURE__*/_interopDefaultCompat(chalk);
|
|
16
|
-
var fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
|
|
17
15
|
|
|
18
16
|
function depCount(pkg) {
|
|
19
17
|
const deps = pkg.dependencies ? Object.keys(pkg.dependencies).length : 0;
|
|
@@ -160,7 +158,6 @@ async function command(opts, cmd) {
|
|
|
160
158
|
}
|
|
161
159
|
});
|
|
162
160
|
const outputSuccessCache = [];
|
|
163
|
-
let errorOutput = "";
|
|
164
161
|
let failed = false;
|
|
165
162
|
for (const {
|
|
166
163
|
relativeDir,
|
|
@@ -172,21 +169,13 @@ async function command(opts, cmd) {
|
|
|
172
169
|
console.log(chalk__default.default.red(`Lint failed in ${relativeDir}`));
|
|
173
170
|
failed = true;
|
|
174
171
|
if (resultText) {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
`;
|
|
178
|
-
} else {
|
|
179
|
-
console.log();
|
|
180
|
-
console.log(resultText.trimStart());
|
|
181
|
-
}
|
|
172
|
+
console.log();
|
|
173
|
+
console.log(resultText.trimStart());
|
|
182
174
|
}
|
|
183
175
|
} else if (sha) {
|
|
184
176
|
outputSuccessCache.push(sha);
|
|
185
177
|
}
|
|
186
178
|
}
|
|
187
|
-
if (opts.outputFile && errorOutput) {
|
|
188
|
-
await fs__default.default.writeFile(paths.paths.resolveTargetRoot(opts.outputFile), errorOutput);
|
|
189
|
-
}
|
|
190
179
|
if (cacheContext) {
|
|
191
180
|
await cache.write(outputSuccessCache);
|
|
192
181
|
}
|
|
@@ -18,7 +18,6 @@ var parallel = require('../../lib/parallel.cjs.js');
|
|
|
18
18
|
var releaseManifests = require('@backstage/release-manifests');
|
|
19
19
|
var migrate = require('./migrate.cjs.js');
|
|
20
20
|
var utils = require('./utils.cjs.js');
|
|
21
|
-
var run = require('../../lib/run.cjs.js');
|
|
22
21
|
|
|
23
22
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
24
23
|
|
|
@@ -82,19 +81,6 @@ var bump = async (opts) => {
|
|
|
82
81
|
releaseManifest
|
|
83
82
|
});
|
|
84
83
|
}
|
|
85
|
-
if (hasYarnPlugin) {
|
|
86
|
-
console.log();
|
|
87
|
-
console.log(
|
|
88
|
-
`Updating yarn plugin to v${releaseManifest.releaseVersion}...`
|
|
89
|
-
);
|
|
90
|
-
console.log();
|
|
91
|
-
await run.run("yarn", [
|
|
92
|
-
"plugin",
|
|
93
|
-
"import",
|
|
94
|
-
`https://versions.backstage.io/v1/releases/${releaseManifest.releaseVersion}/yarn-plugin`
|
|
95
|
-
]);
|
|
96
|
-
console.log();
|
|
97
|
-
}
|
|
98
84
|
const dependencyMap = await packages.mapDependencies(paths.paths.targetDir, pattern);
|
|
99
85
|
const versionBumps = /* @__PURE__ */ new Map();
|
|
100
86
|
await parallel.runParallelWorkers({
|
|
@@ -6,7 +6,7 @@ var openBrowser = require('react-dev-utils/openBrowser');
|
|
|
6
6
|
var webpack = require('webpack');
|
|
7
7
|
var WebpackDevServer = require('webpack-dev-server');
|
|
8
8
|
var paths$1 = require('../paths.cjs.js');
|
|
9
|
-
var config = require('
|
|
9
|
+
var config = require('../config.cjs.js');
|
|
10
10
|
var config$1 = require('./config.cjs.js');
|
|
11
11
|
var packageDetection = require('./packageDetection.cjs.js');
|
|
12
12
|
var paths = require('./paths.cjs.js');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var configLoader = require('@backstage/config-loader');
|
|
4
4
|
var config = require('@backstage/config');
|
|
5
|
-
var paths = require('
|
|
5
|
+
var paths = require('./paths.cjs.js');
|
|
6
6
|
var getPackages = require('@manypkg/get-packages');
|
|
7
7
|
var cliNode = require('@backstage/cli-node');
|
|
8
8
|
|
package/dist/lib/version.cjs.js
CHANGED
|
@@ -61,6 +61,9 @@ function createPackageVersionProvider(lockfile) {
|
|
|
61
61
|
throw new Error(`No version available for package ${name}`);
|
|
62
62
|
}
|
|
63
63
|
const lockfileEntries = lockfile?.get(name);
|
|
64
|
+
if (name.startsWith("@types/") && lockfileEntries?.some((entry) => entry.range === "*")) {
|
|
65
|
+
return "*";
|
|
66
|
+
}
|
|
64
67
|
for (const specifier of ["^", "~", "*"]) {
|
|
65
68
|
const range = `workspace:${specifier}`;
|
|
66
69
|
if (lockfileEntries?.some((entry) => entry.range === range)) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var version = "0.29.3
|
|
3
|
+
var version = "0.29.3";
|
|
4
4
|
var dependencies = {
|
|
5
5
|
"@backstage/catalog-model": "workspace:^",
|
|
6
6
|
"@backstage/cli-common": "workspace:^",
|
|
@@ -13,7 +13,7 @@ var dependencies = {
|
|
|
13
13
|
"@backstage/release-manifests": "workspace:^",
|
|
14
14
|
"@backstage/types": "workspace:^",
|
|
15
15
|
"@manypkg/get-packages": "^1.1.3",
|
|
16
|
-
"@module-federation/enhanced": "^0.
|
|
16
|
+
"@module-federation/enhanced": "^0.7.0",
|
|
17
17
|
"@octokit/graphql": "^5.0.0",
|
|
18
18
|
"@octokit/graphql-schema": "^13.7.0",
|
|
19
19
|
"@octokit/oauth-app": "^4.2.0",
|
|
@@ -48,7 +48,7 @@ var dependencies = {
|
|
|
48
48
|
commander: "^12.0.0",
|
|
49
49
|
"cross-fetch": "^4.0.0",
|
|
50
50
|
"cross-spawn": "^7.0.3",
|
|
51
|
-
"css-loader": "^
|
|
51
|
+
"css-loader": "^6.5.1",
|
|
52
52
|
"ctrlc-windows": "^2.1.0",
|
|
53
53
|
esbuild: "^0.24.0",
|
|
54
54
|
"esbuild-loader": "^4.0.0",
|
|
@@ -82,6 +82,7 @@ var dependencies = {
|
|
|
82
82
|
lodash: "^4.17.21",
|
|
83
83
|
"mini-css-extract-plugin": "^2.4.2",
|
|
84
84
|
minimatch: "^9.0.0",
|
|
85
|
+
"node-fetch": "^2.7.0",
|
|
85
86
|
"node-libs-browser": "^2.2.1",
|
|
86
87
|
"npm-packlist": "^5.0.0",
|
|
87
88
|
ora: "^5.3.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/cli",
|
|
3
|
-
"version": "0.29.3
|
|
3
|
+
"version": "0.29.3",
|
|
4
4
|
"description": "CLI for developing Backstage plugins and apps",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "cli"
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
"watch": "./src"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@backstage/catalog-model": "1.7.
|
|
46
|
-
"@backstage/cli-common": "0.1.15",
|
|
47
|
-
"@backstage/cli-node": "0.2.
|
|
48
|
-
"@backstage/config": "1.3.
|
|
49
|
-
"@backstage/config-loader": "1.9.
|
|
50
|
-
"@backstage/errors": "1.2.
|
|
51
|
-
"@backstage/eslint-plugin": "0.1.10",
|
|
52
|
-
"@backstage/integration": "1.
|
|
53
|
-
"@backstage/release-manifests": "0.0.
|
|
54
|
-
"@backstage/types": "1.2.0",
|
|
45
|
+
"@backstage/catalog-model": "^1.7.1",
|
|
46
|
+
"@backstage/cli-common": "^0.1.15",
|
|
47
|
+
"@backstage/cli-node": "^0.2.10",
|
|
48
|
+
"@backstage/config": "^1.3.0",
|
|
49
|
+
"@backstage/config-loader": "^1.9.2",
|
|
50
|
+
"@backstage/errors": "^1.2.5",
|
|
51
|
+
"@backstage/eslint-plugin": "^0.1.10",
|
|
52
|
+
"@backstage/integration": "^1.15.2",
|
|
53
|
+
"@backstage/release-manifests": "^0.0.11",
|
|
54
|
+
"@backstage/types": "^1.2.0",
|
|
55
55
|
"@manypkg/get-packages": "^1.1.3",
|
|
56
|
-
"@module-federation/enhanced": "^0.
|
|
56
|
+
"@module-federation/enhanced": "^0.7.0",
|
|
57
57
|
"@octokit/graphql": "^5.0.0",
|
|
58
58
|
"@octokit/graphql-schema": "^13.7.0",
|
|
59
59
|
"@octokit/oauth-app": "^4.2.0",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"commander": "^12.0.0",
|
|
89
89
|
"cross-fetch": "^4.0.0",
|
|
90
90
|
"cross-spawn": "^7.0.3",
|
|
91
|
-
"css-loader": "^
|
|
91
|
+
"css-loader": "^6.5.1",
|
|
92
92
|
"ctrlc-windows": "^2.1.0",
|
|
93
93
|
"esbuild": "^0.24.0",
|
|
94
94
|
"esbuild-loader": "^4.0.0",
|
|
@@ -122,6 +122,7 @@
|
|
|
122
122
|
"lodash": "^4.17.21",
|
|
123
123
|
"mini-css-extract-plugin": "^2.4.2",
|
|
124
124
|
"minimatch": "^9.0.0",
|
|
125
|
+
"node-fetch": "^2.7.0",
|
|
125
126
|
"node-libs-browser": "^2.2.1",
|
|
126
127
|
"npm-packlist": "^5.0.0",
|
|
127
128
|
"ora": "^5.3.0",
|
|
@@ -157,22 +158,22 @@
|
|
|
157
158
|
"zod": "^3.22.4"
|
|
158
159
|
},
|
|
159
160
|
"devDependencies": {
|
|
160
|
-
"@backstage/backend-plugin-api": "1.
|
|
161
|
-
"@backstage/backend-test-utils": "1.
|
|
162
|
-
"@backstage/catalog-client": "1.
|
|
163
|
-
"@backstage/config": "1.3.
|
|
164
|
-
"@backstage/core-app-api": "1.15.
|
|
165
|
-
"@backstage/core-components": "0.16.
|
|
166
|
-
"@backstage/core-plugin-api": "1.10.
|
|
167
|
-
"@backstage/dev-utils": "1.1.
|
|
168
|
-
"@backstage/errors": "1.2.
|
|
169
|
-
"@backstage/plugin-auth-backend": "0.24.
|
|
170
|
-
"@backstage/plugin-auth-backend-module-guest-provider": "0.2.
|
|
171
|
-
"@backstage/plugin-catalog-node": "1.
|
|
172
|
-
"@backstage/plugin-scaffolder-node": "0.6.
|
|
173
|
-
"@backstage/plugin-scaffolder-node-test-utils": "0.1.
|
|
174
|
-
"@backstage/test-utils": "1.7.
|
|
175
|
-
"@backstage/theme": "0.6.
|
|
161
|
+
"@backstage/backend-plugin-api": "^1.0.2",
|
|
162
|
+
"@backstage/backend-test-utils": "^1.1.0",
|
|
163
|
+
"@backstage/catalog-client": "^1.8.0",
|
|
164
|
+
"@backstage/config": "^1.3.0",
|
|
165
|
+
"@backstage/core-app-api": "^1.15.2",
|
|
166
|
+
"@backstage/core-components": "^0.16.1",
|
|
167
|
+
"@backstage/core-plugin-api": "^1.10.1",
|
|
168
|
+
"@backstage/dev-utils": "^1.1.4",
|
|
169
|
+
"@backstage/errors": "^1.2.5",
|
|
170
|
+
"@backstage/plugin-auth-backend": "^0.24.0",
|
|
171
|
+
"@backstage/plugin-auth-backend-module-guest-provider": "^0.2.2",
|
|
172
|
+
"@backstage/plugin-catalog-node": "^1.14.0",
|
|
173
|
+
"@backstage/plugin-scaffolder-node": "^0.6.1",
|
|
174
|
+
"@backstage/plugin-scaffolder-node-test-utils": "^0.1.16",
|
|
175
|
+
"@backstage/test-utils": "^1.7.2",
|
|
176
|
+
"@backstage/theme": "^0.6.2",
|
|
176
177
|
"@rspack/core": "^1.0.10",
|
|
177
178
|
"@rspack/dev-server": "^1.0.9",
|
|
178
179
|
"@rspack/plugin-react-refresh": "^1.0.0",
|
package/bin/backstage-cli-alpha
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/*
|
|
3
|
-
* Copyright 2020 The Backstage Authors
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
require('@backstage/cli/config/nodeTransform.cjs');
|
|
19
|
-
require('../src/alpha');
|
package/config/prettier.json
DELETED
package/dist/lib/lazy.cjs.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var errors = require('@backstage/errors');
|
|
4
|
-
var errors$1 = require('./errors.cjs.js');
|
|
5
|
-
|
|
6
|
-
function lazy(getActionFunc) {
|
|
7
|
-
return async (...args) => {
|
|
8
|
-
try {
|
|
9
|
-
const actionFunc = await getActionFunc();
|
|
10
|
-
await actionFunc(...args);
|
|
11
|
-
process.exit(0);
|
|
12
|
-
} catch (error) {
|
|
13
|
-
errors.assertError(error);
|
|
14
|
-
errors$1.exitWithError(error);
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
exports.lazy = lazy;
|
|
20
|
-
//# sourceMappingURL=lazy.cjs.js.map
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var lazy = require('../../lib/lazy.cjs.js');
|
|
4
|
-
|
|
5
|
-
const configOption = [
|
|
6
|
-
"--config <path>",
|
|
7
|
-
"Config files to load instead of app-config.yaml",
|
|
8
|
-
(opt, opts) => opts ? [...opts, opt] : [opt],
|
|
9
|
-
Array()
|
|
10
|
-
];
|
|
11
|
-
function registerCommands(program) {
|
|
12
|
-
program.command("config:docs").option(
|
|
13
|
-
"--package <name>",
|
|
14
|
-
"Only include the schema that applies to the given package"
|
|
15
|
-
).description("Browse the configuration reference documentation").action(lazy.lazy(() => Promise.resolve().then(function () { return require('./commands/docs.cjs.js'); }).then((m) => m.default)));
|
|
16
|
-
program.command("config:print").option(
|
|
17
|
-
"--package <name>",
|
|
18
|
-
"Only load config schema that applies to the given package"
|
|
19
|
-
).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(
|
|
20
|
-
"--format <format>",
|
|
21
|
-
"Format to print the configuration in, either json or yaml [yaml]"
|
|
22
|
-
).option(...configOption).description("Print the app configuration for the current package").action(lazy.lazy(() => Promise.resolve().then(function () { return require('./commands/print.cjs.js'); }).then((m) => m.default)));
|
|
23
|
-
program.command("config:check").option(
|
|
24
|
-
"--package <name>",
|
|
25
|
-
"Only load config schema that applies to the given package"
|
|
26
|
-
).option("--lax", "Do not require environment variables to be set").option("--frontend", "Only validate the frontend configuration").option("--deprecated", "Output deprecated configuration settings").option(
|
|
27
|
-
"--strict",
|
|
28
|
-
"Enable strict config validation, forbidding errors and unknown keys"
|
|
29
|
-
).option(...configOption).description(
|
|
30
|
-
"Validate that the given configuration loads and matches schema"
|
|
31
|
-
).action(lazy.lazy(() => Promise.resolve().then(function () { return require('./commands/validate.cjs.js'); }).then((m) => m.default)));
|
|
32
|
-
program.command("config:schema").option(
|
|
33
|
-
"--package <name>",
|
|
34
|
-
"Only output config schema that applies to the given package"
|
|
35
|
-
).option(
|
|
36
|
-
"--format <format>",
|
|
37
|
-
"Format to print the schema in, either json or yaml [yaml]"
|
|
38
|
-
).option("--merge", "Print the config schemas merged", true).option("--no-merge", "Print the config schemas not merged").description("Print configuration schema").action(lazy.lazy(() => Promise.resolve().then(function () { return require('./commands/schema.cjs.js'); }).then((m) => m.default)));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
exports.configOption = configOption;
|
|
42
|
-
exports.registerCommands = registerCommands;
|
|
43
|
-
//# sourceMappingURL=index.cjs.js.map
|