@nx/rspack 20.3.2 → 20.4.0-beta.1
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/rspack",
|
|
3
3
|
"description": "The Nx Plugin for Rspack contains executors and generators that support building applications using Rspack.",
|
|
4
|
-
"version": "20.
|
|
4
|
+
"version": "20.4.0-beta.1",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"generators": "./generators.json",
|
|
25
25
|
"executors": "./executors.json",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@nx/js": "20.
|
|
28
|
-
"@nx/devkit": "20.
|
|
29
|
-
"@nx/web": "20.
|
|
30
|
-
"@nx/module-federation": "20.
|
|
27
|
+
"@nx/js": "20.4.0-beta.1",
|
|
28
|
+
"@nx/devkit": "20.4.0-beta.1",
|
|
29
|
+
"@nx/web": "20.4.0-beta.1",
|
|
30
|
+
"@nx/module-federation": "20.4.0-beta.1",
|
|
31
31
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
32
32
|
"@rspack/core": "^1.1.5",
|
|
33
33
|
"@rspack/dev-server": "^1.0.9",
|
|
@@ -36,6 +36,16 @@ async function rspackInitGenerator(tree, schema) {
|
|
|
36
36
|
'rspack-preview',
|
|
37
37
|
'preview-rspack',
|
|
38
38
|
],
|
|
39
|
+
buildDepsTargetName: [
|
|
40
|
+
'build-deps',
|
|
41
|
+
'rspack:build-deps',
|
|
42
|
+
'rspack-build-deps',
|
|
43
|
+
],
|
|
44
|
+
watchDepsTargetName: [
|
|
45
|
+
'watch-deps',
|
|
46
|
+
'rspack:watch-deps',
|
|
47
|
+
'rspack-watch-deps',
|
|
48
|
+
],
|
|
39
49
|
}, schema.updatePackageScripts);
|
|
40
50
|
}
|
|
41
51
|
const jsInitTask = await (0, js_1.initGenerator)(tree, {
|
package/src/plugins/plugin.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export interface RspackPluginOptions {
|
|
|
4
4
|
serveTargetName?: string;
|
|
5
5
|
serveStaticTargetName?: string;
|
|
6
6
|
previewTargetName?: string;
|
|
7
|
+
buildDepsTargetName?: string;
|
|
8
|
+
watchDepsTargetName?: string;
|
|
7
9
|
}
|
|
8
10
|
export declare const createDependencies: CreateDependencies;
|
|
9
11
|
export declare const createNodesV2: CreateNodesV2<RspackPluginOptions>;
|
package/src/plugins/plugin.js
CHANGED
|
@@ -12,6 +12,8 @@ const cache_directory_1 = require("nx/src/utils/cache-directory");
|
|
|
12
12
|
const path_1 = require("path");
|
|
13
13
|
const read_rspack_options_1 = require("../utils/read-rspack-options");
|
|
14
14
|
const resolve_user_defined_rspack_config_1 = require("../utils/resolve-user-defined-rspack-config");
|
|
15
|
+
const util_1 = require("@nx/js/src/plugins/typescript/util");
|
|
16
|
+
const pmc = (0, devkit_1.getPackageManagerCommand)();
|
|
15
17
|
function readTargetsCache(cachePath) {
|
|
16
18
|
return (0, fs_1.existsSync)(cachePath) ? (0, devkit_1.readJsonFile)(cachePath) : {};
|
|
17
19
|
}
|
|
@@ -125,6 +127,7 @@ async function createRspackTargets(configFilePath, projectRoot, options, context
|
|
|
125
127
|
'@nx/js:typescript-sync',
|
|
126
128
|
];
|
|
127
129
|
}
|
|
130
|
+
(0, util_1.addBuildAndWatchDepsTargets)(context.workspaceRoot, projectRoot, targets, options, pmc);
|
|
128
131
|
return { targets, metadata: {} };
|
|
129
132
|
}
|
|
130
133
|
function normalizeOptions(options) {
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -4,11 +4,7 @@ export declare const rspackDevServerVersion = "1.0.9";
|
|
|
4
4
|
export declare const rspackPluginMinifyVersion = "^0.7.5";
|
|
5
5
|
export declare const rspackPluginReactRefreshVersion = "^1.0.0";
|
|
6
6
|
export declare const lessLoaderVersion = "~11.1.3";
|
|
7
|
-
export declare const reactVersion = "~18.2.0";
|
|
8
7
|
export declare const reactRefreshVersion = "~0.14.0";
|
|
9
|
-
export declare const reactDomVersion = "~18.2.0";
|
|
10
|
-
export declare const typesReactVersion = "~18.0.28";
|
|
11
|
-
export declare const typesReactDomVersion = "~18.0.10";
|
|
12
8
|
export declare const nestjsCommonVersion = "~9.0.0";
|
|
13
9
|
export declare const nestjsCoreVersion = "~9.0.0";
|
|
14
10
|
export declare const nestjsPlatformExpressVersion = "~9.0.0";
|
package/src/utils/versions.js
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.eslintPluginReactHooksVersion = exports.eslintPluginReactVersion = exports.eslintPluginJsxA11yVersion = exports.eslintPluginImportVersion = exports.stylusVersion = exports.sassVersion = exports.lessVersion = exports.nestjsMicroservicesVersion = exports.nestjsPlatformExpressVersion = exports.nestjsCoreVersion = exports.nestjsCommonVersion = exports.
|
|
3
|
+
exports.eslintPluginReactHooksVersion = exports.eslintPluginReactVersion = exports.eslintPluginJsxA11yVersion = exports.eslintPluginImportVersion = exports.stylusVersion = exports.sassVersion = exports.lessVersion = exports.nestjsMicroservicesVersion = exports.nestjsPlatformExpressVersion = exports.nestjsCoreVersion = exports.nestjsCommonVersion = exports.reactRefreshVersion = exports.lessLoaderVersion = exports.rspackPluginReactRefreshVersion = exports.rspackPluginMinifyVersion = exports.rspackDevServerVersion = exports.rspackCoreVersion = exports.nxVersion = void 0;
|
|
4
4
|
exports.nxVersion = require('../../package.json').version;
|
|
5
5
|
exports.rspackCoreVersion = '^1.1.5';
|
|
6
6
|
exports.rspackDevServerVersion = '1.0.9';
|
|
7
7
|
exports.rspackPluginMinifyVersion = '^0.7.5';
|
|
8
8
|
exports.rspackPluginReactRefreshVersion = '^1.0.0';
|
|
9
9
|
exports.lessLoaderVersion = '~11.1.3';
|
|
10
|
-
exports.reactVersion = '~18.2.0';
|
|
11
10
|
exports.reactRefreshVersion = '~0.14.0';
|
|
12
|
-
exports.reactDomVersion = '~18.2.0';
|
|
13
|
-
exports.typesReactVersion = '~18.0.28';
|
|
14
|
-
exports.typesReactDomVersion = '~18.0.10';
|
|
15
11
|
exports.nestjsCommonVersion = '~9.0.0';
|
|
16
12
|
exports.nestjsCoreVersion = '~9.0.0';
|
|
17
13
|
exports.nestjsPlatformExpressVersion = '~9.0.0';
|