@nx/react 22.7.1 → 22.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/react",
|
|
3
|
-
"version": "22.7.
|
|
3
|
+
"version": "22.7.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The React plugin for Nx contains executors and generators for managing React applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Vitest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, components, hooks, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
|
|
6
6
|
"repository": {
|
|
@@ -33,33 +33,33 @@
|
|
|
33
33
|
"migrations": "./migrations.json"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@phenomnomnominal/tsquery": "~6.
|
|
36
|
+
"@phenomnomnominal/tsquery": "~6.2.0",
|
|
37
37
|
"@svgr/webpack": "^8.0.1",
|
|
38
|
-
"minimatch": "10.2.
|
|
38
|
+
"minimatch": "10.2.5",
|
|
39
39
|
"picocolors": "^1.1.0",
|
|
40
40
|
"tslib": "^2.3.0",
|
|
41
|
-
"@nx/devkit": "22.7.
|
|
42
|
-
"@nx/js": "22.7.
|
|
43
|
-
"@nx/eslint": "22.7.
|
|
44
|
-
"@nx/web": "22.7.
|
|
45
|
-
"@nx/module-federation": "22.7.
|
|
46
|
-
"@nx/rollup": "22.7.
|
|
41
|
+
"@nx/devkit": "22.7.3",
|
|
42
|
+
"@nx/js": "22.7.3",
|
|
43
|
+
"@nx/eslint": "22.7.3",
|
|
44
|
+
"@nx/web": "22.7.3",
|
|
45
|
+
"@nx/module-federation": "22.7.3",
|
|
46
|
+
"@nx/rollup": "22.7.3",
|
|
47
47
|
"express": "^4.21.2",
|
|
48
48
|
"http-proxy-middleware": "^3.0.5",
|
|
49
49
|
"semver": "^7.6.3"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@nx/cypress": "22.7.
|
|
53
|
-
"@nx/playwright": "22.7.
|
|
54
|
-
"@nx/rsbuild": "22.7.
|
|
55
|
-
"@nx/vite": "22.7.
|
|
56
|
-
"@nx/vitest": "22.7.
|
|
57
|
-
"@nx/webpack": "22.7.
|
|
58
|
-
"@nx/storybook": "22.7.
|
|
59
|
-
"nx": "22.7.
|
|
52
|
+
"@nx/cypress": "22.7.3",
|
|
53
|
+
"@nx/playwright": "22.7.3",
|
|
54
|
+
"@nx/rsbuild": "22.7.3",
|
|
55
|
+
"@nx/vite": "22.7.3",
|
|
56
|
+
"@nx/vitest": "22.7.3",
|
|
57
|
+
"@nx/webpack": "22.7.3",
|
|
58
|
+
"@nx/storybook": "22.7.3",
|
|
59
|
+
"nx": "22.7.3"
|
|
60
60
|
},
|
|
61
61
|
"optionalDependencies": {
|
|
62
|
-
"@nx/vite": "22.7.
|
|
62
|
+
"@nx/vite": "22.7.3"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-svgr-to-webpack-config.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/migrations/update-22-0-0/add-svgr-to-webpack-config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAKV,MAAM,YAAY,CAAC;AAiHpB,wBAA8B,sBAAsB,CAAC,IAAI,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"add-svgr-to-webpack-config.d.ts","sourceRoot":"","sources":["../../../../../../packages/react/src/migrations/update-22-0-0/add-svgr-to-webpack-config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAKV,MAAM,YAAY,CAAC;AAiHpB,wBAA8B,sBAAsB,CAAC,IAAI,EAAE,IAAI,iBAsZ9D"}
|
|
@@ -271,11 +271,38 @@ async function addSvgrToWebpackConfig(tree) {
|
|
|
271
271
|
ts.isIdentifier(prop.name) &&
|
|
272
272
|
prop.name.text === 'svgr');
|
|
273
273
|
if (svgrProp) {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
274
|
+
const hasOnlySvgrProperty = arg.properties.length === 1;
|
|
275
|
+
if (hasOnlySvgrProperty) {
|
|
276
|
+
changes.push({
|
|
277
|
+
type: devkit_1.ChangeType.Delete,
|
|
278
|
+
start: arg.getStart(),
|
|
279
|
+
length: arg.getEnd() - arg.getStart(),
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
const propIndex = arg.properties.indexOf(svgrProp);
|
|
284
|
+
const isLastProp = propIndex === arg.properties.length - 1;
|
|
285
|
+
const isFirstProp = propIndex === 0;
|
|
286
|
+
let removeStart = svgrProp.getFullStart();
|
|
287
|
+
let removeEnd = svgrProp.getEnd();
|
|
288
|
+
if (!isLastProp) {
|
|
289
|
+
const nextProp = arg.properties[propIndex + 1];
|
|
290
|
+
removeEnd = nextProp.getFullStart();
|
|
291
|
+
}
|
|
292
|
+
else if (!isFirstProp) {
|
|
293
|
+
const prevProp = arg.properties[propIndex - 1];
|
|
294
|
+
const textBetween = content.substring(prevProp.getEnd(), svgrProp.getFullStart());
|
|
295
|
+
const commaIndex = textBetween.indexOf(',');
|
|
296
|
+
if (commaIndex !== -1) {
|
|
297
|
+
removeStart = prevProp.getEnd() + commaIndex;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
changes.push({
|
|
301
|
+
type: devkit_1.ChangeType.Delete,
|
|
302
|
+
start: removeStart,
|
|
303
|
+
length: removeEnd - removeStart,
|
|
304
|
+
});
|
|
305
|
+
}
|
|
279
306
|
if (config.svgrOptions) {
|
|
280
307
|
const composePluginsCalls = (0, tsquery_1.query)(sourceFile, 'CallExpression[expression.name=composePlugins]');
|
|
281
308
|
if (composePluginsCalls.length > 0) {
|