@backstage/cli 0.34.6-next.1 → 0.35.0-next.2
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 +33 -0
- package/config/nodeTransform.cjs +1 -1
- package/config/nodeTransformHooks.mjs +1 -1
- package/config/tsconfig.json +4 -4
- package/dist/modules/build/lib/builder/config.cjs.js +1 -1
- package/dist/modules/build/lib/bundler/optimization.cjs.js +2 -2
- package/dist/modules/build/lib/bundler/transforms.cjs.js +2 -2
- package/dist/modules/config/index.cjs.js +4 -4
- package/dist/packages/backend-defaults/package.json.cjs.js +1 -1
- package/dist/packages/backend-plugin-api/package.json.cjs.js +1 -1
- package/dist/packages/backend-test-utils/package.json.cjs.js +1 -1
- package/dist/packages/cli/package.json.cjs.js +6 -6
- package/dist/packages/core-app-api/package.json.cjs.js +1 -1
- package/dist/packages/core-components/package.json.cjs.js +1 -1
- package/dist/packages/frontend-plugin-api/package.json.cjs.js +1 -1
- package/dist/plugins/auth-backend/package.json.cjs.js +1 -1
- package/dist/plugins/auth-backend-module-guest-provider/package.json.cjs.js +1 -1
- package/dist/plugins/catalog-node/package.json.cjs.js +1 -1
- package/dist/plugins/scaffolder-node/package.json.cjs.js +1 -1
- package/dist/plugins/scaffolder-node-test-utils/package.json.cjs.js +1 -1
- package/package.json +20 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @backstage/cli
|
|
2
2
|
|
|
3
|
+
## 0.35.0-next.2
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f8dff94: Switched the default module resolution to `bundler` and the `module` setting to `ES2020`.
|
|
8
|
+
|
|
9
|
+
You may need to bump some dependencies as part of this change and fix imports in code. The most common source of this is that type checking will now consider the `exports` field in `package.json` when resolving imports. This in turn can break older versions of packages that had incompatible `exports` fields. Generally these issues will have already been fixed in the upstream packages.
|
|
10
|
+
|
|
11
|
+
You might be tempted to use `--skipLibCheck` to hide issues due to this change, but it will weaken the type safety of your project. If you run into a large number of issues and want to keep the old behavior, you can reset the `moduleResolution` and `module` settings your own `tsconfig.json` file to `node` and `ESNext` respectively. But keep in mind that the `node` option will be removed in future versions of TypeScript.
|
|
12
|
+
|
|
13
|
+
A future version of Backstage will make these new settings mandatory, as we move to rely on the `exports` field for type resolution in packages, rather than the `typesVersions` field.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- de96a60: chore(deps): bump `express` from 4.21.2 to 4.22.0
|
|
18
|
+
- 1226647: Updated dependency `esbuild` to `^0.27.0`.
|
|
19
|
+
- f89a074: Updated dependency `@pmmmwh/react-refresh-webpack-plugin` to `^0.6.0`.
|
|
20
|
+
- 2b81751: Updated dependency `webpack` to `~5.103.0`.
|
|
21
|
+
- fafd9e1: Fixed internal usage of `yargs`.
|
|
22
|
+
- 2bae83a: Switched ECMAScript version to ES2023.
|
|
23
|
+
- 2bae83a: Bumped dev dependencies `@types/node`
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
- @backstage/integration@1.18.3-next.1
|
|
26
|
+
- @backstage/config-loader@1.10.7-next.1
|
|
27
|
+
- @backstage/cli-common@0.1.16-next.2
|
|
28
|
+
- @backstage/catalog-model@1.7.6
|
|
29
|
+
- @backstage/cli-node@0.2.16-next.1
|
|
30
|
+
- @backstage/config@1.3.6
|
|
31
|
+
- @backstage/errors@1.2.7
|
|
32
|
+
- @backstage/eslint-plugin@0.2.0
|
|
33
|
+
- @backstage/release-manifests@0.0.13
|
|
34
|
+
- @backstage/types@1.2.2
|
|
35
|
+
|
|
3
36
|
## 0.34.6-next.1
|
|
4
37
|
|
|
5
38
|
### Patch Changes
|
package/config/nodeTransform.cjs
CHANGED
package/config/tsconfig.json
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"incremental": true,
|
|
13
13
|
"isolatedModules": true,
|
|
14
14
|
"jsx": "react",
|
|
15
|
-
"lib": ["DOM", "DOM.Iterable", "ScriptHost", "
|
|
16
|
-
"module": "
|
|
17
|
-
"moduleResolution": "
|
|
15
|
+
"lib": ["DOM", "DOM.Iterable", "ScriptHost", "ES2023"],
|
|
16
|
+
"module": "ES2020",
|
|
17
|
+
"moduleResolution": "bundler",
|
|
18
18
|
"noEmit": false,
|
|
19
19
|
"noFallthroughCasesInSwitch": true,
|
|
20
20
|
"noImplicitAny": true,
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"strictNullChecks": true,
|
|
34
34
|
"strictPropertyInitialization": true,
|
|
35
35
|
"stripInternal": true,
|
|
36
|
-
"target": "
|
|
36
|
+
"target": "ES2023",
|
|
37
37
|
"types": ["node", "jest", "webpack-env"],
|
|
38
38
|
"useDefineForClassFields": true
|
|
39
39
|
}
|
|
@@ -9,13 +9,13 @@ const optimization = (options) => {
|
|
|
9
9
|
minimize: !isDev,
|
|
10
10
|
minimizer: [
|
|
11
11
|
new MinifyPlugin({
|
|
12
|
-
target: "
|
|
12
|
+
target: "ES2023",
|
|
13
13
|
format: "iife",
|
|
14
14
|
exclude: "remoteEntry.js"
|
|
15
15
|
}),
|
|
16
16
|
// Avoid iife wrapping of module federation remote entry as it breaks the variable assignment
|
|
17
17
|
new MinifyPlugin({
|
|
18
|
-
target: "
|
|
18
|
+
target: "ES2023",
|
|
19
19
|
format: void 0,
|
|
20
20
|
include: "remoteEntry.js"
|
|
21
21
|
}),
|
|
@@ -23,7 +23,7 @@ const transforms = (options) => {
|
|
|
23
23
|
loader: webpack ? require.resolve("swc-loader") : "builtin:swc-loader",
|
|
24
24
|
options: {
|
|
25
25
|
jsc: {
|
|
26
|
-
target: "
|
|
26
|
+
target: "es2023",
|
|
27
27
|
externalHelpers: !isBackend,
|
|
28
28
|
parser: {
|
|
29
29
|
syntax: "typescript",
|
|
@@ -49,7 +49,7 @@ const transforms = (options) => {
|
|
|
49
49
|
loader: webpack ? require.resolve("swc-loader") : "builtin:swc-loader",
|
|
50
50
|
options: {
|
|
51
51
|
jsc: {
|
|
52
|
-
target: "
|
|
52
|
+
target: "es2023",
|
|
53
53
|
externalHelpers: !isBackend,
|
|
54
54
|
parser: {
|
|
55
55
|
syntax: "ecmascript",
|
|
@@ -46,7 +46,7 @@ var index = factory.createCliPlugin({
|
|
|
46
46
|
path: ["config:print"],
|
|
47
47
|
description: "Print the app configuration for the current package",
|
|
48
48
|
execute: async ({ args, info }) => {
|
|
49
|
-
const argv = await yargs__default.default.options({
|
|
49
|
+
const argv = await yargs__default.default().options({
|
|
50
50
|
package: { type: "string" },
|
|
51
51
|
lax: { type: "boolean" },
|
|
52
52
|
frontend: { type: "boolean" },
|
|
@@ -61,7 +61,7 @@ var index = factory.createCliPlugin({
|
|
|
61
61
|
path: ["config:check"],
|
|
62
62
|
description: "Validate that the given configuration loads and matches schema",
|
|
63
63
|
execute: async ({ args }) => {
|
|
64
|
-
const argv = await yargs__default.default.options({
|
|
64
|
+
const argv = await yargs__default.default().options({
|
|
65
65
|
package: { type: "string" },
|
|
66
66
|
lax: { type: "boolean" },
|
|
67
67
|
frontend: { type: "boolean" },
|
|
@@ -80,7 +80,7 @@ var index = factory.createCliPlugin({
|
|
|
80
80
|
path: ["config:schema"],
|
|
81
81
|
description: "Print the JSON schema for the given configuration",
|
|
82
82
|
execute: async ({ args }) => {
|
|
83
|
-
const argv = await yargs__default.default.options({
|
|
83
|
+
const argv = await yargs__default.default().options({
|
|
84
84
|
package: { type: "string" },
|
|
85
85
|
format: { type: "string" },
|
|
86
86
|
merge: { type: "boolean" },
|
|
@@ -93,7 +93,7 @@ var index = factory.createCliPlugin({
|
|
|
93
93
|
path: ["config", "schema"],
|
|
94
94
|
description: "Print the JSON schema for the given configuration",
|
|
95
95
|
execute: async ({ args }) => {
|
|
96
|
-
const argv = await yargs__default.default.options({
|
|
96
|
+
const argv = await yargs__default.default().options({
|
|
97
97
|
package: { type: "string" },
|
|
98
98
|
format: { type: "string" },
|
|
99
99
|
merge: { type: "boolean" },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var version = "0.
|
|
3
|
+
var version = "0.35.0-next.2";
|
|
4
4
|
var dependencies = {
|
|
5
5
|
"@backstage/catalog-model": "workspace:^",
|
|
6
6
|
"@backstage/cli-common": "workspace:^",
|
|
@@ -43,7 +43,7 @@ var dependencies = {
|
|
|
43
43
|
"cross-spawn": "^7.0.3",
|
|
44
44
|
"css-loader": "^6.5.1",
|
|
45
45
|
"ctrlc-windows": "^2.1.0",
|
|
46
|
-
esbuild: "^0.
|
|
46
|
+
esbuild: "^0.27.0",
|
|
47
47
|
eslint: "^8.6.0",
|
|
48
48
|
"eslint-config-prettier": "^9.0.0",
|
|
49
49
|
"eslint-formatter-friendly": "^7.0.0",
|
|
@@ -55,7 +55,7 @@ var dependencies = {
|
|
|
55
55
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
56
56
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
57
57
|
"eslint-rspack-plugin": "^4.2.1",
|
|
58
|
-
express: "^4.
|
|
58
|
+
express: "^4.22.0",
|
|
59
59
|
"fs-extra": "^11.2.0",
|
|
60
60
|
"git-url-parse": "^15.0.0",
|
|
61
61
|
glob: "^7.1.7",
|
|
@@ -122,14 +122,14 @@ var devDependencies = {
|
|
|
122
122
|
"@backstage/plugin-scaffolder-node-test-utils": "workspace:^",
|
|
123
123
|
"@backstage/test-utils": "workspace:^",
|
|
124
124
|
"@backstage/theme": "workspace:^",
|
|
125
|
-
"@pmmmwh/react-refresh-webpack-plugin": "^0.
|
|
125
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.6.0",
|
|
126
126
|
"@types/cross-spawn": "^6.0.2",
|
|
127
127
|
"@types/ejs": "^3.1.3",
|
|
128
128
|
"@types/express": "^4.17.6",
|
|
129
129
|
"@types/fs-extra": "^11.0.0",
|
|
130
130
|
"@types/http-proxy": "^1.17.4",
|
|
131
131
|
"@types/inquirer": "^8.1.3",
|
|
132
|
-
"@types/node": "^
|
|
132
|
+
"@types/node": "^22.13.14",
|
|
133
133
|
"@types/npm-packlist": "^3.0.0",
|
|
134
134
|
"@types/recursive-readdir": "^2.2.0",
|
|
135
135
|
"@types/rollup-plugin-peer-deps-external": "^2.2.0",
|
|
@@ -147,7 +147,7 @@ var devDependencies = {
|
|
|
147
147
|
msw: "^1.0.0",
|
|
148
148
|
nodemon: "^3.0.1",
|
|
149
149
|
"terser-webpack-plugin": "^5.1.3",
|
|
150
|
-
webpack: "~5.
|
|
150
|
+
webpack: "~5.103.0",
|
|
151
151
|
"webpack-dev-server": "^5.0.0"
|
|
152
152
|
};
|
|
153
153
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0-next.2",
|
|
4
4
|
"description": "CLI for developing Backstage plugins and apps",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "cli"
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@backstage/catalog-model": "1.7.6",
|
|
51
|
-
"@backstage/cli-common": "0.1.16-next.
|
|
51
|
+
"@backstage/cli-common": "0.1.16-next.2",
|
|
52
52
|
"@backstage/cli-node": "0.2.16-next.1",
|
|
53
53
|
"@backstage/config": "1.3.6",
|
|
54
|
-
"@backstage/config-loader": "1.10.7-next.
|
|
54
|
+
"@backstage/config-loader": "1.10.7-next.1",
|
|
55
55
|
"@backstage/errors": "1.2.7",
|
|
56
56
|
"@backstage/eslint-plugin": "0.2.0",
|
|
57
|
-
"@backstage/integration": "1.18.3-next.
|
|
57
|
+
"@backstage/integration": "1.18.3-next.1",
|
|
58
58
|
"@backstage/release-manifests": "0.0.13",
|
|
59
59
|
"@backstage/types": "1.2.2",
|
|
60
60
|
"@manypkg/get-packages": "^1.1.3",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"cross-spawn": "^7.0.3",
|
|
89
89
|
"css-loader": "^6.5.1",
|
|
90
90
|
"ctrlc-windows": "^2.1.0",
|
|
91
|
-
"esbuild": "^0.
|
|
91
|
+
"esbuild": "^0.27.0",
|
|
92
92
|
"eslint": "^8.6.0",
|
|
93
93
|
"eslint-config-prettier": "^9.0.0",
|
|
94
94
|
"eslint-formatter-friendly": "^7.0.0",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
101
101
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
102
102
|
"eslint-rspack-plugin": "^4.2.1",
|
|
103
|
-
"express": "^4.
|
|
103
|
+
"express": "^4.22.0",
|
|
104
104
|
"fs-extra": "^11.2.0",
|
|
105
105
|
"git-url-parse": "^15.0.0",
|
|
106
106
|
"glob": "^7.1.7",
|
|
@@ -151,30 +151,30 @@
|
|
|
151
151
|
"zod-validation-error": "^3.4.0"
|
|
152
152
|
},
|
|
153
153
|
"devDependencies": {
|
|
154
|
-
"@backstage/backend-plugin-api": "1.
|
|
155
|
-
"@backstage/backend-test-utils": "1.10.
|
|
154
|
+
"@backstage/backend-plugin-api": "1.6.0-next.1",
|
|
155
|
+
"@backstage/backend-test-utils": "1.10.2-next.1",
|
|
156
156
|
"@backstage/catalog-client": "1.12.1",
|
|
157
157
|
"@backstage/config": "1.3.6",
|
|
158
|
-
"@backstage/core-app-api": "1.19.3-next.
|
|
159
|
-
"@backstage/core-components": "0.18.4-next.
|
|
158
|
+
"@backstage/core-app-api": "1.19.3-next.1",
|
|
159
|
+
"@backstage/core-components": "0.18.4-next.2",
|
|
160
160
|
"@backstage/core-plugin-api": "1.12.1-next.0",
|
|
161
161
|
"@backstage/dev-utils": "1.1.18-next.1",
|
|
162
162
|
"@backstage/errors": "1.2.7",
|
|
163
|
-
"@backstage/plugin-auth-backend": "0.25.7-next.
|
|
164
|
-
"@backstage/plugin-auth-backend-module-guest-provider": "0.2.15-next.
|
|
165
|
-
"@backstage/plugin-catalog-node": "1.20.1-next.
|
|
166
|
-
"@backstage/plugin-scaffolder-node": "0.12.2-next.
|
|
167
|
-
"@backstage/plugin-scaffolder-node-test-utils": "0.3.6-next.
|
|
163
|
+
"@backstage/plugin-auth-backend": "0.25.7-next.1",
|
|
164
|
+
"@backstage/plugin-auth-backend-module-guest-provider": "0.2.15-next.1",
|
|
165
|
+
"@backstage/plugin-catalog-node": "1.20.1-next.1",
|
|
166
|
+
"@backstage/plugin-scaffolder-node": "0.12.2-next.1",
|
|
167
|
+
"@backstage/plugin-scaffolder-node-test-utils": "0.3.6-next.1",
|
|
168
168
|
"@backstage/test-utils": "1.7.14-next.0",
|
|
169
169
|
"@backstage/theme": "0.7.1-next.0",
|
|
170
|
-
"@pmmmwh/react-refresh-webpack-plugin": "^0.
|
|
170
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.6.0",
|
|
171
171
|
"@types/cross-spawn": "^6.0.2",
|
|
172
172
|
"@types/ejs": "^3.1.3",
|
|
173
173
|
"@types/express": "^4.17.6",
|
|
174
174
|
"@types/fs-extra": "^11.0.0",
|
|
175
175
|
"@types/http-proxy": "^1.17.4",
|
|
176
176
|
"@types/inquirer": "^8.1.3",
|
|
177
|
-
"@types/node": "^
|
|
177
|
+
"@types/node": "^22.13.14",
|
|
178
178
|
"@types/npm-packlist": "^3.0.0",
|
|
179
179
|
"@types/recursive-readdir": "^2.2.0",
|
|
180
180
|
"@types/rollup-plugin-peer-deps-external": "^2.2.0",
|
|
@@ -192,18 +192,18 @@
|
|
|
192
192
|
"msw": "^1.0.0",
|
|
193
193
|
"nodemon": "^3.0.1",
|
|
194
194
|
"terser-webpack-plugin": "^5.1.3",
|
|
195
|
-
"webpack": "~5.
|
|
195
|
+
"webpack": "~5.103.0",
|
|
196
196
|
"webpack-dev-server": "^5.0.0"
|
|
197
197
|
},
|
|
198
198
|
"peerDependencies": {
|
|
199
199
|
"@module-federation/enhanced": "^0.9.0",
|
|
200
|
-
"@pmmmwh/react-refresh-webpack-plugin": "^0.
|
|
200
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.6.0",
|
|
201
201
|
"esbuild-loader": "^4.0.0",
|
|
202
202
|
"eslint-webpack-plugin": "^4.2.0",
|
|
203
203
|
"fork-ts-checker-webpack-plugin": "^9.0.0",
|
|
204
204
|
"mini-css-extract-plugin": "^2.4.2",
|
|
205
205
|
"terser-webpack-plugin": "^5.1.3",
|
|
206
|
-
"webpack": "~5.
|
|
206
|
+
"webpack": "~5.103.0",
|
|
207
207
|
"webpack-dev-server": "^5.0.0"
|
|
208
208
|
},
|
|
209
209
|
"peerDependenciesMeta": {
|