@nx/rspack 21.6.1-beta.0 → 21.6.1-beta.2
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": "21.6.1-beta.
|
|
4
|
+
"version": "21.6.1-beta.2",
|
|
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/devkit": "21.6.1-beta.
|
|
28
|
-
"@nx/js": "21.6.1-beta.
|
|
29
|
-
"@nx/module-federation": "21.6.1-beta.
|
|
30
|
-
"@nx/web": "21.6.1-beta.
|
|
27
|
+
"@nx/devkit": "21.6.1-beta.2",
|
|
28
|
+
"@nx/js": "21.6.1-beta.2",
|
|
29
|
+
"@nx/module-federation": "21.6.1-beta.2",
|
|
30
|
+
"@nx/web": "21.6.1-beta.2",
|
|
31
31
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
32
32
|
"@rspack/core": "^1.5.0",
|
|
33
33
|
"@rspack/dev-server": "^1.1.4",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"webpack-node-externals": "^3.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"nx": "21.6.1-beta.
|
|
61
|
-
"@nx/nest": "21.6.1-beta.
|
|
60
|
+
"nx": "21.6.1-beta.2",
|
|
61
|
+
"@nx/nest": "21.6.1-beta.2"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@module-federation/enhanced": "^0.18.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rspack.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/rspack/src/executors/rspack/rspack.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAU,MAAM,YAAY,CAAC;AAUrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,wBAA+B,WAAW,CACxC,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,eAAe;
|
|
1
|
+
{"version":3,"file":"rspack.impl.d.ts","sourceRoot":"","sources":["../../../../../../packages/rspack/src/executors/rspack/rspack.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAU,MAAM,YAAY,CAAC;AAUrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,wBAA+B,WAAW,CACxC,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,eAAe;aAiCb,OAAO;cACN,MAAM;cA+EnB"}
|
|
@@ -23,11 +23,12 @@ async function* runExecutor(options, context) {
|
|
|
23
23
|
if (!normalizedOptions.skipTypeChecking) {
|
|
24
24
|
await executeTypeCheck(normalizedOptions, context);
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
if (options.deleteOutputPath !== false) {
|
|
27
|
+
(0, fs_1.rmSync)((0, path_1.join)(context.root, normalizedOptions.outputPath), {
|
|
28
|
+
force: true,
|
|
29
|
+
recursive: true,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
31
32
|
const compiler = await (0, create_compiler_1.createCompiler)(normalizedOptions, context);
|
|
32
33
|
const iterable = (0, async_iterable_1.createAsyncIterable)(async ({ next, done }) => {
|
|
33
34
|
const watch = (compiler instanceof core_1.Compiler
|
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
"description": "The platform to target (e.g. web, node).",
|
|
11
11
|
"enum": ["web", "node"]
|
|
12
12
|
},
|
|
13
|
+
"deleteOutputPath": {
|
|
14
|
+
"type": "boolean",
|
|
15
|
+
"description": "Delete the output path before building.",
|
|
16
|
+
"default": true
|
|
17
|
+
},
|
|
13
18
|
"main": {
|
|
14
19
|
"type": "string",
|
|
15
20
|
"description": "The main entry file."
|