@nx/rsbuild 23.0.0-beta.22 → 23.0.0-beta.24

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.
Files changed (61) hide show
  1. package/{config-utils.d.ts → dist/config-utils.d.ts} +0 -1
  2. package/{generators.d.ts → dist/generators.d.ts} +0 -1
  3. package/dist/index.d.ts +1 -0
  4. package/{index.js → dist/index.js} +2 -1
  5. package/{src → dist/src}/generators/configuration/configuration.d.ts +0 -1
  6. package/{src → dist/src}/generators/configuration/lib/index.d.ts +0 -1
  7. package/{src → dist/src}/generators/configuration/lib/normalize-options.d.ts +0 -1
  8. package/{src → dist/src}/generators/init/init.d.ts +0 -1
  9. package/{src → dist/src}/generators/init/init.js +1 -1
  10. package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.d.ts +9 -0
  11. package/dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.js +134 -0
  12. package/dist/src/plugins/plugin.d.ts +15 -0
  13. package/{src → dist/src}/plugins/plugin.js +6 -2
  14. package/{src → dist/src}/utils/add-build-plugin.d.ts +0 -1
  15. package/{src → dist/src}/utils/assert-supported-rsbuild-version.d.ts +0 -1
  16. package/{src → dist/src}/utils/ast-utils.d.ts +0 -1
  17. package/{src → dist/src}/utils/e2e-web-server-info-utils.d.ts +0 -1
  18. package/{src → dist/src}/utils/has-rsbuild-plugin.d.ts +0 -1
  19. package/{src → dist/src}/utils/indent-by.d.ts +0 -1
  20. package/{src → dist/src}/utils/version-utils.d.ts +0 -1
  21. package/{src → dist/src}/utils/versions.d.ts +0 -1
  22. package/{src → dist/src}/utils/versions.js +2 -1
  23. package/generators.json +4 -4
  24. package/migrations.json +10 -1
  25. package/package.json +53 -16
  26. package/config-utils.d.ts.map +0 -1
  27. package/generators.d.ts.map +0 -1
  28. package/index.d.ts +0 -2
  29. package/index.d.ts.map +0 -1
  30. package/src/generators/configuration/configuration.d.ts.map +0 -1
  31. package/src/generators/configuration/lib/index.d.ts.map +0 -1
  32. package/src/generators/configuration/lib/normalize-options.d.ts.map +0 -1
  33. package/src/generators/init/init.d.ts.map +0 -1
  34. package/src/plugins/plugin.d.ts +0 -12
  35. package/src/plugins/plugin.d.ts.map +0 -1
  36. package/src/utils/add-build-plugin.d.ts.map +0 -1
  37. package/src/utils/assert-supported-rsbuild-version.d.ts.map +0 -1
  38. package/src/utils/ast-utils.d.ts.map +0 -1
  39. package/src/utils/e2e-web-server-info-utils.d.ts.map +0 -1
  40. package/src/utils/has-rsbuild-plugin.d.ts.map +0 -1
  41. package/src/utils/indent-by.d.ts.map +0 -1
  42. package/src/utils/version-utils.d.ts.map +0 -1
  43. package/src/utils/versions.d.ts.map +0 -1
  44. /package/{LICENSE → dist/LICENSE} +0 -0
  45. /package/{config-utils.js → dist/config-utils.js} +0 -0
  46. /package/{generators.js → dist/generators.js} +0 -0
  47. /package/{src → dist/src}/generators/configuration/configuration.js +0 -0
  48. /package/{src → dist/src}/generators/configuration/files/rsbuild.config.ts__tpl__ +0 -0
  49. /package/{src → dist/src}/generators/configuration/lib/index.js +0 -0
  50. /package/{src → dist/src}/generators/configuration/lib/normalize-options.js +0 -0
  51. /package/{src → dist/src}/generators/configuration/schema.d.ts +0 -0
  52. /package/{src → dist/src}/generators/configuration/schema.json +0 -0
  53. /package/{src → dist/src}/generators/init/schema.d.ts +0 -0
  54. /package/{src → dist/src}/generators/init/schema.json +0 -0
  55. /package/{src → dist/src}/utils/add-build-plugin.js +0 -0
  56. /package/{src → dist/src}/utils/assert-supported-rsbuild-version.js +0 -0
  57. /package/{src → dist/src}/utils/ast-utils.js +0 -0
  58. /package/{src → dist/src}/utils/e2e-web-server-info-utils.js +0 -0
  59. /package/{src → dist/src}/utils/has-rsbuild-plugin.js +0 -0
  60. /package/{src → dist/src}/utils/indent-by.js +0 -0
  61. /package/{src → dist/src}/utils/version-utils.js +0 -0
