@nx/rsbuild 23.3.0-pr.37068.f95e11e → 23.3.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/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
  [![Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](<>)
13
13
  [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
14
14
  [![Join us on the Official Nx Discord Server](https://img.shields.io/discord/1143497901675401286?label=discord)](https://go.nx.dev/community)
15
- [![Nx Sandboxing](https://staging.nx.app/workspaces/62d013ea0852fe0a2df74438/sandbox-badge.svg)](https://nx.dev/docs/features/ci-features/sandboxing)
15
+ [![Hours saved](https://img.shields.io/endpoint?url=https%3A%2F%2Fstaging.nx.app%2Fnx-cloud%2Fbadge%2F62d013ea0852fe0a2df74438%2Fhours-saved.json)](https://nx.dev/nx-cloud)
16
16
 
17
17
  </div>
18
18
 
@@ -11,6 +11,13 @@ const version_utils_1 = require("../../utils/version-utils");
11
11
  const assert_supported_rsbuild_version_1 = require("../../utils/assert-supported-rsbuild-version");
12
12
  function updateDependencies(tree, schema) {
13
13
  const rsbuildVersions = (0, version_utils_1.getRsbuildVersionsForInstalledMajor)(tree);
14
+ if ((0, version_utils_1.getInstalledRsbuildMajorVersion)(tree) === 1) {
15
+ // @rsbuild/core v1 depends on core-js, whose install script only prints a
16
+ // funding message.
17
+ (0, internal_1.acknowledgeBuildScripts)(tree, (0, devkit_1.detectPackageManager)(tree.root), {
18
+ 'core-js': false,
19
+ });
20
+ }
14
21
  return (0, devkit_1.addDependenciesToPackageJson)(tree, {}, {
15
22
  '@nx/rsbuild': versions_1.nxVersion,
16
23
  '@rsbuild/core': rsbuildVersions.rsbuildVersion,
@@ -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
  };
@@ -197,14 +199,14 @@ function normalizeOutputPath(outputPath, projectRoot, workspaceRoot, path) {
197
199
  }
198
200
  else {
199
201
  if ((0, path_1.isAbsolute)(outputPath)) {
200
- return `{workspaceRoot}/${(0, path_1.relative)(workspaceRoot, outputPath)}`;
202
+ return `{workspaceRoot}/${(0, devkit_1.normalizePath)((0, path_1.relative)(workspaceRoot, outputPath))}`;
201
203
  }
202
204
  else {
203
205
  if (outputPath.startsWith('..')) {
204
- return (0, path_1.join)('{workspaceRoot}', (0, path_1.join)(projectRoot, outputPath));
206
+ return (0, devkit_1.joinPathFragments)('{workspaceRoot}', projectRoot, outputPath);
205
207
  }
206
208
  else {
207
- return (0, path_1.join)('{projectRoot}', outputPath);
209
+ return (0, devkit_1.joinPathFragments)('{projectRoot}', outputPath);
208
210
  }
209
211
  }
210
212
  }
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-pr.37068.f95e11e",
4
+ "version": "23.3.0-rc.0",
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-rc.0",
58
+ "@nx/js": "23.3.0-rc.0",
57
59
  "minimatch": "10.2.5",
58
60
  "semver": "^7.6.3",
59
- "@phenomnomnominal/tsquery": "~6.2.0",
60
- "@nx/devkit": "23.3.0-pr.37068.f95e11e",
61
- "@nx/js": "23.3.0-pr.37068.f95e11e"
61
+ "@phenomnomnominal/tsquery": "~6.2.0"
62
62
  },
63
63
  "devDependencies": {
64
- "nx": "23.3.0-pr.37068.f95e11e"
64
+ "nx": "23.3.0-rc.0"
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}}