@backstage/cli 0.17.0-next.3 → 0.17.1-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 +69 -0
- package/config/eslint-factory.js +8 -2
- package/config/jest.js +13 -2
- package/config/jestCachingModuleLoader.js +81 -0
- package/dist/cjs/{PackageGraph-17641f81.cjs.js → PackageGraph-82efc305.cjs.js} +2 -2
- package/dist/cjs/{backend-3303c8ff.cjs.js → backend-663637e2.cjs.js} +2 -2
- package/dist/cjs/{build-8f6dd895.cjs.js → build-4895865f.cjs.js} +17 -15
- package/dist/cjs/{build-b3242b82.cjs.js → build-4eeed965.cjs.js} +7 -7
- package/dist/cjs/{build-13bb9d46.cjs.js → build-ec12b828.cjs.js} +10 -10
- package/dist/cjs/{build-97ca4b2d.cjs.js → build-f1a8e153.cjs.js} +7 -7
- package/dist/cjs/{buildBackend-9366ec75.cjs.js → buildBackend-f3ad1010.cjs.js} +8 -8
- package/dist/cjs/{buildWorkspace-30315311.cjs.js → buildWorkspace-cf28843c.cjs.js} +8 -8
- package/dist/cjs/{bump-e4fb932f.cjs.js → bump-2e78c102.cjs.js} +13 -12
- package/dist/cjs/{bundle-37b178d9.cjs.js → bundle-3f5606a0.cjs.js} +9 -9
- package/dist/cjs/{bundle-eae7def3.cjs.js → bundle-a367adb0.cjs.js} +2 -2
- package/dist/cjs/{clean-1c14c9ab.cjs.js → clean-8fd25e1d.cjs.js} +2 -2
- package/dist/cjs/{config-7b4332bb.cjs.js → config-193dda83.cjs.js} +3 -3
- package/dist/cjs/{create-afd62424.cjs.js → create-23431352.cjs.js} +10 -11
- package/dist/cjs/{createDistWorkspace-3df8dbb4.cjs.js → createDistWorkspace-6ad3e10a.cjs.js} +6 -6
- package/dist/cjs/{createPlugin-d4dfef57.cjs.js → createPlugin-850e9677.cjs.js} +11 -11
- package/dist/cjs/{dev-702595dd.cjs.js → dev-347bd5a1.cjs.js} +9 -9
- package/dist/cjs/{diff-bd41b052.cjs.js → diff-193a2303.cjs.js} +5 -5
- package/dist/cjs/{docs-701ad34d.cjs.js → docs-cf25306d.cjs.js} +6 -6
- package/dist/cjs/{fix-8c32ea3b.cjs.js → fix-6cff35fe.cjs.js} +3 -3
- package/dist/cjs/{index-3e06c009.cjs.js → index-0f2d3231.cjs.js} +16 -16
- package/dist/cjs/{index-0629f171.cjs.js → index-38f7e56c.cjs.js} +18 -18
- package/dist/cjs/{index-92cbcfd3.cjs.js → index-7bc0be5b.cjs.js} +39 -2
- package/dist/cjs/{index-e118c2a4.cjs.js → index-a03d6ecd.cjs.js} +69 -67
- package/dist/cjs/{info-4b92696e.cjs.js → info-895fe5a1.cjs.js} +3 -3
- package/dist/cjs/{install-d9db34b3.cjs.js → install-53caa556.cjs.js} +4 -4
- package/dist/cjs/{lint-b7993096.cjs.js → lint-3697bcd1.cjs.js} +3 -3
- package/dist/cjs/{lint-0e447174.cjs.js → lint-9e007a34.cjs.js} +8 -8
- package/dist/cjs/{lint-4c6822a2.cjs.js → lint-fe016d90.cjs.js} +9 -9
- package/dist/cjs/{list-deprecations-176aa47f.cjs.js → list-deprecations-da8d83ec.cjs.js} +5 -5
- package/dist/cjs/{oldBuild-3ec8f51f.cjs.js → oldBuild-2d7642ec.cjs.js} +8 -8
- package/dist/cjs/{pack-6801a632.cjs.js → pack-899cb92c.cjs.js} +2 -2
- package/dist/cjs/{packageLintConfigs-5c18b923.cjs.js → packageLintConfigs-2b2f9dba.cjs.js} +4 -4
- package/dist/cjs/{packageRole-f86acdc9.cjs.js → packageRole-c8ddf297.cjs.js} +3 -3
- package/dist/cjs/{packageRoles-d821af92.cjs.js → packageRoles-cd537e06.cjs.js} +5 -5
- package/dist/cjs/{packageScripts-d6436fea.cjs.js → packageScripts-ea427fce.cjs.js} +4 -4
- package/dist/cjs/{packager-8dec5b5c.cjs.js → packager-da91e4cd.cjs.js} +13 -3
- package/dist/cjs/{packages-69b593f5.cjs.js → packages-0d95622f.cjs.js} +3 -3
- package/dist/cjs/{paths-fa5069e2.cjs.js → paths-8e8904ea.cjs.js} +3 -3
- package/dist/cjs/{print-8d4666e0.cjs.js → print-37da78a5.cjs.js} +15 -15
- package/dist/cjs/{run-471b21e3.cjs.js → run-08cc6f37.cjs.js} +2 -2
- package/dist/cjs/{schema-baa94000.cjs.js → schema-5f950b20.cjs.js} +7 -7
- package/dist/cjs/{serve-324c0e17.cjs.js → serve-0ea3e28a.cjs.js} +10 -10
- package/dist/cjs/{serve-abe42fa5.cjs.js → serve-5bf85d58.cjs.js} +11 -11
- package/dist/cjs/{server-51bc45f8.cjs.js → server-b5e40f73.cjs.js} +2 -2
- package/dist/cjs/{tasks-8df457ac.cjs.js → tasks-5df3a3b5.cjs.js} +2 -2
- package/dist/cjs/{testCommand-31cf5090.cjs.js → test-0c22ceab.cjs.js} +7 -7
- package/dist/cjs/{validate-9918c9fb.cjs.js → validate-d8581b37.cjs.js} +10 -10
- package/dist/index.cjs.js +1 -1
- package/package.json +14 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var commander = require('commander');
|
|
4
4
|
var chalk = require('chalk');
|
|
5
5
|
var fs = require('fs-extra');
|
|
6
6
|
var semver = require('semver');
|
|
@@ -9,7 +9,6 @@ var errors = require('@backstage/errors');
|
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
12
|
-
var program__default = /*#__PURE__*/_interopDefaultLegacy(program);
|
|
13
12
|
var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
|
|
14
13
|
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|
15
14
|
var semver__default = /*#__PURE__*/_interopDefaultLegacy(semver);
|
|
@@ -45,13 +44,13 @@ class NotFoundError extends CustomError {
|
|
|
45
44
|
|
|
46
45
|
const paths = cliCommon.findPaths(__dirname);
|
|
47
46
|
|
|
48
|
-
var version$a = "0.13.
|
|
47
|
+
var version$a = "0.13.3-next.1";
|
|
49
48
|
|
|
50
|
-
var version$9 = "0.17.
|
|
49
|
+
var version$9 = "0.17.1-next.1";
|
|
51
50
|
var dependencies = {
|
|
52
51
|
"@backstage/cli-common": "^0.1.8",
|
|
53
52
|
"@backstage/config": "^1.0.0",
|
|
54
|
-
"@backstage/config-loader": "^1.1.
|
|
53
|
+
"@backstage/config-loader": "^1.1.1-next.0",
|
|
55
54
|
"@backstage/errors": "^1.0.0",
|
|
56
55
|
"@backstage/release-manifests": "^0.0.2",
|
|
57
56
|
"@backstage/types": "^1.0.0",
|
|
@@ -80,7 +79,7 @@ var dependencies = {
|
|
|
80
79
|
buffer: "^6.0.3",
|
|
81
80
|
chalk: "^4.0.0",
|
|
82
81
|
chokidar: "^3.3.1",
|
|
83
|
-
commander: "^
|
|
82
|
+
commander: "^9.1.0",
|
|
84
83
|
"css-loader": "^6.5.1",
|
|
85
84
|
diff: "^5.0.0",
|
|
86
85
|
esbuild: "^0.14.10",
|
|
@@ -98,18 +97,21 @@ var dependencies = {
|
|
|
98
97
|
"eslint-webpack-plugin": "^3.1.1",
|
|
99
98
|
express: "^4.17.1",
|
|
100
99
|
"fork-ts-checker-webpack-plugin": "^7.0.0-alpha.8",
|
|
101
|
-
"fs-extra": "10.0
|
|
100
|
+
"fs-extra": "10.1.0",
|
|
102
101
|
glob: "^7.1.7",
|
|
102
|
+
"global-agent": "^3.0.0",
|
|
103
103
|
handlebars: "^4.7.3",
|
|
104
104
|
"html-webpack-plugin": "^5.3.1",
|
|
105
105
|
inquirer: "^8.2.0",
|
|
106
106
|
jest: "^27.5.1",
|
|
107
|
+
"jest-runtime": "^27.5.1",
|
|
107
108
|
"jest-css-modules": "^2.1.0",
|
|
108
109
|
"jest-transform-yaml": "^1.0.0",
|
|
109
110
|
"json-schema": "^0.4.0",
|
|
110
111
|
lodash: "^4.17.21",
|
|
111
112
|
"mini-css-extract-plugin": "^2.4.2",
|
|
112
113
|
minimatch: "5.0.1",
|
|
114
|
+
"node-fetch": "^2.6.7",
|
|
113
115
|
"node-libs-browser": "^2.2.1",
|
|
114
116
|
"npm-packlist": "^5.0.0",
|
|
115
117
|
ora: "^5.3.0",
|
|
@@ -140,13 +142,13 @@ var dependencies = {
|
|
|
140
142
|
zod: "^3.11.6"
|
|
141
143
|
};
|
|
142
144
|
var devDependencies = {
|
|
143
|
-
"@backstage/backend-common": "^0.13.
|
|
145
|
+
"@backstage/backend-common": "^0.13.3-next.1",
|
|
144
146
|
"@backstage/config": "^1.0.0",
|
|
145
|
-
"@backstage/core-app-api": "^1.0.
|
|
146
|
-
"@backstage/core-components": "^0.9.
|
|
147
|
-
"@backstage/core-plugin-api": "^1.0.
|
|
148
|
-
"@backstage/dev-utils": "^1.0.
|
|
149
|
-
"@backstage/test-utils": "^1.0
|
|
147
|
+
"@backstage/core-app-api": "^1.0.2-next.0",
|
|
148
|
+
"@backstage/core-components": "^0.9.4-next.0",
|
|
149
|
+
"@backstage/core-plugin-api": "^1.0.2-next.0",
|
|
150
|
+
"@backstage/dev-utils": "^1.0.2-next.1",
|
|
151
|
+
"@backstage/test-utils": "^1.1.0-next.1",
|
|
150
152
|
"@backstage/theme": "^0.2.15",
|
|
151
153
|
"@types/diff": "^5.0.0",
|
|
152
154
|
"@types/express": "^4.17.6",
|
|
@@ -173,19 +175,19 @@ var devDependencies = {
|
|
|
173
175
|
|
|
174
176
|
var version$8 = "1.0.0";
|
|
175
177
|
|
|
176
|
-
var version$7 = "1.0.
|
|
178
|
+
var version$7 = "1.0.2-next.0";
|
|
177
179
|
|
|
178
|
-
var version$6 = "0.9.
|
|
180
|
+
var version$6 = "0.9.4-next.0";
|
|
179
181
|
|
|
180
|
-
var version$5 = "1.0.
|
|
182
|
+
var version$5 = "1.0.2-next.0";
|
|
181
183
|
|
|
182
|
-
var version$4 = "1.0.
|
|
184
|
+
var version$4 = "1.0.2-next.1";
|
|
183
185
|
|
|
184
|
-
var version$3 = "1.0
|
|
186
|
+
var version$3 = "1.1.0-next.1";
|
|
185
187
|
|
|
186
188
|
var version$2 = "0.2.15";
|
|
187
189
|
|
|
188
|
-
var version$1 = "1.
|
|
190
|
+
var version$1 = "1.2.0-next.0";
|
|
189
191
|
|
|
190
192
|
const packageVersions = {
|
|
191
193
|
"@backstage/backend-common": version$a,
|
|
@@ -235,62 +237,62 @@ function createPackageVersionProvider(lockfile) {
|
|
|
235
237
|
const configOption = [
|
|
236
238
|
"--config <path>",
|
|
237
239
|
"Config files to load instead of app-config.yaml",
|
|
238
|
-
(opt, opts) => [...opts, opt],
|
|
240
|
+
(opt, opts) => opts ? [...opts, opt] : [opt],
|
|
239
241
|
Array()
|
|
240
242
|
];
|
|
241
243
|
function registerRepoCommand(program) {
|
|
242
244
|
const command = program.command("repo [command]").description("Command that run across an entire Backstage project");
|
|
243
|
-
command.command("build").description("Build packages in the project, excluding bundled app and backend packages.").option("--all", "Build all packages, including bundled app and backend packages.").option("--since <ref>", "Only build packages and their dev dependents that changed since the specified ref").action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
244
|
-
command.command("lint").description("Lint all packages in the project").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--since <ref>", "Only lint packages that changed since the specified ref").option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
245
|
-
command.command("list-deprecations", { hidden: true }).description("List deprecations. [EXPERIMENTAL]").option("--json", "Output as JSON").action(lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-
|
|
245
|
+
command.command("build").description("Build packages in the project, excluding bundled app and backend packages.").option("--all", "Build all packages, including bundled app and backend packages.").option("--since <ref>", "Only build packages and their dev dependents that changed since the specified ref").action(lazy(() => Promise.resolve().then(function () { return require('./build-4895865f.cjs.js'); }).then((m) => m.command)));
|
|
246
|
+
command.command("lint").description("Lint all packages in the project").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--since <ref>", "Only lint packages that changed since the specified ref").option("--fix", "Attempt to automatically fix violations").action(lazy(() => Promise.resolve().then(function () { return require('./lint-fe016d90.cjs.js'); }).then((m) => m.command)));
|
|
247
|
+
command.command("list-deprecations", { hidden: true }).description("List deprecations. [EXPERIMENTAL]").option("--json", "Output as JSON").action(lazy(() => Promise.resolve().then(function () { return require('./list-deprecations-da8d83ec.cjs.js'); }).then((m) => m.command)));
|
|
246
248
|
}
|
|
247
249
|
function registerScriptCommand(program) {
|
|
248
250
|
const command = program.command("package [command]").description("Lifecycle scripts for individual packages");
|
|
249
|
-
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("--inspect-brk", "Enable debugger in Node.js environments, breaking before code starts").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
250
|
-
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option("--minify", "Minify the generated code. Does not apply to app or backend packages.").option("--experimental-type-build", "Enable experimental type build. Does not apply to app or backend packages.").option("--skip-build-dependencies", "Skip the automatic building of local dependencies. Applies to backend packages only.").option("--stats", "If bundle stats are available, write them to the output directory. Applies to app packages only.").option("--config <path>", "Config files to load instead of app-config.yaml. Applies to app packages only.", (opt, opts) => [...opts, opt], Array()).action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
251
|
-
command.command("lint").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
252
|
-
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('./
|
|
253
|
-
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-
|
|
254
|
-
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
255
|
-
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
256
|
-
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
251
|
+
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("--inspect-brk", "Enable debugger in Node.js environments, breaking before code starts").action(lazy(() => Promise.resolve().then(function () { return require('./index-0f2d3231.cjs.js'); }).then((m) => m.command)));
|
|
252
|
+
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role").option("--minify", "Minify the generated code. Does not apply to app or backend packages.").option("--experimental-type-build", "Enable experimental type build. Does not apply to app or backend packages.").option("--skip-build-dependencies", "Skip the automatic building of local dependencies. Applies to backend packages only.").option("--stats", "If bundle stats are available, write them to the output directory. Applies to app packages only.").option("--config <path>", "Config files to load instead of app-config.yaml. Applies to app packages only.", (opt, opts) => opts ? [...opts, opt] : [opt], Array()).action(lazy(() => Promise.resolve().then(function () { return require('./index-38f7e56c.cjs.js'); }).then((m) => m.command)));
|
|
253
|
+
command.command("lint [directories...]").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--fix", "Attempt to automatically fix violations").description("Lint a package").action(lazy(() => Promise.resolve().then(function () { return require('./lint-9e007a34.cjs.js'); }).then((m) => m.default)));
|
|
254
|
+
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-0c22ceab.cjs.js'); }).then((m) => m.default)));
|
|
255
|
+
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-6cff35fe.cjs.js'); }).then((m) => m.command)));
|
|
256
|
+
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-8fd25e1d.cjs.js'); }).then((m) => m.default)));
|
|
257
|
+
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-899cb92c.cjs.js'); }).then((m) => m.pre)));
|
|
258
|
+
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-899cb92c.cjs.js'); }).then((m) => m.post)));
|
|
257
259
|
}
|
|
258
260
|
function registerMigrateCommand(program) {
|
|
259
261
|
const command = program.command("migrate [command]").description("Migration utilities");
|
|
260
|
-
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-
|
|
261
|
-
command.command("package-scripts").description("Set package scripts according to each package role").action(lazy(() => Promise.resolve().then(function () { return require('./packageScripts-
|
|
262
|
-
command.command("package-lint-configs").description("Migrates all packages to use @backstage/cli/config/eslint-factory").action(lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-
|
|
262
|
+
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-c8ddf297.cjs.js'); }).then((m) => m.default)));
|
|
263
|
+
command.command("package-scripts").description("Set package scripts according to each package role").action(lazy(() => Promise.resolve().then(function () { return require('./packageScripts-ea427fce.cjs.js'); }).then((m) => m.command)));
|
|
264
|
+
command.command("package-lint-configs").description("Migrates all packages to use @backstage/cli/config/eslint-factory").action(lazy(() => Promise.resolve().then(function () { return require('./packageLintConfigs-2b2f9dba.cjs.js'); }).then((m) => m.command)));
|
|
263
265
|
}
|
|
264
266
|
function registerCommands(program) {
|
|
265
|
-
program.command("app:build").description("Build an app for a production release [DEPRECATED]").option("--stats", "Write bundle stats to output directory").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
266
|
-
program.command("app:serve").description("Serve an app for local development [DEPRECATED]").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-
|
|
267
|
-
program.command("backend:build").description("Build a backend plugin [DEPRECATED]").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
268
|
-
program.command("backend:bundle").description("Bundle the backend into a deployment archive [DEPRECATED]").option("--build-dependencies", "Build all local package dependencies before bundling the backend").action(lazy(() => Promise.resolve().then(function () { return require('./bundle-
|
|
269
|
-
program.command("backend:dev").description("Start local development server with HMR for the backend [DEPRECATED]").option("--check", "Enable type checking and linting").option("--inspect", "Enable debugger").option("--inspect-brk", "Enable debugger with await to attach debugger").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./dev-
|
|
270
|
-
program.command("create").storeOptionsAsProperties(false).description("Open up an interactive guide to creating new things in your app").option("--select <name>", "Select the thing you want to be creating upfront").option("--option <name>=<value>", "Pre-fill options for the creation process", (opt, arr) => [...arr, opt], []).option("--scope <scope>", "The scope to use for new packages").option("--npm-registry <URL>", "The package registry to use for new packages").option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./create-
|
|
271
|
-
program.command("create-plugin").option("--backend", "Create plugin with the backend dependencies as default").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(lazy(() => Promise.resolve().then(function () { return require('./createPlugin-
|
|
272
|
-
program.command("plugin:build").description("Build a plugin [DEPRECATED]").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
273
|
-
program.command("plugin:serve").description("Serves the dev/ folder of a plugin [DEPRECATED]").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-
|
|
274
|
-
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-
|
|
275
|
-
program.command("build").description("Build a package for publishing [DEPRECATED]").option("--outputs <formats>", "List of formats to output [types,cjs,esm]").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./oldBuild-
|
|
276
|
-
program.command("lint").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--fix", "Attempt to automatically fix violations").description("Lint a package [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./lint-
|
|
277
|
-
program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./
|
|
278
|
-
program.command("config:docs").option("--package <name>", "Only include the schema that applies to the given package").description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-
|
|
279
|
-
program.command("config:print").option("--package <name>", "Only load config schema that applies to the given package").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("--format <format>", "Format to print the configuration in, either json or yaml [yaml]").option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-
|
|
280
|
-
program.command("config:check").option("--package <name>", "Only load config schema that applies to the given package").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("Validate that the given configuration loads and matches schema").action(lazy(() => Promise.resolve().then(function () { return require('./validate-
|
|
281
|
-
program.command("config:schema").option("--package <name>", "Only output config schema that applies to the given package").option("--format <format>", "Format to print the schema in, either json or yaml [yaml]").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-
|
|
267
|
+
program.command("app:build").description("Build an app for a production release [DEPRECATED]").option("--stats", "Write bundle stats to output directory").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./build-ec12b828.cjs.js'); }).then((m) => m.default)));
|
|
268
|
+
program.command("app:serve").description("Serve an app for local development [DEPRECATED]").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-5bf85d58.cjs.js'); }).then((m) => m.default)));
|
|
269
|
+
program.command("backend:build").description("Build a backend plugin [DEPRECATED]").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./build-4eeed965.cjs.js'); }).then((m) => m.default)));
|
|
270
|
+
program.command("backend:bundle").description("Bundle the backend into a deployment archive [DEPRECATED]").option("--build-dependencies", "Build all local package dependencies before bundling the backend").action(lazy(() => Promise.resolve().then(function () { return require('./bundle-3f5606a0.cjs.js'); }).then((m) => m.default)));
|
|
271
|
+
program.command("backend:dev").description("Start local development server with HMR for the backend [DEPRECATED]").option("--check", "Enable type checking and linting").option("--inspect", "Enable debugger").option("--inspect-brk", "Enable debugger with await to attach debugger").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./dev-347bd5a1.cjs.js'); }).then((m) => m.default)));
|
|
272
|
+
program.command("create").storeOptionsAsProperties(false).description("Open up an interactive guide to creating new things in your app").option("--select <name>", "Select the thing you want to be creating upfront").option("--option <name>=<value>", "Pre-fill options for the creation process", (opt, arr) => [...arr, opt], []).option("--scope <scope>", "The scope to use for new packages").option("--npm-registry <URL>", "The package registry to use for new packages").option("--no-private", "Do not mark new packages as private").action(lazy(() => Promise.resolve().then(function () { return require('./create-23431352.cjs.js'); }).then((m) => m.default)));
|
|
273
|
+
program.command("create-plugin").option("--backend", "Create plugin with the backend dependencies as default").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(lazy(() => Promise.resolve().then(function () { return require('./createPlugin-850e9677.cjs.js'); }).then((m) => m.default)));
|
|
274
|
+
program.command("plugin:build").description("Build a plugin [DEPRECATED]").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./build-f1a8e153.cjs.js'); }).then((m) => m.default)));
|
|
275
|
+
program.command("plugin:serve").description("Serves the dev/ folder of a plugin [DEPRECATED]").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-0ea3e28a.cjs.js'); }).then((m) => m.default)));
|
|
276
|
+
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-193a2303.cjs.js'); }).then((m) => m.default)));
|
|
277
|
+
program.command("build").description("Build a package for publishing [DEPRECATED]").option("--outputs <formats>", "List of formats to output [types,cjs,esm]").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./oldBuild-2d7642ec.cjs.js'); }).then((m) => m.default)));
|
|
278
|
+
program.command("lint [directories...]").option("--format <format>", "Lint report output format", "eslint-formatter-friendly").option("--fix", "Attempt to automatically fix violations").description("Lint a package [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./lint-9e007a34.cjs.js'); }).then((m) => m.default)));
|
|
279
|
+
program.command("test").allowUnknownOption(true).helpOption(", --backstage-cli-help").description("Run tests, forwarding args to Jest, defaulting to watch mode [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./test-0c22ceab.cjs.js'); }).then((m) => m.default)));
|
|
280
|
+
program.command("config:docs").option("--package <name>", "Only include the schema that applies to the given package").description("Browse the configuration reference documentation").action(lazy(() => Promise.resolve().then(function () { return require('./docs-cf25306d.cjs.js'); }).then((m) => m.default)));
|
|
281
|
+
program.command("config:print").option("--package <name>", "Only load config schema that applies to the given package").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("--format <format>", "Format to print the configuration in, either json or yaml [yaml]").option(...configOption).description("Print the app configuration for the current package").action(lazy(() => Promise.resolve().then(function () { return require('./print-37da78a5.cjs.js'); }).then((m) => m.default)));
|
|
282
|
+
program.command("config:check").option("--package <name>", "Only load config schema that applies to the given package").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("Validate that the given configuration loads and matches schema").action(lazy(() => Promise.resolve().then(function () { return require('./validate-d8581b37.cjs.js'); }).then((m) => m.default)));
|
|
283
|
+
program.command("config:schema").option("--package <name>", "Only output config schema that applies to the given package").option("--format <format>", "Format to print the schema in, either json or yaml [yaml]").description("Print configuration schema").action(lazy(() => Promise.resolve().then(function () { return require('./schema-5f950b20.cjs.js'); }).then((m) => m.default)));
|
|
282
284
|
registerRepoCommand(program);
|
|
283
285
|
registerScriptCommand(program);
|
|
284
286
|
registerMigrateCommand(program);
|
|
285
|
-
program.command("versions:bump").option("--pattern <glob>", "Override glob for matching packages to upgrade").option("--release <version|next|main>", "Bump to a specific Backstage release line or version", "main").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-
|
|
286
|
-
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-
|
|
287
|
-
program.command("prepack").description("Prepares a package for packaging before publishing [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
288
|
-
program.command("postpack").description("Restores the changes made by the prepack command [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
289
|
-
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
290
|
-
program.command("build-workspace <workspace-dir>
|
|
291
|
-
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
292
|
-
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-
|
|
293
|
-
program.command("install [plugin-id]", { hidden: true }).option("--from <packageJsonFilePath>", "Install from a local package.json containing the installation recipe").description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-
|
|
287
|
+
program.command("versions:bump").option("--pattern <glob>", "Override glob for matching packages to upgrade").option("--release <version|next|main>", "Bump to a specific Backstage release line or version", "main").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-2e78c102.cjs.js'); }).then((m) => m.default)));
|
|
288
|
+
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-3697bcd1.cjs.js'); }).then((m) => m.default)));
|
|
289
|
+
program.command("prepack").description("Prepares a package for packaging before publishing [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./pack-899cb92c.cjs.js'); }).then((m) => m.pre)));
|
|
290
|
+
program.command("postpack").description("Restores the changes made by the prepack command [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./pack-899cb92c.cjs.js'); }).then((m) => m.post)));
|
|
291
|
+
program.command("clean").description("Delete cache directories [DEPRECATED]").action(lazy(() => Promise.resolve().then(function () { return require('./clean-8fd25e1d.cjs.js'); }).then((m) => m.default)));
|
|
292
|
+
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-cf28843c.cjs.js'); }).then((m) => m.default)));
|
|
293
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-7bc0be5b.cjs.js'); }).then((m) => m.default)));
|
|
294
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-895fe5a1.cjs.js'); }).then((m) => m.default)));
|
|
295
|
+
program.command("install [plugin-id]", { hidden: true }).option("--from <packageJsonFilePath>", "Install from a local package.json containing the installation recipe").description("Install a Backstage plugin [EXPERIMENTAL]").action(lazy(() => Promise.resolve().then(function () { return require('./install-53caa556.cjs.js'); }).then((m) => m.default)));
|
|
294
296
|
}
|
|
295
297
|
function lazy(getActionFunc) {
|
|
296
298
|
return async (...args) => {
|
|
@@ -306,16 +308,16 @@ function lazy(getActionFunc) {
|
|
|
306
308
|
}
|
|
307
309
|
|
|
308
310
|
const main = (argv) => {
|
|
309
|
-
|
|
310
|
-
registerCommands(
|
|
311
|
-
|
|
311
|
+
commander.program.name("backstage-cli").version(version);
|
|
312
|
+
registerCommands(commander.program);
|
|
313
|
+
commander.program.on("command:*", () => {
|
|
312
314
|
console.log();
|
|
313
|
-
console.log(chalk__default["default"].red(`Invalid command: ${
|
|
315
|
+
console.log(chalk__default["default"].red(`Invalid command: ${commander.program.args.join(" ")}`));
|
|
314
316
|
console.log();
|
|
315
|
-
|
|
317
|
+
commander.program.outputHelp();
|
|
316
318
|
process.exit(1);
|
|
317
319
|
});
|
|
318
|
-
|
|
320
|
+
commander.program.parse(argv);
|
|
319
321
|
};
|
|
320
322
|
process.on("unhandledRejection", (rejection) => {
|
|
321
323
|
if (rejection instanceof Error) {
|
|
@@ -334,4 +336,4 @@ exports.devDependencies = devDependencies;
|
|
|
334
336
|
exports.paths = paths;
|
|
335
337
|
exports.version = version;
|
|
336
338
|
exports.version$1 = version$9;
|
|
337
|
-
//# sourceMappingURL=index-
|
|
339
|
+
//# sourceMappingURL=index-a03d6ecd.cjs.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-a03d6ecd.cjs.js');
|
|
4
4
|
var os = require('os');
|
|
5
|
-
var run = require('./run-
|
|
5
|
+
var run = require('./run-08cc6f37.cjs.js');
|
|
6
6
|
var Lockfile = require('./Lockfile-276d1251.cjs.js');
|
|
7
7
|
require('minimatch');
|
|
8
8
|
require('@manypkg/get-packages');
|
|
@@ -42,4 +42,4 @@ var info = async () => {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
exports["default"] = info;
|
|
45
|
-
//# sourceMappingURL=info-
|
|
45
|
+
//# sourceMappingURL=info-895fe5a1.cjs.js.map
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
4
|
require('semver');
|
|
5
5
|
require('@yarnpkg/lockfile');
|
|
6
|
-
var packages = require('./packages-
|
|
7
|
-
var index = require('./index-
|
|
6
|
+
var packages = require('./packages-0d95622f.cjs.js');
|
|
7
|
+
var index = require('./index-a03d6ecd.cjs.js');
|
|
8
8
|
var chalk = require('chalk');
|
|
9
9
|
var sortBy = require('lodash/sortBy');
|
|
10
10
|
var groupBy = require('lodash/groupBy');
|
|
11
|
-
var run = require('./run-
|
|
11
|
+
var run = require('./run-08cc6f37.cjs.js');
|
|
12
12
|
require('minimatch');
|
|
13
13
|
require('@manypkg/get-packages');
|
|
14
14
|
require('commander');
|
|
@@ -239,4 +239,4 @@ var install = async (pluginId, cmd) => {
|
|
|
239
239
|
};
|
|
240
240
|
|
|
241
241
|
exports["default"] = install;
|
|
242
|
-
//# sourceMappingURL=install-
|
|
242
|
+
//# sourceMappingURL=install-53caa556.cjs.js.map
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
var Lockfile = require('./Lockfile-276d1251.cjs.js');
|
|
4
4
|
require('minimatch');
|
|
5
5
|
require('@manypkg/get-packages');
|
|
6
|
-
require('./run-
|
|
6
|
+
require('./run-08cc6f37.cjs.js');
|
|
7
7
|
require('chalk');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-a03d6ecd.cjs.js');
|
|
9
9
|
var partition = require('lodash/partition');
|
|
10
10
|
require('fs-extra');
|
|
11
11
|
require('semver');
|
|
@@ -77,4 +77,4 @@ function logArray(arr, header, each) {
|
|
|
77
77
|
exports["default"] = lint;
|
|
78
78
|
exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
|
|
79
79
|
exports.includedFilter = includedFilter;
|
|
80
|
-
//# sourceMappingURL=lint-
|
|
80
|
+
//# sourceMappingURL=lint-3697bcd1.cjs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-a03d6ecd.cjs.js');
|
|
4
4
|
var eslint = require('eslint');
|
|
5
5
|
require('commander');
|
|
6
6
|
require('chalk');
|
|
@@ -9,18 +9,18 @@ require('semver');
|
|
|
9
9
|
require('@backstage/cli-common');
|
|
10
10
|
require('@backstage/errors');
|
|
11
11
|
|
|
12
|
-
var lint = async (
|
|
12
|
+
var lint = async (directories, opts) => {
|
|
13
13
|
const eslint$1 = new eslint.ESLint({
|
|
14
14
|
cwd: index.paths.targetDir,
|
|
15
|
-
fix:
|
|
15
|
+
fix: opts.fix,
|
|
16
16
|
extensions: ["js", "jsx", "ts", "tsx", "mjs", "cjs"]
|
|
17
17
|
});
|
|
18
|
-
const results = await eslint$1.lintFiles(
|
|
19
|
-
if (
|
|
18
|
+
const results = await eslint$1.lintFiles(directories.length ? directories : ["."]);
|
|
19
|
+
if (opts.fix) {
|
|
20
20
|
await eslint.ESLint.outputFixes(results);
|
|
21
21
|
}
|
|
22
|
-
const formatter = await eslint$1.loadFormatter(
|
|
23
|
-
if (
|
|
22
|
+
const formatter = await eslint$1.loadFormatter(opts.format);
|
|
23
|
+
if (opts.format === "eslint-formatter-friendly") {
|
|
24
24
|
process.chdir(index.paths.targetRoot);
|
|
25
25
|
}
|
|
26
26
|
const resultText = formatter.format(results);
|
|
@@ -31,4 +31,4 @@ var lint = async (cmd, cmdArgs) => {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
exports["default"] = lint;
|
|
34
|
-
//# sourceMappingURL=lint-
|
|
34
|
+
//# sourceMappingURL=lint-9e007a34.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-82efc305.cjs.js');
|
|
6
6
|
var parallel = require('./parallel-8286d3fa.cjs.js');
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-a03d6ecd.cjs.js');
|
|
8
8
|
require('@manypkg/get-packages');
|
|
9
9
|
require('@backstage/errors');
|
|
10
10
|
require('child_process');
|
|
@@ -25,14 +25,14 @@ function depCount(pkg) {
|
|
|
25
25
|
const devDeps = pkg.devDependencies ? Object.keys(pkg.devDependencies).length : 0;
|
|
26
26
|
return deps + devDeps;
|
|
27
27
|
}
|
|
28
|
-
async function command(
|
|
28
|
+
async function command(opts) {
|
|
29
29
|
let packages = await PackageGraph.PackageGraph.listTargetPackages();
|
|
30
|
-
if (
|
|
30
|
+
if (opts.since) {
|
|
31
31
|
const graph = PackageGraph.PackageGraph.fromPackages(packages);
|
|
32
|
-
packages = await graph.listChangedPackages({ ref:
|
|
32
|
+
packages = await graph.listChangedPackages({ ref: opts.since });
|
|
33
33
|
}
|
|
34
34
|
packages.sort((a, b) => depCount(b.packageJson) - depCount(a.packageJson));
|
|
35
|
-
if (
|
|
35
|
+
if (opts.format === "eslint-formatter-friendly") {
|
|
36
36
|
process.chdir(index.paths.targetRoot);
|
|
37
37
|
}
|
|
38
38
|
if (!process.env.FORCE_COLOR) {
|
|
@@ -44,8 +44,8 @@ async function command(cmd) {
|
|
|
44
44
|
relativeDir: path.relative(index.paths.targetRoot, pkg.dir)
|
|
45
45
|
})),
|
|
46
46
|
workerData: {
|
|
47
|
-
fix: Boolean(
|
|
48
|
-
format:
|
|
47
|
+
fix: Boolean(opts.fix),
|
|
48
|
+
format: opts.format
|
|
49
49
|
},
|
|
50
50
|
workerFactory: async ({ fix, format }) => {
|
|
51
51
|
const { ESLint } = require("eslint");
|
|
@@ -88,4 +88,4 @@ async function command(cmd) {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
exports.command = command;
|
|
91
|
-
//# sourceMappingURL=lint-
|
|
91
|
+
//# sourceMappingURL=lint-fe016d90.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-a03d6ecd.cjs.js');
|
|
7
|
+
var PackageGraph = require('./PackageGraph-82efc305.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('fs-extra');
|
|
10
10
|
require('semver');
|
|
@@ -18,7 +18,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
18
18
|
|
|
19
19
|
var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
|
|
20
20
|
|
|
21
|
-
async function command(
|
|
21
|
+
async function command(opts) {
|
|
22
22
|
const packages = await PackageGraph.PackageGraph.listTargetPackages();
|
|
23
23
|
const eslint$1 = new eslint.ESLint({
|
|
24
24
|
cwd: index.paths.targetDir,
|
|
@@ -64,7 +64,7 @@ async function command(cmd) {
|
|
|
64
64
|
stderr.clearLine(0);
|
|
65
65
|
stderr.cursorTo(0);
|
|
66
66
|
}
|
|
67
|
-
if (
|
|
67
|
+
if (opts.json) {
|
|
68
68
|
console.log(JSON.stringify(deprecations, null, 2));
|
|
69
69
|
} else {
|
|
70
70
|
for (const d of deprecations) {
|
|
@@ -79,4 +79,4 @@ async function command(cmd) {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
exports.command = command;
|
|
82
|
-
//# sourceMappingURL=list-deprecations-
|
|
82
|
+
//# sourceMappingURL=list-deprecations-da8d83ec.cjs.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var packager = require('./packager-
|
|
3
|
+
var packager = require('./packager-da91e4cd.cjs.js');
|
|
4
4
|
require('fs-extra');
|
|
5
5
|
require('rollup');
|
|
6
6
|
require('chalk');
|
|
7
7
|
require('path');
|
|
8
|
-
require('./index-
|
|
8
|
+
require('./index-a03d6ecd.cjs.js');
|
|
9
9
|
require('commander');
|
|
10
10
|
require('semver');
|
|
11
11
|
require('@backstage/cli-common');
|
|
@@ -23,12 +23,12 @@ require('./svgrTemplate-550efce6.cjs.js');
|
|
|
23
23
|
require('./parallel-8286d3fa.cjs.js');
|
|
24
24
|
require('os');
|
|
25
25
|
require('worker_threads');
|
|
26
|
-
require('./packageRoles-
|
|
26
|
+
require('./packageRoles-cd537e06.cjs.js');
|
|
27
27
|
require('zod');
|
|
28
28
|
|
|
29
|
-
var oldBuild = async (
|
|
29
|
+
var oldBuild = async (opts) => {
|
|
30
30
|
let outputs = /* @__PURE__ */ new Set();
|
|
31
|
-
const { outputs: outputsStr } =
|
|
31
|
+
const { outputs: outputsStr } = opts;
|
|
32
32
|
if (outputsStr) {
|
|
33
33
|
for (const output of outputsStr.split(",")) {
|
|
34
34
|
if (output in packager.Output) {
|
|
@@ -42,10 +42,10 @@ var oldBuild = async (cmd) => {
|
|
|
42
42
|
}
|
|
43
43
|
await packager.buildPackage({
|
|
44
44
|
outputs,
|
|
45
|
-
minify:
|
|
46
|
-
useApiExtractor:
|
|
45
|
+
minify: opts.minify,
|
|
46
|
+
useApiExtractor: opts.experimentalTypeBuild
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
exports["default"] = oldBuild;
|
|
51
|
-
//# sourceMappingURL=oldBuild-
|
|
51
|
+
//# sourceMappingURL=oldBuild-2d7642ec.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-a03d6ecd.cjs.js');
|
|
5
5
|
var path = require('path');
|
|
6
6
|
require('commander');
|
|
7
7
|
require('chalk');
|
|
@@ -69,4 +69,4 @@ const post = async () => {
|
|
|
69
69
|
|
|
70
70
|
exports.post = post;
|
|
71
71
|
exports.pre = pre;
|
|
72
|
-
//# sourceMappingURL=pack-
|
|
72
|
+
//# sourceMappingURL=pack-899cb92c.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-82efc305.cjs.js');
|
|
6
|
+
var run = require('./run-08cc6f37.cjs.js');
|
|
7
7
|
require('@manypkg/get-packages');
|
|
8
|
-
require('./index-
|
|
8
|
+
require('./index-a03d6ecd.cjs.js');
|
|
9
9
|
require('commander');
|
|
10
10
|
require('chalk');
|
|
11
11
|
require('semver');
|
|
@@ -71,4 +71,4 @@ async function command() {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
exports.command = command;
|
|
74
|
-
//# sourceMappingURL=packageLintConfigs-
|
|
74
|
+
//# sourceMappingURL=packageLintConfigs-2b2f9dba.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-a03d6ecd.cjs.js');
|
|
7
|
+
var packageRoles = require('./packageRoles-cd537e06.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('semver');
|
|
@@ -50,4 +50,4 @@ var packageRole = async () => {
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
exports["default"] = packageRole;
|
|
53
|
-
//# sourceMappingURL=packageRole-
|
|
53
|
+
//# sourceMappingURL=packageRole-c8ddf297.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-a03d6ecd.cjs.js');
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -84,10 +84,10 @@ function getRoleFromPackage(pkgJson) {
|
|
|
84
84
|
}
|
|
85
85
|
return void 0;
|
|
86
86
|
}
|
|
87
|
-
async function findRoleFromCommand(
|
|
87
|
+
async function findRoleFromCommand(opts) {
|
|
88
88
|
var _a;
|
|
89
|
-
if (
|
|
90
|
-
return (_a = getRoleInfo(
|
|
89
|
+
if (opts.role) {
|
|
90
|
+
return (_a = getRoleInfo(opts.role)) == null ? void 0 : _a.role;
|
|
91
91
|
}
|
|
92
92
|
const pkg = await fs__default["default"].readJson(index.paths.resolveTarget("package.json"));
|
|
93
93
|
const info = getRoleFromPackage(pkg);
|
|
@@ -155,4 +155,4 @@ exports.detectRoleFromPackage = detectRoleFromPackage;
|
|
|
155
155
|
exports.findRoleFromCommand = findRoleFromCommand;
|
|
156
156
|
exports.getRoleFromPackage = getRoleFromPackage;
|
|
157
157
|
exports.getRoleInfo = getRoleInfo;
|
|
158
|
-
//# sourceMappingURL=packageRoles-
|
|
158
|
+
//# sourceMappingURL=packageRoles-cd537e06.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-82efc305.cjs.js');
|
|
6
|
+
var packageRoles = require('./packageRoles-cd537e06.cjs.js');
|
|
7
7
|
require('@manypkg/get-packages');
|
|
8
|
-
require('./index-
|
|
8
|
+
require('./index-a03d6ecd.cjs.js');
|
|
9
9
|
require('commander');
|
|
10
10
|
require('chalk');
|
|
11
11
|
require('semver');
|
|
@@ -93,4 +93,4 @@ async function command() {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
exports.command = command;
|
|
96
|
-
//# sourceMappingURL=packageScripts-
|
|
96
|
+
//# sourceMappingURL=packageScripts-ea427fce.cjs.js.map
|