@@ -3,4 +3,3 @@ export { addCopyAssets, addHtmlTemplatePath, addExperimentalSwcPlugin, addSource
3
3
  export * as versions from './src/utils/versions';
4
4
  export { getRsbuildE2EWebServerInfo } from './src/utils/e2e-web-server-info-utils';
5
5
  export { hasRsbuildPlugin } from './src/utils/has-rsbuild-plugin';
6
- //# sourceMappingURL=config-utils.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export { configurationGenerator } from './src/generators/configuration/configuration';
2
2
  export { initGenerator } from './src/generators/init/init';
3
- //# sourceMappingURL=generators.d.ts.map
@@ -0,0 +1 @@
1
+ export { createNodes, createNodesV2, RsbuildPluginOptions, } from './src/plugins/plugin';
@@ -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; } });
@@ -2,4 +2,3 @@ import { GeneratorCallback, type Tree } from '@nx/devkit';
2
2
  import { type Schema } from './schema';
3
3
  export declare function configurationGenerator(tree: Tree, schema: Schema): Promise<GeneratorCallback>;
4
4
  export default configurationGenerator;
5
- //# sourceMappingURL=configuration.d.ts.map
@@ -1,2 +1 @@
1
1
  export * from './normalize-options';
2
- //# sourceMappingURL=index.d.ts.map
@@ -8,4 +8,3 @@ export interface NormalizedOptions extends Schema {
8
8
  projectRoot: string;
9
9
  }
10
10
  export declare function normalizeOptions(tree: Tree, schema: Schema, project: ProjectConfiguration): Promise<NormalizedOptions>;
