@nx/react 20.3.2 → 20.3.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": "20.3.
|
3
|
+
"version": "20.3.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": {
|
@@ -38,11 +38,11 @@
|
|
38
38
|
"minimatch": "9.0.3",
|
39
39
|
"picocolors": "^1.1.0",
|
40
40
|
"tslib": "^2.3.0",
|
41
|
-
"@nx/devkit": "20.3.
|
42
|
-
"@nx/js": "20.3.
|
43
|
-
"@nx/eslint": "20.3.
|
44
|
-
"@nx/web": "20.3.
|
45
|
-
"@nx/module-federation": "20.3.
|
41
|
+
"@nx/devkit": "20.3.3",
|
42
|
+
"@nx/js": "20.3.3",
|
43
|
+
"@nx/eslint": "20.3.3",
|
44
|
+
"@nx/web": "20.3.3",
|
45
|
+
"@nx/module-federation": "20.3.3",
|
46
46
|
"express": "^4.19.2",
|
47
47
|
"http-proxy-middleware": "^3.0.3"
|
48
48
|
},
|
@@ -25,6 +25,7 @@ const add_webpack_1 = require("./lib/bundlers/add-webpack");
|
|
25
25
|
const add_rspack_1 = require("./lib/bundlers/add-rspack");
|
26
26
|
const add_rsbuild_1 = require("./lib/bundlers/add-rsbuild");
|
27
27
|
const add_vite_1 = require("./lib/bundlers/add-vite");
|
28
|
+
const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
|
28
29
|
async function applicationGenerator(tree, schema) {
|
29
30
|
return await applicationGeneratorInternal(tree, {
|
30
31
|
addPlugin: false,
|
@@ -130,6 +131,7 @@ async function applicationGeneratorInternal(tree, schema) {
|
|
130
131
|
if (options.isUsingTsSolutionConfig) {
|
131
132
|
(0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(tree, options.appProjectRoot);
|
132
133
|
}
|
134
|
+
(0, sort_fields_1.sortPackageJsonFields)(tree, options.appProjectRoot);
|
133
135
|
if (!options.skipFormat) {
|
134
136
|
await (0, devkit_1.formatFiles)(tree);
|
135
137
|
}
|
@@ -13,7 +13,7 @@ function getAppTests(options) {
|
|
13
13
|
${options.routing
|
14
14
|
? 'const { getByText } = render(<BrowserRouter><App /></BrowserRouter>);'
|
15
15
|
: 'const { getByText } = render(<App />);'}
|
16
|
-
expect(getByText(
|
16
|
+
expect(getByText(new RegExp('Welcome ${options.projectName}', 'gi'))).toBeTruthy();
|
17
17
|
});
|
18
18
|
`;
|
19
19
|
}
|
@@ -22,6 +22,7 @@ const install_common_dependencies_1 = require("./lib/install-common-dependencies
|
|
22
22
|
const set_defaults_1 = require("./lib/set-defaults");
|
23
23
|
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
24
24
|
const determine_entry_fields_1 = require("./lib/determine-entry-fields");
|
25
|
+
const sort_fields_1 = require("@nx/js/src/utils/package-json/sort-fields");
|
25
26
|
async function libraryGenerator(host, schema) {
|
26
27
|
return await libraryGeneratorInternal(host, {
|
27
28
|
addPlugin: false,
|
@@ -209,6 +210,7 @@ async function libraryGeneratorInternal(host, schema) {
|
|
209
210
|
if (options.isUsingTsSolutionConfig) {
|
210
211
|
(0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.projectRoot);
|
211
212
|
}
|
213
|
+
(0, sort_fields_1.sortPackageJsonFields)(host, options.projectRoot);
|
212
214
|
if (!options.skipFormat) {
|
213
215
|
await (0, devkit_1.formatFiles)(host);
|
214
216
|
}
|