@nx/rsbuild 23.3.0-beta.4 → 23.3.0-beta.6

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
- const buildOutputPath = normalizeOutputPath(rsbuildConfig?.output?.distPath?.root, projectRoot, workspaceRoot, 'dist');
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",
4
+ "version": "23.3.0-beta.6",
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.6",
58
+ "@nx/js": "23.3.0-beta.6",
57
59
  "minimatch": "10.2.5",
58
60
  "semver": "^7.6.3",
59
- "@phenomnomnominal/tsquery": "~6.2.0",
60
- "@nx/js": "23.3.0-beta.4",
61
- "@nx/devkit": "23.3.0-beta.4"
61
+ "@phenomnomnominal/tsquery": "~6.2.0"
62
62
  },
63
63
  "devDependencies": {
64
- "nx": "23.3.0-beta.4"
64
+ "nx": "23.3.0-beta.6"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "@rsbuild/core": "^1.0.0 || ^2.0.0"
@@ -0,0 +1,18 @@
1
+ <p style="text-align: center;">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
+ <img alt="Nx - Smart Monorepos · Fast Builds" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5
+ </picture>
6
+ </p>
7
+
8
+ {{links}}
9
+
10
+ <hr>
11
+
12
+ # Nx: Smart Monorepos · Fast Builds
13
+
14
+ Get to green PRs in half the time. Nx optimizes your builds, scales your CI, and fixes failed PRs. Built for developers and AI agents.
15
+
16
+ This package is a [Rsbuild plugin for Nx](https://nx.dev/nx-api/rsbuild).
17
+
18
+ {{content}}