@backstage/cli 0.14.1 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/cjs/{PackageGraph-452ec2ff.cjs.js → PackageGraph-b00df225.cjs.js} +2 -2
- package/dist/cjs/{backend-f623f925.cjs.js → backend-1b05daee.cjs.js} +2 -2
- package/dist/cjs/{build-dde37a4d.cjs.js → build-83d881ea.cjs.js} +11 -11
- package/dist/cjs/{build-d555ae41.cjs.js → build-87df0d6b.cjs.js} +4 -4
- package/dist/cjs/{build-d22951cc.cjs.js → build-d4f2e2e8.cjs.js} +4 -4
- package/dist/cjs/{build-c6587a6a.cjs.js → build-ff4f8608.cjs.js} +8 -8
- package/dist/cjs/{buildBackend-4890a3fb.cjs.js → buildBackend-aa0d412b.cjs.js} +8 -9
- package/dist/cjs/{buildWorkspace-464c5a99.cjs.js → buildWorkspace-e4801c14.cjs.js} +7 -7
- package/dist/cjs/{bump-a4f9d634.cjs.js → bump-3800b988.cjs.js} +5 -5
- package/dist/cjs/{bundle-102f5596.cjs.js → bundle-09e400db.cjs.js} +7 -7
- package/dist/cjs/{bundle-bcefdcef.cjs.js → bundle-79d52b4b.cjs.js} +2 -2
- package/dist/cjs/{clean-dbc9a5ef.cjs.js → clean-a06b7d65.cjs.js} +2 -2
- package/dist/cjs/{config-7c2e1f5a.cjs.js → config-421162a7.cjs.js} +3 -3
- package/dist/cjs/{create-7e122e43.cjs.js → create-aa1a9a17.cjs.js} +4 -4
- package/dist/cjs/{createDistWorkspace-7dc77457.cjs.js → createDistWorkspace-bb483aff.cjs.js} +6 -6
- package/dist/cjs/{createPlugin-98e97774.cjs.js → createPlugin-f2839d53.cjs.js} +4 -4
- package/dist/cjs/{dev-1fa4ec4d.cjs.js → dev-110686a9.cjs.js} +5 -5
- package/dist/cjs/{diff-75846872.cjs.js → diff-250bb472.cjs.js} +2 -2
- package/dist/cjs/{docs-1d4c7d02.cjs.js → docs-6b34ee96.cjs.js} +4 -4
- package/dist/cjs/{index-a90b183a.cjs.js → index-5a2e8d49.cjs.js} +11 -11
- package/dist/cjs/{index-f4a6cd4f.cjs.js → index-87dfd82d.cjs.js} +54 -53
- package/dist/cjs/{index-b314a967.cjs.js → index-964b90f7.cjs.js} +11 -11
- package/dist/cjs/{index-76945a16.cjs.js → index-af637b8d.cjs.js} +2 -2
- package/dist/cjs/{info-01180b4a.cjs.js → info-2072351a.cjs.js} +3 -3
- package/dist/cjs/{install-6fae05de.cjs.js → install-5cc80412.cjs.js} +4 -4
- package/dist/cjs/{lint-9575a50e.cjs.js → lint-50ee052a.cjs.js} +2 -2
- package/dist/cjs/{lint-b454be94.cjs.js → lint-dc4e7e6b.cjs.js} +3 -3
- package/dist/cjs/{lint-e84f4da1.cjs.js → lint-e407f973.cjs.js} +3 -3
- package/dist/cjs/{oldBuild-5662c63f.cjs.js → oldBuild-638ec06b.cjs.js} +4 -4
- package/dist/cjs/{pack-4a819ab8.cjs.js → pack-d77912d3.cjs.js} +2 -2
- package/dist/cjs/{packageRole-b9f3f4c2.cjs.js → packageRole-7767f94e.cjs.js} +3 -3
- package/dist/cjs/{packageRoles-be5cc4e7.cjs.js → packageRoles-88676cde.cjs.js} +2 -2
- package/dist/cjs/{packageScripts-98e13921.cjs.js → packageScripts-7bf31577.cjs.js} +4 -4
- package/dist/cjs/{packager-3c7ef6f2.cjs.js → packager-60ad68c9.cjs.js} +3 -3
- package/dist/cjs/{packages-6d20da58.cjs.js → packages-a5011251.cjs.js} +3 -3
- package/dist/cjs/{paths-67855a60.cjs.js → paths-6bb65aa4.cjs.js} +6 -30
- package/dist/cjs/{print-d0729b40.cjs.js → print-1ff6b34f.cjs.js} +4 -4
- package/dist/cjs/{run-b09132d3.cjs.js → run-5fdca9d5.cjs.js} +2 -2
- package/dist/cjs/{schema-2f989737.cjs.js → schema-2cd77098.cjs.js} +4 -4
- package/dist/cjs/{serve-474204d0.cjs.js → serve-8736e644.cjs.js} +8 -8
- package/dist/cjs/{serve-9f86fead.cjs.js → serve-f5d41d88.cjs.js} +8 -8
- package/dist/cjs/{server-525b32bf.cjs.js → server-b7b23a16.cjs.js} +2 -2
- package/dist/cjs/{tasks-0ade17b2.cjs.js → tasks-eadc7947.cjs.js} +2 -2
- package/dist/cjs/{testCommand-afcd8cac.cjs.js → testCommand-e79b231e.cjs.js} +3 -3
- package/dist/cjs/{validate-2f3a3c93.cjs.js → validate-fc5936ef.cjs.js} +4 -4
- package/dist/index.cjs.js +1 -1
- package/package.json +10 -9
|
@@ -46,9 +46,9 @@ class NotFoundError extends CustomError {
|
|
|
46
46
|
|
|
47
47
|
const paths = cliCommon.findPaths(__dirname);
|
|
48
48
|
|
|
49
|
-
var version$9 = "0.
|
|
49
|
+
var version$9 = "0.12.0";
|
|
50
50
|
|
|
51
|
-
var version$8 = "0.
|
|
51
|
+
var version$8 = "0.15.0";
|
|
52
52
|
var dependencies = {
|
|
53
53
|
"@backstage/cli-common": "^0.1.8",
|
|
54
54
|
"@backstage/config": "^0.1.15",
|
|
@@ -56,7 +56,8 @@ var dependencies = {
|
|
|
56
56
|
"@backstage/errors": "^0.2.2",
|
|
57
57
|
"@backstage/release-manifests": "^0.0.2",
|
|
58
58
|
"@backstage/types": "^0.1.3",
|
|
59
|
-
"@hot-loader/react-dom": "
|
|
59
|
+
"@hot-loader/react-dom-v16": "npm:@hot-loader/react-dom@^16.0.2",
|
|
60
|
+
"@hot-loader/react-dom-v17": "npm:@hot-loader/react-dom@^17.0.2",
|
|
60
61
|
"@manypkg/get-packages": "^1.1.3",
|
|
61
62
|
"@octokit/request": "^5.4.12",
|
|
62
63
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
@@ -140,13 +141,13 @@ var dependencies = {
|
|
|
140
141
|
zod: "^3.11.6"
|
|
141
142
|
};
|
|
142
143
|
var devDependencies = {
|
|
143
|
-
"@backstage/backend-common": "^0.
|
|
144
|
+
"@backstage/backend-common": "^0.12.0",
|
|
144
145
|
"@backstage/config": "^0.1.15",
|
|
145
|
-
"@backstage/core-components": "^0.
|
|
146
|
-
"@backstage/core-plugin-api": "^0.
|
|
147
|
-
"@backstage/core-app-api": "^0.
|
|
148
|
-
"@backstage/dev-utils": "^0.2.
|
|
149
|
-
"@backstage/test-utils": "^0.
|
|
146
|
+
"@backstage/core-components": "^0.9.0",
|
|
147
|
+
"@backstage/core-plugin-api": "^0.8.0",
|
|
148
|
+
"@backstage/core-app-api": "^0.6.0",
|
|
149
|
+
"@backstage/dev-utils": "^0.2.24",
|
|
150
|
+
"@backstage/test-utils": "^0.3.0",
|
|
150
151
|
"@backstage/theme": "^0.2.15",
|
|
151
152
|
"@types/diff": "^5.0.0",
|
|
152
153
|
"@types/express": "^4.17.6",
|
|
@@ -171,19 +172,19 @@ var devDependencies = {
|
|
|
171
172
|
msw: "^0.35.0"
|
|
172
173
|
};
|
|
173
174
|
|
|
174
|
-
var version$7 = "0.
|
|
175
|
+
var version$7 = "0.6.0";
|
|
175
176
|
|
|
176
|
-
var version$6 = "0.
|
|
177
|
+
var version$6 = "0.9.0";
|
|
177
178
|
|
|
178
|
-
var version$5 = "0.
|
|
179
|
+
var version$5 = "0.8.0";
|
|
179
180
|
|
|
180
|
-
var version$4 = "0.2.
|
|
181
|
+
var version$4 = "0.2.24";
|
|
181
182
|
|
|
182
|
-
var version$3 = "0.
|
|
183
|
+
var version$3 = "0.3.0";
|
|
183
184
|
|
|
184
185
|
var version$2 = "0.2.15";
|
|
185
186
|
|
|
186
|
-
var version$1 = "0.17.
|
|
187
|
+
var version$1 = "0.17.3";
|
|
187
188
|
|
|
188
189
|
const packageVersions = {
|
|
189
190
|
"@backstage/backend-common": version$9,
|
|
@@ -238,54 +239,54 @@ const configOption = [
|
|
|
238
239
|
];
|
|
239
240
|
function registerRepoCommand(program) {
|
|
240
241
|
const command = program.command("repo [command]", { hidden: true }).description("Command that run across an entire Backstage project [EXPERIMENTAL]");
|
|
241
|
-
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.").action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
242
|
-
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-
|
|
242
|
+
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.").action(lazy(() => Promise.resolve().then(function () { return require('./build-83d881ea.cjs.js'); }).then((m) => m.command)));
|
|
243
|
+
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-dc4e7e6b.cjs.js'); }).then((m) => m.command)));
|
|
243
244
|
}
|
|
244
245
|
function registerScriptCommand(program) {
|
|
245
246
|
const command = program.command("package [command]", { hidden: true }).description("Lifecycle scripts for individual packages [EXPERIMENTAL]");
|
|
246
|
-
command.command("start").description("Start a package for local development").option(...configOption).option("--role <name>", "Run the command with an explicit package role [EXPERIMENTAL]").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-
|
|
247
|
-
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role [EXPERIMENTAL]").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-
|
|
248
|
-
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-
|
|
249
|
-
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('./testCommand-
|
|
250
|
-
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
251
|
-
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
252
|
-
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
247
|
+
command.command("start").description("Start a package for local development").option(...configOption).option("--role <name>", "Run the command with an explicit package role [EXPERIMENTAL]").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-964b90f7.cjs.js'); }).then((m) => m.command)));
|
|
248
|
+
command.command("build").description("Build a package for production deployment or publishing").option("--role <name>", "Run the command with an explicit package role [EXPERIMENTAL]").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-5a2e8d49.cjs.js'); }).then((m) => m.command)));
|
|
249
|
+
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-50ee052a.cjs.js'); }).then((m) => m.default)));
|
|
250
|
+
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('./testCommand-e79b231e.cjs.js'); }).then((m) => m.default)));
|
|
251
|
+
command.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-a06b7d65.cjs.js'); }).then((m) => m.default)));
|
|
252
|
+
command.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-d77912d3.cjs.js'); }).then((m) => m.pre)));
|
|
253
|
+
command.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-d77912d3.cjs.js'); }).then((m) => m.post)));
|
|
253
254
|
}
|
|
254
255
|
function registerMigrateCommand(program) {
|
|
255
256
|
const command = program.command("migrate [command]", { hidden: true }).description("Migration utilities [EXPERIMENTAL]");
|
|
256
|
-
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-
|
|
257
|
-
command.command("package-scripts").description("Set package scripts according to each package role").action(lazy(() => Promise.resolve().then(function () { return require('./packageScripts-
|
|
257
|
+
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-7767f94e.cjs.js'); }).then((m) => m.default)));
|
|
258
|
+
command.command("package-scripts").description("Set package scripts according to each package role").action(lazy(() => Promise.resolve().then(function () { return require('./packageScripts-7bf31577.cjs.js'); }).then((m) => m.command)));
|
|
258
259
|
}
|
|
259
260
|
function registerCommands(program) {
|
|
260
|
-
program.command("app:build").description("Build an app for a production release").option("--stats", "Write bundle stats to output directory").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
261
|
-
program.command("app:serve").description("Serve an app for local development").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-
|
|
262
|
-
program.command("backend:build").description("Build a backend plugin").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./build-
|
|
263
|
-
program.command("backend:bundle").description("Bundle the backend into a deployment archive").option("--build-dependencies", "Build all local package dependencies before bundling the backend").action(lazy(() => Promise.resolve().then(function () { return require('./bundle-
|
|
264
|
-
program.command("backend:dev").description("Start local development server with HMR for the backend").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-
|
|
265
|
-
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-
|
|
266
|
-
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-
|
|
267
|
-
program.command("plugin:build").description("Build a plugin").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("plugin:serve").description("Serves the dev/ folder of a plugin").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-
|
|
269
|
-
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-
|
|
270
|
-
program.command("build").description("Build a package for publishing").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-
|
|
271
|
-
program.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-
|
|
272
|
-
program.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('./testCommand-
|
|
273
|
-
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-
|
|
274
|
-
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-
|
|
275
|
-
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-
|
|
276
|
-
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-
|
|
261
|
+
program.command("app:build").description("Build an app for a production release").option("--stats", "Write bundle stats to output directory").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./build-ff4f8608.cjs.js'); }).then((m) => m.default)));
|
|
262
|
+
program.command("app:serve").description("Serve an app for local development").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-f5d41d88.cjs.js'); }).then((m) => m.default)));
|
|
263
|
+
program.command("backend:build").description("Build a backend plugin").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./build-87df0d6b.cjs.js'); }).then((m) => m.default)));
|
|
264
|
+
program.command("backend:bundle").description("Bundle the backend into a deployment archive").option("--build-dependencies", "Build all local package dependencies before bundling the backend").action(lazy(() => Promise.resolve().then(function () { return require('./bundle-09e400db.cjs.js'); }).then((m) => m.default)));
|
|
265
|
+
program.command("backend:dev").description("Start local development server with HMR for the backend").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-110686a9.cjs.js'); }).then((m) => m.default)));
|
|
266
|
+
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-aa1a9a17.cjs.js'); }).then((m) => m.default)));
|
|
267
|
+
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-f2839d53.cjs.js'); }).then((m) => m.default)));
|
|
268
|
+
program.command("plugin:build").description("Build a plugin").option("--minify", "Minify the generated code").option("--experimental-type-build", "Enable experimental type build").action(lazy(() => Promise.resolve().then(function () { return require('./build-d4f2e2e8.cjs.js'); }).then((m) => m.default)));
|
|
269
|
+
program.command("plugin:serve").description("Serves the dev/ folder of a plugin").option("--check", "Enable type checking and linting").option(...configOption).action(lazy(() => Promise.resolve().then(function () { return require('./serve-8736e644.cjs.js'); }).then((m) => m.default)));
|
|
270
|
+
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-250bb472.cjs.js'); }).then((m) => m.default)));
|
|
271
|
+
program.command("build").description("Build a package for publishing").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-638ec06b.cjs.js'); }).then((m) => m.default)));
|
|
272
|
+
program.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-50ee052a.cjs.js'); }).then((m) => m.default)));
|
|
273
|
+
program.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('./testCommand-e79b231e.cjs.js'); }).then((m) => m.default)));
|
|
274
|
+
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-6b34ee96.cjs.js'); }).then((m) => m.default)));
|
|
275
|
+
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-1ff6b34f.cjs.js'); }).then((m) => m.default)));
|
|
276
|
+
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-fc5936ef.cjs.js'); }).then((m) => m.default)));
|
|
277
|
+
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-2cd77098.cjs.js'); }).then((m) => m.default)));
|
|
277
278
|
registerRepoCommand(program);
|
|
278
279
|
registerScriptCommand(program);
|
|
279
280
|
registerMigrateCommand(program);
|
|
280
|
-
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-
|
|
281
|
-
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-
|
|
282
|
-
program.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
283
|
-
program.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-
|
|
284
|
-
program.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-
|
|
285
|
-
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-
|
|
286
|
-
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-
|
|
287
|
-
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-
|
|
288
|
-
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-
|
|
281
|
+
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-3800b988.cjs.js'); }).then((m) => m.default)));
|
|
282
|
+
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-e407f973.cjs.js'); }).then((m) => m.default)));
|
|
283
|
+
program.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-d77912d3.cjs.js'); }).then((m) => m.pre)));
|
|
284
|
+
program.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-d77912d3.cjs.js'); }).then((m) => m.post)));
|
|
285
|
+
program.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-a06b7d65.cjs.js'); }).then((m) => m.default)));
|
|
286
|
+
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-e4801c14.cjs.js'); }).then((m) => m.default)));
|
|
287
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-af637b8d.cjs.js'); }).then((m) => m.default)));
|
|
288
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-2072351a.cjs.js'); }).then((m) => m.default)));
|
|
289
|
+
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-5cc80412.cjs.js'); }).then((m) => m.default)));
|
|
289
290
|
}
|
|
290
291
|
function lazy(getActionFunc) {
|
|
291
292
|
return async (...args) => {
|
|
@@ -329,4 +330,4 @@ exports.devDependencies = devDependencies;
|
|
|
329
330
|
exports.paths = paths;
|
|
330
331
|
exports.version = version;
|
|
331
332
|
exports.version$1 = version$8;
|
|
332
|
-
//# sourceMappingURL=index-
|
|
333
|
+
//# sourceMappingURL=index-87dfd82d.cjs.js.map
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
|
-
var index = require('./index-
|
|
5
|
-
var backend = require('./backend-
|
|
4
|
+
var index = require('./index-87dfd82d.cjs.js');
|
|
5
|
+
var backend = require('./backend-1b05daee.cjs.js');
|
|
6
6
|
require('yn');
|
|
7
7
|
require('path');
|
|
8
8
|
require('webpack');
|
|
9
9
|
require('react-dev-utils/FileSizeReporter');
|
|
10
10
|
require('react-dev-utils/formatWebpackMessages');
|
|
11
|
-
var chalk = require('chalk');
|
|
12
11
|
require('fork-ts-checker-webpack-plugin');
|
|
13
12
|
require('html-webpack-plugin');
|
|
14
13
|
require('react-dev-utils/ModuleScopePlugin');
|
|
@@ -16,20 +15,21 @@ require('run-script-webpack-plugin');
|
|
|
16
15
|
require('webpack-node-externals');
|
|
17
16
|
require('@backstage/cli-common');
|
|
18
17
|
require('@manypkg/get-packages');
|
|
19
|
-
require('./paths-
|
|
18
|
+
require('./paths-6bb65aa4.cjs.js');
|
|
20
19
|
require('mini-css-extract-plugin');
|
|
21
|
-
require('./run-
|
|
20
|
+
require('./run-5fdca9d5.cjs.js');
|
|
22
21
|
require('eslint-webpack-plugin');
|
|
23
22
|
require('lodash/pickBy');
|
|
23
|
+
var chalk = require('chalk');
|
|
24
24
|
require('webpack-dev-server');
|
|
25
25
|
require('react-dev-utils/openBrowser');
|
|
26
26
|
var uniq = require('lodash/uniq');
|
|
27
|
-
var server = require('./server-
|
|
28
|
-
var config = require('./config-
|
|
27
|
+
var server = require('./server-b7b23a16.cjs.js');
|
|
28
|
+
var config = require('./config-421162a7.cjs.js');
|
|
29
29
|
var Lockfile = require('./Lockfile-35661afa.cjs.js');
|
|
30
30
|
require('minimatch');
|
|
31
|
-
var lint = require('./lint-
|
|
32
|
-
var packageRoles = require('./packageRoles-
|
|
31
|
+
var lint = require('./lint-e407f973.cjs.js');
|
|
32
|
+
var packageRoles = require('./packageRoles-88676cde.cjs.js');
|
|
33
33
|
require('commander');
|
|
34
34
|
require('semver');
|
|
35
35
|
require('@backstage/config/package.json');
|
|
@@ -39,7 +39,7 @@ require('child_process');
|
|
|
39
39
|
require('util');
|
|
40
40
|
require('@backstage/config-loader');
|
|
41
41
|
require('@backstage/config');
|
|
42
|
-
require('./PackageGraph-
|
|
42
|
+
require('./PackageGraph-b00df225.cjs.js');
|
|
43
43
|
require('@yarnpkg/lockfile');
|
|
44
44
|
require('lodash/partition');
|
|
45
45
|
require('zod');
|
|
@@ -122,4 +122,4 @@ async function command(cmd) {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
exports.command = command;
|
|
125
|
-
//# sourceMappingURL=index-
|
|
125
|
+
//# sourceMappingURL=index-964b90f7.cjs.js.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
4
|
var chalk = require('chalk');
|
|
5
5
|
var yaml = require('yaml');
|
|
6
|
-
var index$1 = require('./index-
|
|
6
|
+
var index$1 = require('./index-87dfd82d.cjs.js');
|
|
7
7
|
var crypto = require('crypto');
|
|
8
8
|
var openBrowser = require('react-dev-utils/openBrowser');
|
|
9
9
|
var request = require('@octokit/request');
|
|
@@ -128,4 +128,4 @@ ${yaml.stringify(config)}`;
|
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
exports["default"] = index;
|
|
131
|
-
//# sourceMappingURL=index-
|
|
131
|
+
//# sourceMappingURL=index-af637b8d.cjs.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-87dfd82d.cjs.js');
|
|
4
4
|
var os = require('os');
|
|
5
|
-
var run = require('./run-
|
|
5
|
+
var run = require('./run-5fdca9d5.cjs.js');
|
|
6
6
|
var Lockfile = require('./Lockfile-35661afa.cjs.js');
|
|
7
7
|
require('minimatch');
|
|
8
8
|
require('@manypkg/get-packages');
|
|
@@ -43,4 +43,4 @@ var info = async () => {
|
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
exports["default"] = info;
|
|
46
|
-
//# sourceMappingURL=info-
|
|
46
|
+
//# sourceMappingURL=info-2072351a.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-a5011251.cjs.js');
|
|
7
|
+
var index = require('./index-87dfd82d.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-5fdca9d5.cjs.js');
|
|
12
12
|
require('minimatch');
|
|
13
13
|
require('@manypkg/get-packages');
|
|
14
14
|
require('commander');
|
|
@@ -240,4 +240,4 @@ var install = async (pluginId, cmd) => {
|
|
|
240
240
|
};
|
|
241
241
|
|
|
242
242
|
exports["default"] = install;
|
|
243
|
-
//# sourceMappingURL=install-
|
|
243
|
+
//# sourceMappingURL=install-5cc80412.cjs.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-87dfd82d.cjs.js');
|
|
4
4
|
var eslint = require('eslint');
|
|
5
5
|
require('commander');
|
|
6
6
|
require('chalk');
|
|
@@ -32,4 +32,4 @@ var lint = async (cmd, cmdArgs) => {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
exports["default"] = lint;
|
|
35
|
-
//# sourceMappingURL=lint-
|
|
35
|
+
//# sourceMappingURL=lint-50ee052a.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-b00df225.cjs.js');
|
|
6
6
|
var parallel = require('./parallel-d8e5bcbf.cjs.js');
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-87dfd82d.cjs.js');
|
|
8
8
|
require('@manypkg/get-packages');
|
|
9
9
|
require('@backstage/errors');
|
|
10
10
|
require('child_process');
|
|
@@ -89,4 +89,4 @@ async function command(cmd) {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
exports.command = command;
|
|
92
|
-
//# sourceMappingURL=lint-
|
|
92
|
+
//# sourceMappingURL=lint-dc4e7e6b.cjs.js.map
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
var Lockfile = require('./Lockfile-35661afa.cjs.js');
|
|
4
4
|
require('minimatch');
|
|
5
5
|
require('@manypkg/get-packages');
|
|
6
|
-
require('./run-
|
|
6
|
+
require('./run-5fdca9d5.cjs.js');
|
|
7
7
|
require('chalk');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-87dfd82d.cjs.js');
|
|
9
9
|
var partition = require('lodash/partition');
|
|
10
10
|
require('fs-extra');
|
|
11
11
|
require('semver');
|
|
@@ -76,4 +76,4 @@ function logArray(arr, header, each) {
|
|
|
76
76
|
exports["default"] = lint;
|
|
77
77
|
exports.forbiddenDuplicatesFilter = forbiddenDuplicatesFilter;
|
|
78
78
|
exports.includedFilter = includedFilter;
|
|
79
|
-
//# sourceMappingURL=lint-
|
|
79
|
+
//# sourceMappingURL=lint-e407f973.cjs.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var packager = require('./packager-
|
|
3
|
+
var packager = require('./packager-60ad68c9.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-87dfd82d.cjs.js');
|
|
9
9
|
require('commander');
|
|
10
10
|
require('semver');
|
|
11
11
|
require('@backstage/cli-common');
|
|
@@ -25,7 +25,7 @@ require('./svgrTemplate-b7a4ee52.cjs.js');
|
|
|
25
25
|
require('./parallel-d8e5bcbf.cjs.js');
|
|
26
26
|
require('os');
|
|
27
27
|
require('worker_threads');
|
|
28
|
-
require('./packageRoles-
|
|
28
|
+
require('./packageRoles-88676cde.cjs.js');
|
|
29
29
|
require('zod');
|
|
30
30
|
|
|
31
31
|
var oldBuild = async (cmd) => {
|
|
@@ -50,4 +50,4 @@ var oldBuild = async (cmd) => {
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
exports["default"] = oldBuild;
|
|
53
|
-
//# sourceMappingURL=oldBuild-
|
|
53
|
+
//# sourceMappingURL=oldBuild-638ec06b.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-87dfd82d.cjs.js');
|
|
5
5
|
var path = require('path');
|
|
6
6
|
require('commander');
|
|
7
7
|
require('chalk');
|
|
@@ -66,4 +66,4 @@ const post = async () => {
|
|
|
66
66
|
|
|
67
67
|
exports.post = post;
|
|
68
68
|
exports.pre = pre;
|
|
69
|
-
//# sourceMappingURL=pack-
|
|
69
|
+
//# sourceMappingURL=pack-d77912d3.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-87dfd82d.cjs.js');
|
|
7
|
+
var packageRoles = require('./packageRoles-88676cde.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('semver');
|
|
@@ -51,4 +51,4 @@ var packageRole = async () => {
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
exports["default"] = packageRole;
|
|
54
|
-
//# sourceMappingURL=packageRole-
|
|
54
|
+
//# sourceMappingURL=packageRole-7767f94e.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-87dfd82d.cjs.js');
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -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-88676cde.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-b00df225.cjs.js');
|
|
6
|
+
var packageRoles = require('./packageRoles-88676cde.cjs.js');
|
|
7
7
|
require('@manypkg/get-packages');
|
|
8
|
-
require('./index-
|
|
8
|
+
require('./index-87dfd82d.cjs.js');
|
|
9
9
|
require('commander');
|
|
10
10
|
require('chalk');
|
|
11
11
|
require('semver');
|
|
@@ -94,4 +94,4 @@ async function command() {
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
exports.command = command;
|
|
97
|
-
//# sourceMappingURL=packageScripts-
|
|
97
|
+
//# sourceMappingURL=packageScripts-7bf31577.cjs.js.map
|
|
@@ -4,7 +4,7 @@ var fs = require('fs-extra');
|
|
|
4
4
|
var rollup = require('rollup');
|
|
5
5
|
var chalk = require('chalk');
|
|
6
6
|
var path = require('path');
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-87dfd82d.cjs.js');
|
|
8
8
|
var peerDepsExternal = require('rollup-plugin-peer-deps-external');
|
|
9
9
|
var commonjs = require('@rollup/plugin-commonjs');
|
|
10
10
|
var resolve = require('@rollup/plugin-node-resolve');
|
|
@@ -17,7 +17,7 @@ var yaml = require('@rollup/plugin-yaml');
|
|
|
17
17
|
var rollupPluginutils = require('rollup-pluginutils');
|
|
18
18
|
var svgrTemplate = require('./svgrTemplate-b7a4ee52.cjs.js');
|
|
19
19
|
var parallel = require('./parallel-d8e5bcbf.cjs.js');
|
|
20
|
-
var packageRoles = require('./packageRoles-
|
|
20
|
+
var packageRoles = require('./packageRoles-88676cde.cjs.js');
|
|
21
21
|
|
|
22
22
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
23
23
|
|
|
@@ -432,4 +432,4 @@ exports.Output = Output;
|
|
|
432
432
|
exports.buildPackage = buildPackage;
|
|
433
433
|
exports.buildPackages = buildPackages;
|
|
434
434
|
exports.getOutputsForRole = getOutputsForRole;
|
|
435
|
-
//# sourceMappingURL=packager-
|
|
435
|
+
//# sourceMappingURL=packager-60ad68c9.cjs.js.map
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var minimatch = require('minimatch');
|
|
4
4
|
var getPackages = require('@manypkg/get-packages');
|
|
5
|
-
var run = require('./run-
|
|
6
|
-
var index = require('./index-
|
|
5
|
+
var run = require('./run-5fdca9d5.cjs.js');
|
|
6
|
+
var index = require('./index-87dfd82d.cjs.js');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
9
|
|
|
@@ -51,4 +51,4 @@ async function mapDependencies(targetDir, pattern) {
|
|
|
51
51
|
|
|
52
52
|
exports.fetchPackageInfo = fetchPackageInfo;
|
|
53
53
|
exports.mapDependencies = mapDependencies;
|
|
54
|
-
//# sourceMappingURL=packages-
|
|
54
|
+
//# sourceMappingURL=packages-a5011251.cjs.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fs = require('fs-extra');
|
|
4
|
-
var chalk = require('chalk');
|
|
5
4
|
var path = require('path');
|
|
6
5
|
var ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
|
|
7
6
|
var HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
@@ -13,15 +12,14 @@ var cliCommon = require('@backstage/cli-common');
|
|
|
13
12
|
var getPackages = require('@manypkg/get-packages');
|
|
14
13
|
var MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
15
14
|
var svgrTemplate = require('./svgrTemplate-b7a4ee52.cjs.js');
|
|
16
|
-
var index = require('./index-
|
|
17
|
-
var run = require('./run-
|
|
15
|
+
var index = require('./index-87dfd82d.cjs.js');
|
|
16
|
+
var run = require('./run-5fdca9d5.cjs.js');
|
|
18
17
|
var ESLintPlugin = require('eslint-webpack-plugin');
|
|
19
18
|
var pickBy = require('lodash/pickBy');
|
|
20
19
|
|
|
21
20
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
22
21
|
|
|
23
22
|
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|
24
|
-
var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
|
|
25
23
|
var ForkTsCheckerWebpackPlugin__default = /*#__PURE__*/_interopDefaultLegacy(ForkTsCheckerWebpackPlugin);
|
|
26
24
|
var HtmlWebpackPlugin__default = /*#__PURE__*/_interopDefaultLegacy(HtmlWebpackPlugin);
|
|
27
25
|
var ModuleScopePlugin__default = /*#__PURE__*/_interopDefaultLegacy(ModuleScopePlugin);
|
|
@@ -276,34 +274,10 @@ async function createConfig(paths, options) {
|
|
|
276
274
|
plugins.push(new webpack__default["default"].EnvironmentPlugin({
|
|
277
275
|
APP_CONFIG: options.frontendAppConfigs
|
|
278
276
|
}));
|
|
279
|
-
const appParamDeprecationMsg = chalk__default["default"].red('DEPRECATION WARNING: using `app.<key>` in the index.html template is deprecated, use `config.getString("app.<key>")` instead.');
|
|
280
277
|
plugins.push(new HtmlWebpackPlugin__default["default"]({
|
|
281
278
|
template: paths.targetHtml,
|
|
282
279
|
templateParameters: {
|
|
283
280
|
publicPath: validBaseUrl.pathname.replace(/\/$/, ""),
|
|
284
|
-
app: {
|
|
285
|
-
get title() {
|
|
286
|
-
console.warn(appParamDeprecationMsg);
|
|
287
|
-
return frontendConfig.getString("app.title");
|
|
288
|
-
},
|
|
289
|
-
get baseUrl() {
|
|
290
|
-
console.warn(appParamDeprecationMsg);
|
|
291
|
-
return validBaseUrl.href;
|
|
292
|
-
},
|
|
293
|
-
get googleAnalyticsTrackingId() {
|
|
294
|
-
console.warn(appParamDeprecationMsg);
|
|
295
|
-
return frontendConfig.getOptionalString("app.googleAnalyticsTrackingId");
|
|
296
|
-
},
|
|
297
|
-
get datadogRum() {
|
|
298
|
-
console.warn(appParamDeprecationMsg);
|
|
299
|
-
return {
|
|
300
|
-
env: frontendConfig.getOptionalString("app.datadogRum.env"),
|
|
301
|
-
clientToken: frontendConfig.getOptionalString("app.datadogRum.clientToken"),
|
|
302
|
-
applicationId: frontendConfig.getOptionalString("app.datadogRum.applicationId"),
|
|
303
|
-
site: frontendConfig.getOptionalString("app.datadogRum.site")
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
},
|
|
307
281
|
config: frontendConfig
|
|
308
282
|
}
|
|
309
283
|
}));
|
|
@@ -315,7 +289,9 @@ async function createConfig(paths, options) {
|
|
|
315
289
|
try {
|
|
316
290
|
const { version: reactDomVersion } = require("react-dom/package.json");
|
|
317
291
|
if (reactDomVersion.startsWith("16.")) {
|
|
318
|
-
resolveAliases["react-dom"] = "@hot-loader/react-dom";
|
|
292
|
+
resolveAliases["react-dom"] = "@hot-loader/react-dom-v16";
|
|
293
|
+
} else {
|
|
294
|
+
resolveAliases["react-dom"] = "@hot-loader/react-dom-v17";
|
|
319
295
|
}
|
|
320
296
|
} catch (error) {
|
|
321
297
|
console.warn(`WARNING: Failed to read react-dom version, ${error}`);
|
|
@@ -517,4 +493,4 @@ exports.createBackendConfig = createBackendConfig;
|
|
|
517
493
|
exports.createConfig = createConfig;
|
|
518
494
|
exports.resolveBaseUrl = resolveBaseUrl;
|
|
519
495
|
exports.resolveBundlingPaths = resolveBundlingPaths;
|
|
520
|
-
//# sourceMappingURL=paths-
|
|
496
|
+
//# sourceMappingURL=paths-6bb65aa4.cjs.js.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var yaml = require('yaml');
|
|
4
4
|
var config$1 = require('@backstage/config');
|
|
5
|
-
var config = require('./config-
|
|
5
|
+
var config = require('./config-421162a7.cjs.js');
|
|
6
6
|
require('@backstage/config-loader');
|
|
7
|
-
require('./index-
|
|
7
|
+
require('./index-87dfd82d.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('fs-extra');
|
|
@@ -13,7 +13,7 @@ require('@backstage/cli-common');
|
|
|
13
13
|
require('@backstage/config/package.json');
|
|
14
14
|
require('@backstage/errors');
|
|
15
15
|
require('@manypkg/get-packages');
|
|
16
|
-
require('./PackageGraph-
|
|
16
|
+
require('./PackageGraph-b00df225.cjs.js');
|
|
17
17
|
require('path');
|
|
18
18
|
require('child_process');
|
|
19
19
|
require('util');
|
|
@@ -62,4 +62,4 @@ function serializeConfigData(appConfigs, schema, visibility) {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
exports["default"] = print;
|
|
65
|
-
//# sourceMappingURL=print-
|
|
65
|
+
//# sourceMappingURL=print-1ff6b34f.cjs.js.map
|