@nx/esbuild 20.4.0-canary.20250108-7f2693a → 20.4.0-canary.20250110-cbfc6fe
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
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/esbuild",
|
3
|
-
"version": "20.4.0-canary.
|
3
|
+
"version": "20.4.0-canary.20250110-cbfc6fe",
|
4
4
|
"private": false,
|
5
5
|
"description": "The Nx Plugin for esbuild contains executors and generators that support building applications using esbuild",
|
6
6
|
"repository": {
|
@@ -31,8 +31,8 @@
|
|
31
31
|
"migrations": "./migrations.json"
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
|
-
"@nx/devkit": "20.4.0-canary.
|
35
|
-
"@nx/js": "20.4.0-canary.
|
34
|
+
"@nx/devkit": "20.4.0-canary.20250110-cbfc6fe",
|
35
|
+
"@nx/js": "20.4.0-canary.20250110-cbfc6fe",
|
36
36
|
"fast-glob": "3.2.7",
|
37
37
|
"picocolors": "^1.1.0",
|
38
38
|
"tsconfig-paths": "^4.1.2",
|
@@ -78,8 +78,8 @@ async function* esbuildExecutor(_options, context) {
|
|
78
78
|
name: 'nx-watch-plugin',
|
79
79
|
setup(build) {
|
80
80
|
build.onEnd(async (result) => {
|
81
|
-
if (!options.skipTypeCheck
|
82
|
-
|
81
|
+
if (!options.skipTypeCheck ||
|
82
|
+
options.isTsSolutionSetup) {
|
83
83
|
const { errors } = await runTypeCheck(options, context);
|
84
84
|
hasTypeErrors = errors.length > 0;
|
85
85
|
}
|
@@ -115,7 +115,7 @@ async function* esbuildExecutor(_options, context) {
|
|
115
115
|
}
|
116
116
|
else {
|
117
117
|
// Run type-checks first and bail if they don't pass.
|
118
|
-
if (!options.skipTypeCheck
|
118
|
+
if (!options.skipTypeCheck || options.isTsSolutionSetup) {
|
119
119
|
const { errors } = await runTypeCheck(options, context);
|
120
120
|
if (errors.length > 0) {
|
121
121
|
yield { success: false };
|
@@ -163,6 +163,9 @@ function getTypeCheckOptions(options, context) {
|
|
163
163
|
typeCheckOptions.incremental = true;
|
164
164
|
typeCheckOptions.cacheDir = devkit_1.cacheDir;
|
165
165
|
}
|
166
|
+
if (options.isTsSolutionSetup && options.skipTypeCheck) {
|
167
|
+
typeCheckOptions.ignoreDiagnostics = true;
|
168
|
+
}
|
166
169
|
return typeCheckOptions;
|
167
170
|
}
|
168
171
|
async function runTypeCheck(options, context) {
|