@backstage/cli 0.12.0-next.0 → 0.13.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 +108 -0
- package/dist/cjs/{build-e1cfa92a.cjs.js → build-0e234c9c.cjs.js} +7 -10
- package/dist/cjs/{build-41b160e1.cjs.js → build-a0537ac0.cjs.js} +3 -3
- package/dist/cjs/{build-5e469530.cjs.js → build-cda9d14b.cjs.js} +3 -3
- package/dist/cjs/{build-6a564e18.cjs.js → build-f89d7092.cjs.js} +3 -3
- package/dist/cjs/{buildWorkspace-b198351d.cjs.js → buildWorkspace-5494b433.cjs.js} +4 -4
- package/dist/cjs/{bump-0d4c7e07.cjs.js → bump-ab6e31e7.cjs.js} +5 -5
- package/dist/cjs/{bundle-2cb505f3.cjs.js → bundle-82ebca5c.cjs.js} +5 -5
- package/dist/cjs/{clean-265d3ed5.cjs.js → clean-2a744d8e.cjs.js} +2 -2
- package/dist/cjs/{config-a790fbee.cjs.js → config-08b1d0e3.cjs.js} +2 -2
- package/dist/cjs/{create-8dc87021.cjs.js → create-3c1059f8.cjs.js} +4 -4
- package/dist/cjs/{createPlugin-f480902b.cjs.js → createPlugin-98d2404a.cjs.js} +4 -4
- package/dist/cjs/{dev-558ef0c6.cjs.js → dev-35175ac8.cjs.js} +5 -4
- package/dist/cjs/{diff-7382e071.cjs.js → diff-0f4d8b16.cjs.js} +2 -2
- package/dist/cjs/{docs-a44be9cd.cjs.js → docs-1df9fa22.cjs.js} +3 -3
- package/dist/cjs/{index-63774350.cjs.js → index-4fd2a731.cjs.js} +2 -2
- package/dist/cjs/{index-1f61de85.cjs.js → index-c868bb2d.cjs.js} +3 -3
- package/dist/cjs/{index-92454bcd.cjs.js → index-db3186f9.cjs.js} +52 -54
- package/dist/cjs/{info-643074cc.cjs.js → info-0c58ae61.cjs.js} +3 -3
- package/dist/cjs/{install-c8b107f7.cjs.js → install-8bc1ba18.cjs.js} +4 -4
- package/dist/cjs/{lint-25eb1889.cjs.js → lint-9da50914.cjs.js} +3 -3
- package/dist/cjs/{lint-5aa2e47f.cjs.js → lint-f037ffc0.cjs.js} +3 -3
- package/dist/cjs/{pack-a5e15cdb.cjs.js → pack-8ef0a3ba.cjs.js} +2 -2
- package/dist/cjs/{packager-052876f4.cjs.js → packager-89d7686b.cjs.js} +2 -2
- package/dist/cjs/{packages-435d71fd.cjs.js → packages-fd09251d.cjs.js} +3 -3
- package/dist/cjs/{paths-21c29d56.cjs.js → paths-f273ca03.cjs.js} +23 -28
- package/dist/cjs/{print-207cc148.cjs.js → print-bd48d728.cjs.js} +3 -3
- package/dist/cjs/{run-ad69ea39.cjs.js → run-448b5912.cjs.js} +2 -2
- package/dist/cjs/{schema-aa853b70.cjs.js → schema-c5b2f512.cjs.js} +3 -3
- package/dist/cjs/{serve-d962519a.cjs.js → serve-32362ee1.cjs.js} +7 -6
- package/dist/cjs/{serve-90512169.cjs.js → serve-b11d7c66.cjs.js} +37 -19
- package/dist/cjs/{server-acd52f96.cjs.js → server-114c20ca.cjs.js} +6 -3
- package/dist/cjs/{tasks-7bce14e6.cjs.js → tasks-f57f3a8c.cjs.js} +2 -2
- package/dist/cjs/{testCommand-0e57c1d2.cjs.js → testCommand-a0ab3b2f.cjs.js} +3 -3
- package/dist/cjs/{validate-878f8022.cjs.js → validate-dfd64471.cjs.js} +3 -3
- package/dist/index.cjs.js +1 -1
- package/package.json +19 -23
- package/dist/cjs/removePlugin-350b9293.cjs.js +0 -175
|
@@ -46,13 +46,13 @@ class NotFoundError extends CustomError {
|
|
|
46
46
|
|
|
47
47
|
const paths = cliCommon.findPaths(__dirname);
|
|
48
48
|
|
|
49
|
-
var version$9 = "0.10.
|
|
49
|
+
var version$9 = "0.10.6-next.0";
|
|
50
50
|
|
|
51
|
-
var version$8 = "0.
|
|
51
|
+
var version$8 = "0.13.1-next.1";
|
|
52
52
|
var dependencies = {
|
|
53
53
|
"@backstage/cli-common": "^0.1.6",
|
|
54
|
-
"@backstage/config": "^0.1.13
|
|
55
|
-
"@backstage/config-loader": "^0.9.3
|
|
54
|
+
"@backstage/config": "^0.1.13",
|
|
55
|
+
"@backstage/config-loader": "^0.9.3",
|
|
56
56
|
"@backstage/errors": "^0.2.0",
|
|
57
57
|
"@backstage/types": "^0.1.1",
|
|
58
58
|
"@hot-loader/react-dom": "^16.13.0",
|
|
@@ -85,6 +85,7 @@ var dependencies = {
|
|
|
85
85
|
esbuild: "^0.14.10",
|
|
86
86
|
"esbuild-loader": "^2.18.0",
|
|
87
87
|
eslint: "^8.6.0",
|
|
88
|
+
"eslint-webpack-plugin": "^2.6.0",
|
|
88
89
|
"eslint-config-prettier": "^8.3.0",
|
|
89
90
|
"eslint-formatter-friendly": "^7.0.0",
|
|
90
91
|
"eslint-plugin-import": "^2.25.4",
|
|
@@ -94,16 +95,16 @@ var dependencies = {
|
|
|
94
95
|
"eslint-plugin-react": "^7.28.0",
|
|
95
96
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
96
97
|
express: "^4.17.1",
|
|
97
|
-
"fork-ts-checker-webpack-plugin": "^
|
|
98
|
+
"fork-ts-checker-webpack-plugin": "^7.0.0-alpha.8",
|
|
98
99
|
"fs-extra": "9.1.0",
|
|
99
100
|
glob: "^7.1.7",
|
|
100
101
|
handlebars: "^4.7.3",
|
|
101
102
|
"html-webpack-plugin": "^5.3.1",
|
|
102
|
-
inquirer: "^
|
|
103
|
+
inquirer: "^8.2.0",
|
|
103
104
|
jest: "^26.0.1",
|
|
104
105
|
"jest-css-modules": "^2.1.0",
|
|
105
106
|
"json-schema": "^0.4.0",
|
|
106
|
-
"jest-transform-yaml": "^0.
|
|
107
|
+
"jest-transform-yaml": "^1.0.0",
|
|
107
108
|
lodash: "^4.17.21",
|
|
108
109
|
minimatch: "3.0.4",
|
|
109
110
|
"mini-css-extract-plugin": "^2.4.2",
|
|
@@ -111,8 +112,8 @@ var dependencies = {
|
|
|
111
112
|
ora: "^5.3.0",
|
|
112
113
|
postcss: "^8.1.0",
|
|
113
114
|
process: "^0.11.10",
|
|
114
|
-
"react-dev-utils": "^12.0.0-next.
|
|
115
|
-
"react-hot-loader": "^4.
|
|
115
|
+
"react-dev-utils": "^12.0.0-next.60",
|
|
116
|
+
"react-hot-loader": "^4.13.0",
|
|
116
117
|
"recursive-readdir": "^2.2.2",
|
|
117
118
|
"replace-in-file": "^6.0.0",
|
|
118
119
|
rollup: "^2.60.2",
|
|
@@ -128,21 +129,21 @@ var dependencies = {
|
|
|
128
129
|
tar: "^6.1.2",
|
|
129
130
|
"terser-webpack-plugin": "^5.1.3",
|
|
130
131
|
util: "^0.12.3",
|
|
131
|
-
webpack: "^5.
|
|
132
|
-
"webpack-dev-server": "4.3
|
|
132
|
+
webpack: "^5.66.0",
|
|
133
|
+
"webpack-dev-server": "^4.7.3",
|
|
133
134
|
"webpack-node-externals": "^3.0.0",
|
|
134
135
|
yaml: "^1.10.0",
|
|
135
136
|
"yml-loader": "^2.1.0",
|
|
136
137
|
yn: "^4.0.0"
|
|
137
138
|
};
|
|
138
139
|
var devDependencies = {
|
|
139
|
-
"@backstage/backend-common": "^0.10.
|
|
140
|
-
"@backstage/config": "^0.1.13
|
|
141
|
-
"@backstage/core-components": "^0.8.
|
|
142
|
-
"@backstage/core-plugin-api": "^0.6.0
|
|
143
|
-
"@backstage/core-app-api": "^0.5.
|
|
144
|
-
"@backstage/dev-utils": "^0.2.
|
|
145
|
-
"@backstage/test-utils": "^0.2.
|
|
140
|
+
"@backstage/backend-common": "^0.10.6-next.0",
|
|
141
|
+
"@backstage/config": "^0.1.13",
|
|
142
|
+
"@backstage/core-components": "^0.8.7-next.1",
|
|
143
|
+
"@backstage/core-plugin-api": "^0.6.0",
|
|
144
|
+
"@backstage/core-app-api": "^0.5.2-next.0",
|
|
145
|
+
"@backstage/dev-utils": "^0.2.20-next.1",
|
|
146
|
+
"@backstage/test-utils": "^0.2.4-next.0",
|
|
146
147
|
"@backstage/theme": "^0.2.14",
|
|
147
148
|
"@types/diff": "^5.0.0",
|
|
148
149
|
"@types/express": "^4.17.6",
|
|
@@ -157,8 +158,6 @@ var devDependencies = {
|
|
|
157
158
|
"@types/rollup-plugin-postcss": "^2.0.0",
|
|
158
159
|
"@types/tar": "^6.1.1",
|
|
159
160
|
"@types/terser-webpack-plugin": "^5.0.4",
|
|
160
|
-
"@types/webpack": "^5.28.0",
|
|
161
|
-
"@types/webpack-dev-server": "^3.11.5",
|
|
162
161
|
"@types/yarnpkg__lockfile": "^1.1.4",
|
|
163
162
|
del: "^6.0.0",
|
|
164
163
|
"mock-fs": "^5.1.0",
|
|
@@ -166,19 +165,19 @@ var devDependencies = {
|
|
|
166
165
|
"ts-node": "^10.0.0"
|
|
167
166
|
};
|
|
168
167
|
|
|
169
|
-
var version$7 = "0.5.
|
|
168
|
+
var version$7 = "0.5.2-next.0";
|
|
170
169
|
|
|
171
|
-
var version$6 = "0.8.
|
|
170
|
+
var version$6 = "0.8.7-next.1";
|
|
172
171
|
|
|
173
|
-
var version$5 = "0.6.0
|
|
172
|
+
var version$5 = "0.6.0";
|
|
174
173
|
|
|
175
|
-
var version$4 = "0.2.
|
|
174
|
+
var version$4 = "0.2.20-next.1";
|
|
176
175
|
|
|
177
|
-
var version$3 = "0.2.
|
|
176
|
+
var version$3 = "0.2.4-next.0";
|
|
178
177
|
|
|
179
178
|
var version$2 = "0.2.14";
|
|
180
179
|
|
|
181
|
-
var version$1 = "0.15.
|
|
180
|
+
var version$1 = "0.15.23-next.1";
|
|
182
181
|
|
|
183
182
|
const packageVersions = {
|
|
184
183
|
"@backstage/backend-common": version$9,
|
|
@@ -232,33 +231,32 @@ function registerCommands(program) {
|
|
|
232
231
|
(opt, opts) => [...opts, opt],
|
|
233
232
|
Array()
|
|
234
233
|
];
|
|
235
|
-
program.command("app:build").description("Build an app for a production release").option("--stats", "Write bundle stats to output directory").option(
|
|
236
|
-
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-
|
|
237
|
-
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-
|
|
238
|
-
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-
|
|
239
|
-
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-
|
|
240
|
-
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-
|
|
241
|
-
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-
|
|
242
|
-
program.command("
|
|
243
|
-
program.command("plugin:
|
|
244
|
-
program.command("plugin:
|
|
245
|
-
program.command("
|
|
246
|
-
program.command("
|
|
247
|
-
program.command("
|
|
248
|
-
program.command("
|
|
249
|
-
program.command("config:
|
|
250
|
-
program.command("config:
|
|
251
|
-
program.command("config:
|
|
252
|
-
program.command("
|
|
253
|
-
program.command("versions:
|
|
254
|
-
program.command("
|
|
255
|
-
program.command("
|
|
256
|
-
program.command("
|
|
257
|
-
program.command("
|
|
258
|
-
program.command("
|
|
259
|
-
program.command("
|
|
260
|
-
program.command("
|
|
261
|
-
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-c8b107f7.cjs.js'); }).then((m) => m.default)));
|
|
234
|
+
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-0e234c9c.cjs.js'); }).then((m) => m.default)));
|
|
235
|
+
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-b11d7c66.cjs.js'); }).then((m) => m.default)));
|
|
236
|
+
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-cda9d14b.cjs.js'); }).then((m) => m.default)));
|
|
237
|
+
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-82ebca5c.cjs.js'); }).then((m) => m.default)));
|
|
238
|
+
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-35175ac8.cjs.js'); }).then((m) => m.default)));
|
|
239
|
+
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-3c1059f8.cjs.js'); }).then((m) => m.default)));
|
|
240
|
+
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-98d2404a.cjs.js'); }).then((m) => m.default)));
|
|
241
|
+
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-a0537ac0.cjs.js'); }).then((m) => m.default)));
|
|
242
|
+
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-32362ee1.cjs.js'); }).then((m) => m.default)));
|
|
243
|
+
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-0f4d8b16.cjs.js'); }).then((m) => m.default)));
|
|
244
|
+
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('./build-f89d7092.cjs.js'); }).then((m) => m.default)));
|
|
245
|
+
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-f037ffc0.cjs.js'); }).then((m) => m.default)));
|
|
246
|
+
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-a0ab3b2f.cjs.js'); }).then((m) => m.default)));
|
|
247
|
+
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-1df9fa22.cjs.js'); }).then((m) => m.default)));
|
|
248
|
+
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-bd48d728.cjs.js'); }).then((m) => m.default)));
|
|
249
|
+
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-dfd64471.cjs.js'); }).then((m) => m.default)));
|
|
250
|
+
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-c5b2f512.cjs.js'); }).then((m) => m.default)));
|
|
251
|
+
program.command("versions:bump").option("--pattern <glob>", "Override glob for matching packages to upgrade").description("Bump Backstage packages to the latest versions").action(lazy(() => Promise.resolve().then(function () { return require('./bump-ab6e31e7.cjs.js'); }).then((m) => m.default)));
|
|
252
|
+
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-9da50914.cjs.js'); }).then((m) => m.default)));
|
|
253
|
+
program.command("prepack").description("Prepares a package for packaging before publishing").action(lazy(() => Promise.resolve().then(function () { return require('./pack-8ef0a3ba.cjs.js'); }).then((m) => m.pre)));
|
|
254
|
+
program.command("postpack").description("Restores the changes made by the prepack command").action(lazy(() => Promise.resolve().then(function () { return require('./pack-8ef0a3ba.cjs.js'); }).then((m) => m.post)));
|
|
255
|
+
program.command("clean").description("Delete cache directories").action(lazy(() => Promise.resolve().then(function () { return require('./clean-2a744d8e.cjs.js'); }).then((m) => m.default)));
|
|
256
|
+
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-5494b433.cjs.js'); }).then((m) => m.default)));
|
|
257
|
+
program.command("create-github-app <github-org>").description("Create new GitHub App in your organization.").action(lazy(() => Promise.resolve().then(function () { return require('./index-4fd2a731.cjs.js'); }).then((m) => m.default)));
|
|
258
|
+
program.command("info").description("Show helpful information for debugging and reporting bugs").action(lazy(() => Promise.resolve().then(function () { return require('./info-0c58ae61.cjs.js'); }).then((m) => m.default)));
|
|
259
|
+
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-8bc1ba18.cjs.js'); }).then((m) => m.default)));
|
|
262
260
|
}
|
|
263
261
|
function lazy(getActionFunc) {
|
|
264
262
|
return async (...args) => {
|
|
@@ -302,4 +300,4 @@ exports.devDependencies = devDependencies;
|
|
|
302
300
|
exports.paths = paths;
|
|
303
301
|
exports.version = version;
|
|
304
302
|
exports.version$1 = version$8;
|
|
305
|
-
//# sourceMappingURL=index-
|
|
303
|
+
//# sourceMappingURL=index-db3186f9.cjs.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-db3186f9.cjs.js');
|
|
4
4
|
var os = require('os');
|
|
5
|
-
var run = require('./run-
|
|
5
|
+
var run = require('./run-448b5912.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-0c58ae61.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-fd09251d.cjs.js');
|
|
7
|
+
var index = require('./index-db3186f9.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-448b5912.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-8bc1ba18.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-448b5912.cjs.js');
|
|
7
7
|
require('chalk');
|
|
8
|
-
var index = require('./index-
|
|
8
|
+
var index = require('./index-db3186f9.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-9da50914.cjs.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var run = require('./run-
|
|
4
|
-
var index = require('./index-
|
|
3
|
+
var run = require('./run-448b5912.cjs.js');
|
|
4
|
+
var index = require('./index-db3186f9.cjs.js');
|
|
5
5
|
require('child_process');
|
|
6
6
|
require('util');
|
|
7
7
|
require('@backstage/errors');
|
|
@@ -26,4 +26,4 @@ var lint = async (cmd, cmdArgs) => {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
exports["default"] = lint;
|
|
29
|
-
//# sourceMappingURL=lint-
|
|
29
|
+
//# sourceMappingURL=lint-f037ffc0.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-db3186f9.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-8ef0a3ba.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-db3186f9.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');
|
|
@@ -349,4 +349,4 @@ const buildPackage = async (options) => {
|
|
|
349
349
|
|
|
350
350
|
exports.Output = Output;
|
|
351
351
|
exports.buildPackage = buildPackage;
|
|
352
|
-
//# sourceMappingURL=packager-
|
|
352
|
+
//# sourceMappingURL=packager-89d7686b.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-448b5912.cjs.js');
|
|
6
|
+
var index = require('./index-db3186f9.cjs.js');
|
|
7
7
|
|
|
8
8
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
9
9
|
|
|
@@ -50,4 +50,4 @@ async function mapDependencies(targetDir, pattern) {
|
|
|
50
50
|
|
|
51
51
|
exports.fetchPackageInfo = fetchPackageInfo;
|
|
52
52
|
exports.mapDependencies = mapDependencies;
|
|
53
|
-
//# sourceMappingURL=packages-
|
|
53
|
+
//# sourceMappingURL=packages-fd09251d.cjs.js.map
|
|
@@ -13,8 +13,9 @@ var cliCommon = require('@backstage/cli-common');
|
|
|
13
13
|
var getPackages = require('@manypkg/get-packages');
|
|
14
14
|
var MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
15
15
|
var svgrTemplate = require('./svgrTemplate-f19e974c.cjs.js');
|
|
16
|
-
var index = require('./index-
|
|
17
|
-
var run = require('./run-
|
|
16
|
+
var index = require('./index-db3186f9.cjs.js');
|
|
17
|
+
var run = require('./run-448b5912.cjs.js');
|
|
18
|
+
var ESLintPlugin = require('eslint-webpack-plugin');
|
|
18
19
|
var pickBy = require('lodash/pickBy');
|
|
19
20
|
|
|
20
21
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -27,6 +28,7 @@ var ModuleScopePlugin__default = /*#__PURE__*/_interopDefaultLegacy(ModuleScopeP
|
|
|
27
28
|
var webpack__default = /*#__PURE__*/_interopDefaultLegacy(webpack);
|
|
28
29
|
var nodeExternals__default = /*#__PURE__*/_interopDefaultLegacy(nodeExternals);
|
|
29
30
|
var MiniCssExtractPlugin__default = /*#__PURE__*/_interopDefaultLegacy(MiniCssExtractPlugin);
|
|
31
|
+
var ESLintPlugin__default = /*#__PURE__*/_interopDefaultLegacy(ESLintPlugin);
|
|
30
32
|
var pickBy__default = /*#__PURE__*/_interopDefaultLegacy(pickBy);
|
|
31
33
|
|
|
32
34
|
const { ESBuildMinifyPlugin } = require("esbuild-loader");
|
|
@@ -260,17 +262,10 @@ async function createConfig(paths, options) {
|
|
|
260
262
|
const validBaseUrl = new URL(baseUrl);
|
|
261
263
|
if (checksEnabled) {
|
|
262
264
|
plugins.push(new ForkTsCheckerWebpackPlugin__default["default"]({
|
|
263
|
-
typescript: paths.targetTsConfig
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
options: {
|
|
268
|
-
parserOptions: {
|
|
269
|
-
project: paths.targetTsConfig,
|
|
270
|
-
tsconfigRootDir: paths.targetPath
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
}
|
|
265
|
+
typescript: { configFile: paths.targetTsConfig }
|
|
266
|
+
}), new ESLintPlugin__default["default"]({
|
|
267
|
+
context: paths.targetPath,
|
|
268
|
+
files: ["**", "!**/__tests__/**", "!**/?(*.)(spec|test).*"]
|
|
274
269
|
}));
|
|
275
270
|
}
|
|
276
271
|
plugins.push(new webpack.ProvidePlugin({
|
|
@@ -315,6 +310,15 @@ async function createConfig(paths, options) {
|
|
|
315
310
|
plugins.push(new webpack__default["default"].DefinePlugin({
|
|
316
311
|
"process.env.BUILD_INFO": JSON.stringify(buildInfo)
|
|
317
312
|
}));
|
|
313
|
+
const resolveAliases = {};
|
|
314
|
+
try {
|
|
315
|
+
const { version: reactDomVersion } = require("react-dom/package.json");
|
|
316
|
+
if (reactDomVersion.startsWith("16.")) {
|
|
317
|
+
resolveAliases["react-dom"] = "@hot-loader/react-dom";
|
|
318
|
+
}
|
|
319
|
+
} catch (error) {
|
|
320
|
+
console.warn(`WARNING: Failed to read react-dom version, ${error}`);
|
|
321
|
+
}
|
|
318
322
|
return {
|
|
319
323
|
mode: isDev ? "development" : "production",
|
|
320
324
|
profile: false,
|
|
@@ -348,9 +352,7 @@ async function createConfig(paths, options) {
|
|
|
348
352
|
new LinkedPackageResolvePlugin(paths.rootNodeModules, externalPkgs),
|
|
349
353
|
new ModuleScopePlugin__default["default"]([paths.targetSrc, paths.targetDev], [paths.targetPackageJson])
|
|
350
354
|
],
|
|
351
|
-
alias:
|
|
352
|
-
"react-dom": "@hot-loader/react-dom"
|
|
353
|
-
}
|
|
355
|
+
alias: resolveAliases
|
|
354
356
|
},
|
|
355
357
|
module: {
|
|
356
358
|
rules: loaders
|
|
@@ -444,17 +446,10 @@ async function createBackendConfig(paths, options) {
|
|
|
444
446
|
new webpack__default["default"].HotModuleReplacementPlugin(),
|
|
445
447
|
...checksEnabled ? [
|
|
446
448
|
new ForkTsCheckerWebpackPlugin__default["default"]({
|
|
447
|
-
typescript: paths.targetTsConfig
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
options: {
|
|
452
|
-
parserOptions: {
|
|
453
|
-
project: paths.targetTsConfig,
|
|
454
|
-
tsconfigRootDir: paths.targetPath
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
}
|
|
449
|
+
typescript: { configFile: paths.targetTsConfig }
|
|
450
|
+
}),
|
|
451
|
+
new ESLintPlugin__default["default"]({
|
|
452
|
+
files: ["**", "!**/__tests__/**", "!**/?(*.)(spec|test).*"]
|
|
458
453
|
})
|
|
459
454
|
] : []
|
|
460
455
|
]
|
|
@@ -521,4 +516,4 @@ exports.createBackendConfig = createBackendConfig;
|
|
|
521
516
|
exports.createConfig = createConfig;
|
|
522
517
|
exports.resolveBaseUrl = resolveBaseUrl;
|
|
523
518
|
exports.resolveBundlingPaths = resolveBundlingPaths;
|
|
524
|
-
//# sourceMappingURL=paths-
|
|
519
|
+
//# sourceMappingURL=paths-f273ca03.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-08b1d0e3.cjs.js');
|
|
6
6
|
require('@backstage/config-loader');
|
|
7
|
-
require('./index-
|
|
7
|
+
require('./index-db3186f9.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('fs-extra');
|
|
@@ -59,4 +59,4 @@ function serializeConfigData(appConfigs, schema, visibility) {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
exports["default"] = print;
|
|
62
|
-
//# sourceMappingURL=print-
|
|
62
|
+
//# sourceMappingURL=print-bd48d728.cjs.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var child_process = require('child_process');
|
|
4
|
-
var index = require('./index-
|
|
4
|
+
var index = require('./index-db3186f9.cjs.js');
|
|
5
5
|
var util = require('util');
|
|
6
6
|
var errors = require('@backstage/errors');
|
|
7
7
|
|
|
@@ -78,4 +78,4 @@ async function waitForExit(child, name) {
|
|
|
78
78
|
exports.run = run;
|
|
79
79
|
exports.runCheck = runCheck;
|
|
80
80
|
exports.runPlain = runPlain;
|
|
81
|
-
//# sourceMappingURL=run-
|
|
81
|
+
//# sourceMappingURL=run-448b5912.cjs.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var yaml = require('yaml');
|
|
4
|
-
var config = require('./config-
|
|
4
|
+
var config = require('./config-08b1d0e3.cjs.js');
|
|
5
5
|
var configLoader = require('@backstage/config-loader');
|
|
6
6
|
require('@backstage/config');
|
|
7
|
-
require('./index-
|
|
7
|
+
require('./index-db3186f9.cjs.js');
|
|
8
8
|
require('commander');
|
|
9
9
|
require('chalk');
|
|
10
10
|
require('fs-extra');
|
|
@@ -34,4 +34,4 @@ var schema = async (cmd) => {
|
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
exports["default"] = schema;
|
|
37
|
-
//# sourceMappingURL=schema-
|
|
37
|
+
//# sourceMappingURL=schema-c5b2f512.cjs.js.map
|
|
@@ -11,16 +11,17 @@ require('run-script-webpack-plugin');
|
|
|
11
11
|
require('webpack-node-externals');
|
|
12
12
|
require('@backstage/cli-common');
|
|
13
13
|
require('@manypkg/get-packages');
|
|
14
|
-
require('./paths-
|
|
14
|
+
require('./paths-f273ca03.cjs.js');
|
|
15
15
|
require('mini-css-extract-plugin');
|
|
16
|
-
var index = require('./index-
|
|
17
|
-
require('./run-
|
|
16
|
+
var index = require('./index-db3186f9.cjs.js');
|
|
17
|
+
require('./run-448b5912.cjs.js');
|
|
18
|
+
require('eslint-webpack-plugin');
|
|
18
19
|
require('lodash/pickBy');
|
|
19
20
|
require('yn');
|
|
20
21
|
require('react-dev-utils/FileSizeReporter');
|
|
21
22
|
require('react-dev-utils/formatWebpackMessages');
|
|
22
|
-
var server = require('./server-
|
|
23
|
-
var config = require('./config-
|
|
23
|
+
var server = require('./server-114c20ca.cjs.js');
|
|
24
|
+
var config = require('./config-08b1d0e3.cjs.js');
|
|
24
25
|
require('./svgrTemplate-f19e974c.cjs.js');
|
|
25
26
|
require('commander');
|
|
26
27
|
require('semver');
|
|
@@ -53,4 +54,4 @@ var serve = async (cmd) => {
|
|
|
53
54
|
};
|
|
54
55
|
|
|
55
56
|
exports["default"] = serve;
|
|
56
|
-
//# sourceMappingURL=serve-
|
|
57
|
+
//# sourceMappingURL=serve-32362ee1.cjs.js.map
|
|
@@ -12,19 +12,20 @@ require('run-script-webpack-plugin');
|
|
|
12
12
|
require('webpack-node-externals');
|
|
13
13
|
require('@backstage/cli-common');
|
|
14
14
|
require('@manypkg/get-packages');
|
|
15
|
-
require('./paths-
|
|
15
|
+
require('./paths-f273ca03.cjs.js');
|
|
16
16
|
require('mini-css-extract-plugin');
|
|
17
|
-
var index = require('./index-
|
|
18
|
-
require('./run-
|
|
17
|
+
var index = require('./index-db3186f9.cjs.js');
|
|
18
|
+
require('./run-448b5912.cjs.js');
|
|
19
|
+
require('eslint-webpack-plugin');
|
|
19
20
|
require('lodash/pickBy');
|
|
20
21
|
require('yn');
|
|
21
22
|
require('react-dev-utils/FileSizeReporter');
|
|
22
23
|
require('react-dev-utils/formatWebpackMessages');
|
|
23
|
-
var server = require('./server-
|
|
24
|
-
var config = require('./config-
|
|
24
|
+
var server = require('./server-114c20ca.cjs.js');
|
|
25
|
+
var config = require('./config-08b1d0e3.cjs.js');
|
|
25
26
|
var Lockfile = require('./Lockfile-35661afa.cjs.js');
|
|
26
27
|
require('minimatch');
|
|
27
|
-
var lint = require('./lint-
|
|
28
|
+
var lint = require('./lint-9da50914.cjs.js');
|
|
28
29
|
require('./svgrTemplate-f19e974c.cjs.js');
|
|
29
30
|
require('commander');
|
|
30
31
|
require('semver');
|
|
@@ -47,20 +48,37 @@ var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
|
|
|
47
48
|
var uniq__default = /*#__PURE__*/_interopDefaultLegacy(uniq);
|
|
48
49
|
|
|
49
50
|
var serve = async (cmd) => {
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
const lockFilePath = index.paths.resolveTargetRoot("yarn.lock");
|
|
52
|
+
if (fs__default["default"].existsSync(lockFilePath)) {
|
|
53
|
+
try {
|
|
54
|
+
const lockfile = await Lockfile.Lockfile.load(lockFilePath);
|
|
55
|
+
const result = lockfile.analyze({
|
|
56
|
+
filter: lint.includedFilter
|
|
57
|
+
});
|
|
58
|
+
const problemPackages = [...result.newVersions, ...result.newRanges].map(({ name: name2 }) => name2).filter((name2) => lint.forbiddenDuplicatesFilter(name2));
|
|
59
|
+
if (problemPackages.length > 0) {
|
|
60
|
+
console.log(chalk__default["default"].yellow(`\u26A0\uFE0F Some of the following packages may be outdated or have duplicate installations:
|
|
57
61
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
${uniq__default["default"](problemPackages).join(", ")}
|
|
63
|
+
`));
|
|
64
|
+
console.log(chalk__default["default"].yellow(`\u26A0\uFE0F The following command may fix the issue, but it could also be an issue within one of your dependencies:
|
|
65
|
+
|
|
66
|
+
yarn backstage-cli versions:check --fix
|
|
67
|
+
`));
|
|
68
|
+
}
|
|
69
|
+
} catch (error) {
|
|
70
|
+
console.log(chalk__default["default"].yellow(`\u26A0\uFE0F Unable to parse yarn.lock file properly:
|
|
61
71
|
|
|
62
|
-
|
|
63
|
-
|
|
72
|
+
${error}
|
|
73
|
+
|
|
74
|
+
skipping analyzer for outdated or duplicate installations
|
|
75
|
+
`));
|
|
76
|
+
}
|
|
77
|
+
} else {
|
|
78
|
+
console.log(chalk__default["default"].yellow(`\u26A0\uFE0F Unable to find yarn.lock file:
|
|
79
|
+
|
|
80
|
+
skipping analyzer for outdated or duplicate installations
|
|
81
|
+
`));
|
|
64
82
|
}
|
|
65
83
|
const { name } = await fs__default["default"].readJson(index.paths.resolveTarget("package.json"));
|
|
66
84
|
const waitForExit = await server.serveBundle({
|
|
@@ -76,4 +94,4 @@ var serve = async (cmd) => {
|
|
|
76
94
|
};
|
|
77
95
|
|
|
78
96
|
exports["default"] = serve;
|
|
79
|
-
//# sourceMappingURL=serve-
|
|
97
|
+
//# sourceMappingURL=serve-b11d7c66.cjs.js.map
|