@nx/esbuild 20.4.0-canary.20250107-cb4a93e → 20.4.0-canary.20250109-0edd110

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2017-2024 Narwhal Technologies Inc.
3
+ Copyright (c) 2017-2025 Narwhal Technologies Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/esbuild",
3
- "version": "20.4.0-canary.20250107-cb4a93e",
3
+ "version": "20.4.0-canary.20250109-0edd110",
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.20250107-cb4a93e",
35
- "@nx/js": "20.4.0-canary.20250107-cb4a93e",
34
+ "@nx/devkit": "20.4.0-canary.20250109-0edd110",
35
+ "@nx/js": "20.4.0-canary.20250109-0edd110",
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
- !options.isTsSolutionSetup) {
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 && !options.isTsSolutionSetup) {
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) {