@nx/rsbuild 20.4.3 → 20.5.0-beta.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/package.json +3 -3
- package/src/plugins/plugin.js +10 -19
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": "20.
|
|
4
|
+
"version": "20.5.0-beta.0",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"executors": "./executors.json",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"tslib": "^2.3.0",
|
|
33
|
-
"@nx/devkit": "20.
|
|
34
|
-
"@nx/js": "20.
|
|
33
|
+
"@nx/devkit": "20.5.0-beta.0",
|
|
34
|
+
"@nx/js": "20.5.0-beta.0",
|
|
35
35
|
"@rsbuild/core": "1.1.8",
|
|
36
36
|
"minimatch": "9.0.3",
|
|
37
37
|
"@phenomnomnominal/tsquery": "~5.0.1"
|
package/src/plugins/plugin.js
CHANGED
|
@@ -46,7 +46,7 @@ async function createNodesInternal(configFilePath, options, context, targetsCach
|
|
|
46
46
|
}
|
|
47
47
|
const tsConfigFiles = siblingFiles.filter((p) => (0, minimatch_1.minimatch)(p, 'tsconfig*{.json,.*.json}')) ?? [];
|
|
48
48
|
const normalizedOptions = normalizeOptions(options);
|
|
49
|
-
const hash = await (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot,
|
|
49
|
+
const hash = await (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot, normalizedOptions, context, [(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot))]);
|
|
50
50
|
targetsCache[hash] ??= await createRsbuildTargets(configFilePath, projectRoot, normalizedOptions, tsConfigFiles, isUsingTsSolutionSetup, context);
|
|
51
51
|
const { targets, metadata } = targetsCache[hash];
|
|
52
52
|
return {
|
|
@@ -129,30 +129,21 @@ async function createRsbuildTargets(configFilePath, projectRoot, options, tsConf
|
|
|
129
129
|
{ externalDependencies: ['typescript'] },
|
|
130
130
|
],
|
|
131
131
|
command: isUsingTsSolutionSetup
|
|
132
|
-
? `tsc --build --emitDeclarationOnly`
|
|
133
|
-
: `tsc -p ${tsConfigToUse}
|
|
132
|
+
? `tsc --build --emitDeclarationOnly --pretty --verbose`
|
|
133
|
+
: `tsc --noEmit -p ${tsConfigToUse}`,
|
|
134
134
|
options: { cwd: (0, devkit_1.joinPathFragments)(projectRoot) },
|
|
135
135
|
metadata: {
|
|
136
|
-
description: `
|
|
137
|
-
technologies: ['typescript'],
|
|
136
|
+
description: `Run Typechecking`,
|
|
138
137
|
help: {
|
|
139
|
-
command:
|
|
140
|
-
|
|
141
|
-
:
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
138
|
+
command: `${pmc.exec} tsc --help -p ${tsConfigToUse}`,
|
|
139
|
+
example: {
|
|
140
|
+
options: {
|
|
141
|
+
noEmit: true,
|
|
142
|
+
},
|
|
143
|
+
},
|
|
145
144
|
},
|
|
146
145
|
},
|
|
147
146
|
};
|
|
148
|
-
if (isUsingTsSolutionSetup) {
|
|
149
|
-
targets[options.typecheckTargetName].dependsOn = [
|
|
150
|
-
`^${options.typecheckTargetName}`,
|
|
151
|
-
];
|
|
152
|
-
targets[options.typecheckTargetName].syncGenerators = [
|
|
153
|
-
'@nx/js:typescript-sync',
|
|
154
|
-
];
|
|
155
|
-
}
|
|
156
147
|
}
|
|
157
148
|
(0, util_1.addBuildAndWatchDepsTargets)(context.workspaceRoot, projectRoot, targets, options, pmc);
|
|
158
149
|
return { targets, metadata: {} };
|