@nx/rsbuild 23.0.0-beta.21 → 23.0.0-beta.23

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/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { createNodesV2, RsbuildPluginOptions } from './src/plugins/plugin';
1
+ export { createNodes, createNodesV2, RsbuildPluginOptions, } from './src/plugins/plugin';
2
2
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/rsbuild/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/rsbuild/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,aAAa,EACb,oBAAoB,GACrB,MAAM,sBAAsB,CAAC"}
package/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createNodesV2 = void 0;
3
+ exports.createNodesV2 = exports.createNodes = void 0;
4
4
  var plugin_1 = require("./src/plugins/plugin");
5
+ Object.defineProperty(exports, "createNodes", { enumerable: true, get: function () { return plugin_1.createNodes; } });
5
6
  Object.defineProperty(exports, "createNodesV2", { enumerable: true, get: function () { return plugin_1.createNodesV2; } });
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.0.0-beta.21",
4
+ "version": "23.0.0-beta.23",
5
5
  "type": "commonjs",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -30,14 +30,14 @@
30
30
  "executors": "./executors.json",
31
31
  "dependencies": {
32
32
  "tslib": "^2.3.0",
33
- "@nx/devkit": "23.0.0-beta.21",
34
- "@nx/js": "23.0.0-beta.21",
33
+ "@nx/devkit": "23.0.0-beta.23",
34
+ "@nx/js": "23.0.0-beta.23",
35
35
  "minimatch": "10.2.5",
36
36
  "semver": "^7.6.3",
37
37
  "@phenomnomnominal/tsquery": "~6.2.0"
38
38
  },
39
39
  "devDependencies": {
40
- "nx": "23.0.0-beta.21"
40
+ "nx": "23.0.0-beta.23"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@rsbuild/core": "^1.0.0"
@@ -26,7 +26,7 @@ async function initGeneratorInternal(tree, schema) {
26
26
  nxJson.useInferencePlugins !== false;
27
27
  schema.addPlugin ??= addPluginDefault;
28
28
  if (schema.addPlugin) {
29
- await (0, internal_1.addPlugin)(tree, await (0, devkit_1.createProjectGraphAsync)(), '@nx/rsbuild', plugin_1.createNodesV2, {
29
+ await (0, internal_1.addPlugin)(tree, await (0, devkit_1.createProjectGraphAsync)(), '@nx/rsbuild', plugin_1.createNodes, {
30
30
  buildTargetName: ['build', 'rsbuild:build', 'rsbuild-build'],
31
31
  devTargetName: ['dev', 'rsbuild:dev', 'rsbuild-dev'],
32
32
  previewTargetName: ['preview', 'rsbuild:preview', 'rsbuild-preview'],
@@ -1,4 +1,4 @@
1
- import { CreateNodesV2 } from '@nx/devkit';
1
+ import { CreateNodes } from '@nx/devkit';
2
2
  export interface RsbuildPluginOptions {
3
3
  buildTargetName?: string;
4
4
  devTargetName?: string;
@@ -8,5 +8,9 @@ export interface RsbuildPluginOptions {
8
8
  buildDepsTargetName?: string;
9
9
  watchDepsTargetName?: string;
10
10
  }
11
- export declare const createNodesV2: CreateNodesV2<RsbuildPluginOptions>;
11
+ export declare const createNodes: CreateNodes<RsbuildPluginOptions>;
12
+ /**
13
+ * @deprecated Use {@link createNodes} instead. This will be removed in Nx 24.
14
+ */
15
+ export declare const createNodesV2: CreateNodes<RsbuildPluginOptions>;
12
16
  //# sourceMappingURL=plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/rsbuild/src/plugins/plugin.ts"],"names":[],"mappings":"AAKA,OAAO,EAKL,aAAa,EAMd,MAAM,YAAY,CAAC;AAYpB,MAAM,WAAW,oBAAoB;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAMD,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,oBAAoB,CAiE7D,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/rsbuild/src/plugins/plugin.ts"],"names":[],"mappings":"AAKA,OAAO,EAKL,WAAW,EAMZ,MAAM,YAAY,CAAC;AAYpB,MAAM,WAAW,oBAAoB;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAMD,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,oBAAoB,CAiEzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,mCAAc,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createNodesV2 = void 0;
3
+ exports.createNodesV2 = exports.createNodes = void 0;
4
4
  const internal_1 = require("@nx/devkit/internal");
5
5
  const devkit_1 = require("@nx/devkit");
6
6
  const file_hasher_1 = require("nx/src/hasher/file-hasher");
@@ -11,7 +11,7 @@ const fs_1 = require("fs");
11
11
  const path_1 = require("path");
12
12
  const minimatch_1 = require("minimatch");
13
13
  const rsbuildConfigGlob = '**/rsbuild.config.{js,ts,mjs,mts,cjs,cts}';
14
- exports.createNodesV2 = [
14
+ exports.createNodes = [
15
15
  rsbuildConfigGlob,
16
16
  async (configFilePaths, options, context) => {
17
17
  const optionsHash = (0, file_hasher_1.hashObject)(options);
@@ -50,6 +50,10 @@ exports.createNodesV2 = [
50
50
  }
51
51
  },
52
52
  ];
53
+ /**
54
+ * @deprecated Use {@link createNodes} instead. This will be removed in Nx 24.
55
+ */
56
+ exports.createNodesV2 = exports.createNodes;
53
57
  async function createNodesInternal(configFilePath, normalizedOptions, context, targetsCache, isUsingTsSolutionSetup, pmc, tsConfigFiles, hash) {
54
58
  const projectRoot = (0, path_1.dirname)(configFilePath);
55
59
  if (!targetsCache.has(hash)) {