@nx/react 20.4.0-canary.20250124-45847a6 → 20.4.0-rc.0
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-
|
3
|
+
"version": "20.4.0-rc.0",
|
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,12 +38,12 @@
|
|
38
38
|
"minimatch": "9.0.3",
|
39
39
|
"picocolors": "^1.1.0",
|
40
40
|
"tslib": "^2.3.0",
|
41
|
-
"@nx/devkit": "20.4.0-
|
42
|
-
"@nx/js": "20.4.0-
|
43
|
-
"@nx/eslint": "20.4.0-
|
44
|
-
"@nx/web": "20.4.0-
|
45
|
-
"@nx/module-federation": "20.4.0-
|
46
|
-
"express": "^4.
|
41
|
+
"@nx/devkit": "20.4.0-rc.0",
|
42
|
+
"@nx/js": "20.4.0-rc.0",
|
43
|
+
"@nx/eslint": "20.4.0-rc.0",
|
44
|
+
"@nx/web": "20.4.0-rc.0",
|
45
|
+
"@nx/module-federation": "20.4.0-rc.0",
|
46
|
+
"express": "^4.21.2",
|
47
47
|
"http-proxy-middleware": "^3.0.3",
|
48
48
|
"semver": "^7.6.3"
|
49
49
|
},
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { GeneratorCallback, Tree } from '@nx/devkit';
|
2
2
|
import { NormalizedSchema } from '../schema';
|
3
|
-
export declare function installCommonDependencies(host: Tree, options: NormalizedSchema): GeneratorCallback
|
3
|
+
export declare function installCommonDependencies(host: Tree, options: NormalizedSchema): Promise<GeneratorCallback>;
|
@@ -3,14 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.installCommonDependencies = installCommonDependencies;
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
5
5
|
const add_swc_dependencies_1 = require("@nx/js/src/utils/swc/add-swc-dependencies");
|
6
|
+
const version_utils_1 = require("../../../utils/version-utils");
|
6
7
|
const versions_1 = require("../../../utils/versions");
|
7
|
-
function installCommonDependencies(host, options) {
|
8
|
+
async function installCommonDependencies(host, options) {
|
8
9
|
const tasks = [];
|
10
|
+
const reactVersions = await (0, version_utils_1.getReactDependenciesVersionsToInstall)(host);
|
9
11
|
const dependencies = {};
|
10
12
|
const devDependencies = {
|
11
13
|
'@types/node': versions_1.typesNodeVersion,
|
12
|
-
'@types/react':
|
13
|
-
'@types/react-dom':
|
14
|
+
'@types/react': reactVersions['@types/react'],
|
15
|
+
'@types/react-dom': reactVersions['@types/react-dom'],
|
14
16
|
};
|
15
17
|
if (options.bundler !== 'vite') {
|
16
18
|
dependencies['tslib'] = versions_1.tsLibVersion;
|
@@ -190,7 +190,7 @@ async function libraryGeneratorInternal(host, schema) {
|
|
190
190
|
});
|
191
191
|
}
|
192
192
|
if (!options.skipPackageJson) {
|
193
|
-
const installReactTask = (0, install_common_dependencies_1.installCommonDependencies)(host, options);
|
193
|
+
const installReactTask = await (0, install_common_dependencies_1.installCommonDependencies)(host, options);
|
194
194
|
tasks.push(installReactTask);
|
195
195
|
}
|
196
196
|
const routeTask = (0, update_app_routes_1.updateAppRoutes)(host, options);
|
package/src/utils/versions.d.ts
CHANGED
@@ -37,8 +37,8 @@ export declare const tsLibVersion = "^2.3.0";
|
|
37
37
|
export declare const postcssVersion = "8.4.38";
|
38
38
|
export declare const tailwindcssVersion = "3.4.3";
|
39
39
|
export declare const autoprefixerVersion = "10.4.13";
|
40
|
-
export declare const expressVersion = "
|
41
|
-
export declare const typesExpressVersion = "4.17.
|
40
|
+
export declare const expressVersion = "^4.21.2";
|
41
|
+
export declare const typesExpressVersion = "^4.17.21";
|
42
42
|
export declare const isbotVersion = "^3.6.5";
|
43
43
|
export declare const corsVersion = "~2.8.5";
|
44
44
|
export declare const typesCorsVersion = "~2.8.12";
|
package/src/utils/versions.js
CHANGED
@@ -43,8 +43,8 @@ exports.postcssVersion = '8.4.38';
|
|
43
43
|
exports.tailwindcssVersion = '3.4.3';
|
44
44
|
exports.autoprefixerVersion = '10.4.13';
|
45
45
|
// SSR and Module Federation
|
46
|
-
exports.expressVersion = '
|
47
|
-
exports.typesExpressVersion = '4.17.
|
46
|
+
exports.expressVersion = '^4.21.2';
|
47
|
+
exports.typesExpressVersion = '^4.17.21';
|
48
48
|
exports.isbotVersion = '^3.6.5';
|
49
49
|
exports.corsVersion = '~2.8.5';
|
50
50
|
exports.typesCorsVersion = '~2.8.12';
|