@nx/rsbuild 23.3.0-beta.5 → 23.3.0-beta.7
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.
|
@@ -181,7 +181,9 @@ function getOutputs(rsbuildConfig, projectRoot, workspaceRoot) {
|
|
|
181
181
|
// `output.distPath.root` is the directory Rsbuild emits the build into, so
|
|
182
182
|
// it is the build output as-is. (Don't take its `dirname` - that points at
|
|
183
183
|
// the parent directory, which can capture sibling projects' outputs.)
|
|
184
|
-
|
|
184
|
+
// Rsbuild 2 also accepts `distPath` as a string, shorthand for `distPath.root`.
|
|
185
|
+
const distPath = rsbuildConfig?.output?.distPath;
|
|
186
|
+
const buildOutputPath = normalizeOutputPath(typeof distPath === 'string' ? distPath : distPath?.root, projectRoot, workspaceRoot, 'dist');
|
|
185
187
|
return {
|
|
186
188
|
buildOutputs: [buildOutputPath],
|
|
187
189
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/rsbuild",
|
|
3
3
|
"description": "The Nx Plugin for Rsbuild contains an Nx plugin, executors and utilities that support building applications using Rsbuild.",
|
|
4
|
-
"version": "23.3.0-beta.
|
|
4
|
+
"version": "23.3.0-beta.7",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
"executors": "./executors.json",
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"tslib": "^2.3.0",
|
|
57
|
-
"@nx/devkit": "23.3.0-beta.
|
|
58
|
-
"@nx/js": "23.3.0-beta.
|
|
57
|
+
"@nx/devkit": "23.3.0-beta.7",
|
|
58
|
+
"@nx/js": "23.3.0-beta.7",
|
|
59
59
|
"minimatch": "10.2.5",
|
|
60
60
|
"semver": "^7.6.3",
|
|
61
61
|
"@phenomnomnominal/tsquery": "~6.2.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"nx": "23.3.0-beta.
|
|
64
|
+
"nx": "23.3.0-beta.7"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@rsbuild/core": "^1.0.0 || ^2.0.0"
|