@nx/react 20.4.0-canary.20250115-0ae8665 → 20.4.0-canary.20250117-cba25da
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.4.0-canary.
|
3
|
+
"version": "20.4.0-canary.20250117-cba25da",
|
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.4.0-canary.
|
42
|
-
"@nx/js": "20.4.0-canary.
|
43
|
-
"@nx/eslint": "20.4.0-canary.
|
44
|
-
"@nx/web": "20.4.0-canary.
|
45
|
-
"@nx/module-federation": "20.4.0-canary.
|
41
|
+
"@nx/devkit": "20.4.0-canary.20250117-cba25da",
|
42
|
+
"@nx/js": "20.4.0-canary.20250117-cba25da",
|
43
|
+
"@nx/eslint": "20.4.0-canary.20250117-cba25da",
|
44
|
+
"@nx/web": "20.4.0-canary.20250117-cba25da",
|
45
|
+
"@nx/module-federation": "20.4.0-canary.20250117-cba25da",
|
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,
|
@@ -39,6 +40,7 @@ async function applicationGeneratorInternal(tree, schema) {
|
|
39
40
|
skipFormat: true,
|
40
41
|
addTsPlugin: schema.useTsSolution,
|
41
42
|
formatter: schema.formatter,
|
43
|
+
platform: 'web',
|
42
44
|
});
|
43
45
|
tasks.push(jsInitTask);
|
44
46
|
const options = await (0, normalize_options_1.normalizeOptions)(tree, schema);
|
@@ -130,6 +132,7 @@ async function applicationGeneratorInternal(tree, schema) {
|
|
130
132
|
if (options.isUsingTsSolutionConfig) {
|
131
133
|
(0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(tree, options.appProjectRoot);
|
132
134
|
}
|
135
|
+
(0, sort_fields_1.sortPackageJsonFields)(tree, options.appProjectRoot);
|
133
136
|
if (!options.skipFormat) {
|
134
137
|
await (0, devkit_1.formatFiles)(tree);
|
135
138
|
}
|
@@ -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
|
}
|