11
- //# sourceMappingURL=normalize-options.d.ts.map
@@ -4,4 +4,3 @@ export declare function updateDependencies(tree: Tree, schema: InitGeneratorSche
4
4
  export declare function initGenerator(tree: Tree, schema: InitGeneratorSchema): Promise<GeneratorCallback>;
5
5
  export declare function initGeneratorInternal(tree: Tree, schema: InitGeneratorSchema): Promise<GeneratorCallback>;
6
6
  export default initGenerator;
7
- //# sourceMappingURL=init.d.ts.map
@@ -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'],
@@ -0,0 +1,9 @@
1
+ import { type Tree } from '@nx/devkit';
2
+ export default function migrateCreateNodesV2ToCreateNodes(tree: Tree): Promise<void>;
3
+ /**
4
+ * Rewrites named imports and re-exports of `createNodesV2` to `createNodes`
5
+ * when they come from one of the given module specifiers. Only the named
6
+ * bindings are touched — the module specifier, the `import`/`export` keyword,
7
+ * any `type` modifier, and any default import are left untouched.
8
+ */
9
+ export declare function rewriteCreateNodesV2Imports(source: string, specifiers: ReadonlySet<string>): string;
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = migrateCreateNodesV2ToCreateNodes;
4
+ exports.rewriteCreateNodesV2Imports = rewriteCreateNodesV2Imports;
5
+ const devkit_1 = require("@nx/devkit");
6
+ const TS_EXTENSIONS = ['.ts', '.tsx', '.cts', '.mts'];
7
+ const DEPRECATED_NAME = 'createNodesV2';
8
+ const CANONICAL_NAME = 'createNodes';
9
+ // Module specifiers from which `@nx/rsbuild` publicly exposes `createNodesV2`.
10
+ // A named import or re-export of `createNodesV2` from one of these is rewritten
11
+ // to the canonical `createNodes` export.
12
+ const TARGET_SPECIFIERS = new Set(['@nx/rsbuild']);
13
+ let ts;
14
+ async function migrateCreateNodesV2ToCreateNodes(tree) {
15
+ let touchedCount = 0;
16
+ (0, devkit_1.visitNotIgnoredFiles)(tree, '.', (filePath) => {
17
+ if (!TS_EXTENSIONS.some((ext) => filePath.endsWith(ext))) {
18
+ return;
19
+ }
20
+ const original = tree.read(filePath, 'utf-8');
21
+ if (!original || !original.includes(DEPRECATED_NAME)) {
22
+ return;
23
+ }
24
+ const updated = rewriteCreateNodesV2Imports(original, TARGET_SPECIFIERS);
25
+ if (updated !== original) {
26
+ tree.write(filePath, updated);
27
+ touchedCount += 1;
28
+ }
29
+ });
30
+ if (touchedCount > 0) {
31
+ devkit_1.logger.info(`Renamed \`${DEPRECATED_NAME}\` imports to \`${CANONICAL_NAME}\` in ${touchedCount} file(s).`);
32
+ }
33
+ await (0, devkit_1.formatFiles)(tree);
34
+ }
35
+ /**
36
+ * Rewrites named imports and re-exports of `createNodesV2` to `createNodes`
37
+ * when they come from one of the given module specifiers. Only the named
38
+ * bindings are touched — the module specifier, the `import`/`export` keyword,
39
+ * any `type` modifier, and any default import are left untouched.
40
+ */
41
+ function rewriteCreateNodesV2Imports(source, specifiers) {
42
+ ts ??= (0, devkit_1.ensurePackage)('typescript', '*');
43
+ const sourceFile = ts.createSourceFile('tmp.ts', source, ts.ScriptTarget.Latest,
44
+ /* setParentNodes */ true, ts.ScriptKind.TSX);
45
+ const changes = [];
46
+ for (const stmt of sourceFile.statements) {
47
+ if (ts.isImportDeclaration(stmt)) {
48
+ collectImportRewrite(sourceFile, stmt, specifiers, changes);
49
+ }
50
+ else if (ts.isExportDeclaration(stmt)) {
51
+ collectExportRewrite(sourceFile, stmt, specifiers, changes);
52
+ }
53
+ }
54
+ return changes.length > 0 ? (0, devkit_1.applyChangesToString)(source, changes) : source;
55
+ }
56
+ function isTargetSpecifier(node, specifiers) {
57
+ return ts.isStringLiteral(node) && specifiers.has(node.text);
58
+ }
59
+ function collectImportRewrite(sourceFile, stmt, specifiers, changes) {
60
+ if (!isTargetSpecifier(stmt.moduleSpecifier, specifiers)) {
61
+ return;
62
+ }
63
+ const namedBindings = stmt.importClause?.namedBindings;
64
+ // Only `import { ... }` carries renameable named bindings. `import x`,
65
+ // `import * as ns`, and side-effect imports reference the module wholesale
66
+ // and keep working through the `createNodesV2` runtime alias, so we leave
67
+ // them be. A mixed `import def, { createNodesV2 }` still has its named
68
+ // bindings rewritten below — the default binding is untouched.
69
+ if (!namedBindings || !ts.isNamedImports(namedBindings)) {
70
+ return;
71
+ }
72
+ rewriteNamedBindings(sourceFile, namedBindings, changes);
73
+ }
74
+ function collectExportRewrite(sourceFile, stmt, specifiers, changes) {
75
+ if (!stmt.moduleSpecifier ||
76
+ !isTargetSpecifier(stmt.moduleSpecifier, specifiers)) {
77
+ return;
78
+ }
79
+ // `export { ... } from '...'` can be rewritten; `export * from '...'` has no
80
+ // named bindings to rename.
81
+ if (!stmt.exportClause || !ts.isNamedExports(stmt.exportClause)) {
82
+ return;
83
+ }
84
+ rewriteNamedBindings(sourceFile, stmt.exportClause, changes);
85
+ }
86
+ /**
87
+ * Re-renders the `{ ... }` of a named import/export, renaming any
88
+ * `createNodesV2` specifier to `createNodes`. If renaming would collide with a
89
+ * `createNodes` that is already present (e.g. `{ createNodes, createNodesV2 }`),
90
+ * the duplicate is dropped. Returns without recording a change when the binding
91
+ * list contains no `createNodesV2`.
92
+ */
93
+ function rewriteNamedBindings(sourceFile, namedBindings, changes) {
94
+ const elements = namedBindings.elements;
95
+ const hasDeprecated = elements.some((el) => (el.propertyName ?? el.name).text === DEPRECATED_NAME);
96
+ if (!hasDeprecated) {
97
+ return;
98
+ }
99
+ const seen = new Set();
100
+ const rendered = [];
101
+ for (const el of elements) {
102
+ const text = renderSpecifier(el);
103
+ if (!seen.has(text)) {
104
+ seen.add(text);
105
+ rendered.push(text);
106
+ }
107
+ }
108
+ const start = namedBindings.getStart(sourceFile);
109
+ changes.push({
110
+ type: devkit_1.ChangeType.Delete,
111
+ start,
112
+ length: namedBindings.getEnd() - start,
113
+ }, {
114
+ type: devkit_1.ChangeType.Insert,
115
+ index: start,
116
+ text: `{ ${rendered.join(', ')} }`,
117
+ });
118
+ }
119
+ function renderSpecifier(el) {
120
+ const typePrefix = el.isTypeOnly ? 'type ' : '';
121
+ const rename = (name) => name === DEPRECATED_NAME ? CANONICAL_NAME : name;
122
+ // `{ name }` — no alias, so the local binding follows the rename.
123
+ if (!el.propertyName) {
124
+ return `${typePrefix}${rename(el.name.text)}`;
125
+ }
126
+ // `{ propertyName as name }` — only the imported (left) side is renamed; the
127
+ // local alias is preserved. A now-redundant alias such as
128
+ // `createNodesV2 as createNodes` collapses to `createNodes`.
129
+ const canonicalImported = rename(el.propertyName.text);
130
+ const localName = el.name.text;
131
+ return canonicalImported === localName
132
+ ? `${typePrefix}${localName}`
133
+ : `${typePrefix}${canonicalImported} as ${localName}`;
134
+ }
@@ -0,0 +1,15 @@
1
+ import { CreateNodes } from '@nx/devkit';
2
+ export interface RsbuildPluginOptions {
3
+ buildTargetName?: string;
4
+ devTargetName?: string;
5
+ previewTargetName?: string;
6
+ inspectTargetName?: string;
7
+ typecheckTargetName?: string;
8
+ buildDepsTargetName?: string;
9
+ watchDepsTargetName?: string;
10
+ }
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>;
@@ -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)) {
@@ -8,4 +8,3 @@ import { type Tree } from '@nx/devkit';
8
8
  * @param options - Optional but should be defined as a string such as `property: {foo: 'bar'}`
9
9
  */
10
10
  export declare function addBuildPlugin(tree: Tree, pathToConfigFile: string, importPath: string, pluginName: string, options?: string): void;
11
- //# sourceMappingURL=add-build-plugin.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { type Tree } from '@nx/devkit';
2
2
  export declare function assertSupportedRsbuildVersion(tree: Tree): void;
3
- //# sourceMappingURL=assert-supported-rsbuild-version.d.ts.map
@@ -3,4 +3,3 @@ export declare function addHtmlTemplatePath(tree: Tree, configFilePath: string,
3
3
  export declare function addCopyAssets(tree: Tree, configFilePath: string, from: string): void;
4
4
  export declare function addExperimentalSwcPlugin(tree: Tree, configFilePath: string, pluginName: string): void;
5
5
  export declare function addSourceDefine(tree: Tree, configFilePath: string, key: string, value: string): void;
6
- //# sourceMappingURL=ast-utils.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { type Tree } from '@nx/devkit';
2
2
  export declare function getRsbuildE2EWebServerInfo(tree: Tree, projectName: string, configFilePath: string, isPluginBeingAdded: boolean, e2ePortOverride?: number): Promise<import("@nx/devkit/internal").E2EWebServerDetails>;
3
- //# sourceMappingURL=e2e-web-server-info-utils.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { type Tree } from '@nx/devkit';
2
2
  export declare function hasRsbuildPlugin(tree: Tree, projectPath?: string): boolean;
3
- //# sourceMappingURL=has-rsbuild-plugin.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function indentBy(tabNumber: number): (str: string) => string;
2
- //# sourceMappingURL=indent-by.d.ts.map
@@ -25,4 +25,3 @@ export declare function getRsbuildVersionsForInstalledMajor(tree: Tree): {
25
25
  rsbuildPluginVueVersion: string;
26
26
  rsbuildPluginSassVersion: string;
27
27
  };
28
- //# sourceMappingURL=version-utils.d.ts.map
@@ -19,4 +19,3 @@ export declare const rsbuildPluginReactVersion: string;
19
19
  export declare const rsbuildPluginVueVersion: string;
20
20
  export declare const rsbuildPluginSassVersion: string;
21
21
  export {};
22
- //# sourceMappingURL=versions.d.ts.map
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.rsbuildPluginSassVersion = exports.rsbuildPluginVueVersion = exports.rsbuildPluginReactVersion = exports.rsbuildVersion = exports.backwardCompatibleRsbuildVersions = exports.latestRsbuildVersions = exports.supportedRsbuildMajorVersions = exports.minSupportedRsbuildVersion = exports.nxVersion = void 0;
4
- exports.nxVersion = require('../../package.json').version;
4
+ const path_1 = require("path");
5
+ exports.nxVersion = require((0, path_1.join)('@nx/rsbuild', 'package.json')).version;
5
6
  exports.minSupportedRsbuildVersion = '1.0.0';
6
7
  // Supported `@rsbuild/core` majors. Currently v1 only — v2 ships as pure
7
8
  // ESM, which @nx/rsbuild (CommonJS) cannot consume without a deeper
package/generators.json CHANGED
@@ -3,15 +3,15 @@
3
3
  "version": "0.1",
4
4
  "generators": {
5
5
  "init": {
6
- "factory": "./src/generators/init/init#initGeneratorInternal",
7
- "schema": "./src/generators/init/schema.json",
6
+ "factory": "./dist/src/generators/init/init#initGeneratorInternal",
7
+ "schema": "./dist/src/generators/init/schema.json",
8
8
  "description": "Initialize the `@nx/rsbuild` plugin.",
9
9
  "aliases": ["ng-add"],
10
10
  "hidden": true
11
11
  },
12
12
  "configuration": {
13
- "factory": "./src/generators/configuration/configuration",
14
- "schema": "./src/generators/configuration/schema.json",
13
+ "factory": "./dist/src/generators/configuration/configuration",
14
+ "schema": "./dist/src/generators/configuration/schema.json",
15
15
  "description": "Add an Rsbuild configuration for the provided project."
16
16
  }
17
17
  }
package/migrations.json CHANGED
@@ -1 +1,10 @@
1
- {}
1
+ {
2
+ "generators": {
3
+ "update-23-0-0-migrate-create-nodes-v2-import": {
4
+ "version": "23.0.0-beta.24",
5
+ "description": "Rename imports of `createNodesV2` from `@nx/rsbuild` to the canonical `createNodes` export.",
6
+ "implementation": "./dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes",
7
+ "documentation": "./dist/src/migrations/update-23-0-0/migrate-create-nodes-v2-to-create-nodes.md"
8
+ }
9
+ }
10
+ }
package/package.json CHANGED
@@ -1,8 +1,16 @@
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.22",
4
+ "version": "23.0.0-beta.24",
5
5
  "type": "commonjs",
6
+ "files": [
7
+ "dist",
8
+ "!dist/tsconfig.tsbuildinfo",
9
+ "!dist/spec",
10
+ "migrations.json",
11
+ "executors.json",
12
+ "generators.json"
13
+ ],
6
14
  "publishConfig": {
7
15
  "access": "public"
8
16
  },
@@ -25,19 +33,36 @@
25
33
  "author": "Colum Ferry",
26
34
  "license": "MIT",
27
35
  "homepage": "https://nx.dev",
28
- "main": "index.js",
36
+ "main": "./dist/index.js",
37
+ "types": "./dist/index.d.ts",
38
+ "typesVersions": {
39
+ "*": {
40
+ "generators": [
41
+ "dist/generators.d.ts"
42
+ ],
43
+ "config-utils": [
44
+ "dist/config-utils.d.ts"
45
+ ],
46
+ "src/*": [
47
+ "dist/src/*.d.ts"
48
+ ],
49
+ "src/*.js": [
50
+ "dist/src/*.d.ts"
51
+ ]
52
+ }
53
+ },
29
54
  "generators": "./generators.json",
30
55
  "executors": "./executors.json",
31
56
  "dependencies": {
32
57
  "tslib": "^2.3.0",
33
- "@nx/devkit": "23.0.0-beta.22",
34
- "@nx/js": "23.0.0-beta.22",
35
58
  "minimatch": "10.2.5",
36
59
  "semver": "^7.6.3",
37
- "@phenomnomnominal/tsquery": "~6.2.0"
60
+ "@phenomnomnominal/tsquery": "~6.2.0",
61
+ "@nx/devkit": "23.0.0-beta.24",
62
+ "@nx/js": "23.0.0-beta.24"
38
63
  },
39
64
  "devDependencies": {
40
- "nx": "23.0.0-beta.22"
65
+ "nx": "23.0.0-beta.24"
41
66
  },
42
67
  "peerDependencies": {
43
68
  "@rsbuild/core": "^1.0.0"
@@ -52,23 +77,35 @@
52
77
  },
53
78
  "exports": {
54
79
  ".": {
55
- "types": "./index.d.ts",
56
- "default": "./index.js"
80
+ "@nx/nx-source": "./index.ts",
81
+ "types": "./dist/index.d.ts",
82
+ "default": "./dist/index.js"
57
83
  },
58
- "./executors/*/schema.json": "./src/executors/*/schema.json",
59
- "./executors/*/schema": "./src/executors/*/schema.d.ts",
60
- "./generators/*/schema.json": "./src/generators/*/schema.json",
61
- "./generators/*/schema": "./src/generators/*/schema.d.ts",
62
84
  "./package.json": {
63
85
  "default": "./package.json"
64
86
  },
87
+ "./migrations.json": "./migrations.json",
88
+ "./generators.json": "./generators.json",
89
+ "./executors.json": "./executors.json",
65
90
  "./generators": {
66
- "types": "./generators.d.ts",
67
- "default": "./generators.js"
91
+ "@nx/nx-source": "./generators.ts",
92
+ "types": "./dist/generators.d.ts",
93
+ "default": "./dist/generators.js"
68
94
  },
69
95
  "./config-utils": {
70
- "types": "./config-utils.d.ts",
71
- "default": "./config-utils.js"
96
+ "@nx/nx-source": "./config-utils.ts",
97
+ "types": "./dist/config-utils.d.ts",
98
+ "default": "./dist/config-utils.js"
99
+ },
100
+ "./src/*": {
101
+ "@nx/nx-source": "./src/*.ts",
102
+ "types": "./dist/src/*.d.ts",
103
+ "default": "./dist/src/*.js"
104
+ },
105
+ "./src/*.js": {
106
+ "@nx/nx-source": "./src/*.ts",
107
+ "types": "./dist/src/*.d.ts",
108
+ "default": "./dist/src/*.js"
72
109
  }
73
110
  }
74
111
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-utils.d.ts","sourceRoot":"","sources":["../../../packages/rsbuild/config-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,wBAAwB,EACxB,eAAe,GAChB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"generators.d.ts","sourceRoot":"","sources":["../../../packages/rsbuild/generators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC"}
package/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export { createNodesV2, RsbuildPluginOptions } from './src/plugins/plugin';
2
- //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map DELETED
@@ -1 +0,0 @@
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 +0,0 @@
1
- {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/rsbuild/src/generators/configuration/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAIjB,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAQvC,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BA0DtE;AAED,eAAe,sBAAsB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/rsbuild/src/generators/configuration/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalize-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/rsbuild/src/generators/configuration/lib/normalize-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,IAAI,EACT,KAAK,oBAAoB,EAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AAGxC,MAAM,WAAW,iBAAkB,SAAQ,MAAM;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,KAAK,GAAG,YAAY,CAAC;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,oBAAoB,8BAiC9B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/rsbuild/src/generators/init/init.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,IAAI,EACT,KAAK,iBAAiB,EAMvB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAM/C,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,mBAAmB,qBAazE;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,mBAAmB,8BAEpE;AAED,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,mBAAmB,8BAoD5B;AAED,eAAe,aAAa,CAAC"}
@@ -1,12 +0,0 @@
1
- import { CreateNodesV2 } from '@nx/devkit';
2
- export interface RsbuildPluginOptions {
3
- buildTargetName?: string;
4
- devTargetName?: string;
5
- previewTargetName?: string;
6
- inspectTargetName?: string;
7
- typecheckTargetName?: string;
8
- buildDepsTargetName?: string;
9
- watchDepsTargetName?: string;
10
- }
11
- export declare const createNodesV2: CreateNodesV2<RsbuildPluginOptions>;
12
- //# sourceMappingURL=plugin.d.ts.map
@@ -1 +0,0 @@
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 +0,0 @@
1
- {"version":3,"file":"add-build-plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/rsbuild/src/utils/add-build-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AASvC;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,IAAI,EACV,gBAAgB,EAAE,MAAM,EACxB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,QA6CjB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"assert-supported-rsbuild-version.d.ts","sourceRoot":"","sources":["../../../../../packages/rsbuild/src/utils/assert-supported-rsbuild-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAIvC,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAM9D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ast-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/rsbuild/src/utils/ast-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAOvC,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,QA6CrB;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,MAAM,QAgDb;AAED,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,QAuGnB;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,MAAM,EACtB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,QAmDd"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"e2e-web-server-info-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/rsbuild/src/utils/e2e-web-server-info-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,YAAY,CAAC;AAMnD,wBAAsB,0BAA0B,CAC9C,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,MAAM,EACtB,kBAAkB,EAAE,OAAO,EAC3B,eAAe,CAAC,EAAE,MAAM,8DA6BzB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"has-rsbuild-plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/rsbuild/src/utils/has-rsbuild-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,YAAY,CAAC;AAGnD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC,EAAE,MAAM,WA6BhE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"indent-by.d.ts","sourceRoot":"","sources":["../../../../../packages/rsbuild/src/utils/indent-by.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,SAAS,EAAE,MAAM,IAChC,KAAK,MAAM,YAOpB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"version-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/rsbuild/src/utils/version-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAMvC,OAAO,EAGL,KAAK,4BAA4B,EAClC,MAAM,YAAY,CAAC;AAIpB;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC7C,IAAI,EAAE,IAAI,GACT,4BAA4B,GAAG,SAAS,CAS1C;AAED;;;;;GAKG;AACH,wBAAgB,iCAAiC,IAAI,4BAA4B,GAAG,IAAI,CASvF;AAED;;;;GAIG;AACH,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,IAAI;;;;;EAM7D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/rsbuild/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;AAE/D,eAAO,MAAM,0BAA0B,UAAU,CAAC;AAKlD,eAAO,MAAM,6BAA6B,cAAe,CAAC;AAC1D,MAAM,MAAM,4BAA4B,GACtC,CAAC,OAAO,6BAA6B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjD,KAAK,iBAAiB,GAAG;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,yBAAyB,EAAE,MAAM,CAAC;IAClC,uBAAuB,EAAE,MAAM,CAAC;IAChC,wBAAwB,EAAE,MAAM,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,iBAKnC,CAAC;AAEF,eAAO,MAAM,iCAAiC,EAAE,MAAM,CACpD,4BAA4B,EAC5B,iBAAiB,CAGlB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAuC,CAAC;AACnE,eAAO,MAAM,yBAAyB,QACW,CAAC;AAClD,eAAO,MAAM,uBAAuB,QACW,CAAC;AAChD,eAAO,MAAM,wBAAwB,QACW,CAAC"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes