@nx/esbuild 20.3.0-canary.20241207-de8b189 → 20.3.0-canary.20241211-a267063

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.3.0-canary.20241207-de8b189",
3
+ "version": "20.3.0-canary.20241211-a267063",
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.3.0-canary.20241207-de8b189",
35
- "@nx/js": "20.3.0-canary.20241207-de8b189",
34
+ "@nx/devkit": "20.3.0-canary.20241211-a267063",
35
+ "@nx/js": "20.3.0-canary.20241211-a267063",
36
36
  "fast-glob": "3.2.7",
37
37
  "picocolors": "^1.1.0",
38
38
  "tsconfig-paths": "^4.1.2",
@@ -78,7 +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) {
81
+ if (!options.skipTypeCheck &&
82
+ !options.isTsSolutionSetup) {
82
83
  const { errors } = await runTypeCheck(options, context);
83
84
  hasTypeErrors = errors.length > 0;
84
85
  }
@@ -114,7 +115,7 @@ async function* esbuildExecutor(_options, context) {
114
115
  }
115
116
  else {
116
117
  // Run type-checks first and bail if they don't pass.
117
- if (!options.skipTypeCheck) {
118
+ if (!options.skipTypeCheck && !options.isTsSolutionSetup) {
118
119
  const { errors } = await runTypeCheck(options, context);
119
120
  if (errors.length > 0) {
120
121
  yield { success: false };
@@ -61,6 +61,7 @@ function normalizeOptions(options, context) {
61
61
  userDefinedBuildOptions,
62
62
  external: options.external ?? [],
63
63
  singleEntry: false,
64
+ isTsSolutionSetup,
64
65
  // Use the `main` file name as the output file name.
65
66
  // This is needed for `@nx/js:node` to know the main file to execute.
66
67
  // NOTE: The .js default extension may be replaced later in getOutfile() call.
@@ -78,6 +79,7 @@ function normalizeOptions(options, context) {
78
79
  userDefinedBuildOptions,
79
80
  external: options.external ?? [],
80
81
  singleEntry: true,
82
+ isTsSolutionSetup,
81
83
  outputFileName:
82
84
  // NOTE: The .js default extension may be replaced later in getOutfile() call.
83
85
  options.outputFileName ?? `${path.parse(options.main).name}.js`,
@@ -36,4 +36,5 @@ export interface NormalizedEsBuildExecutorOptions
36
36
  singleEntry: boolean;
37
37
  external: string[];
38
38
  userDefinedBuildOptions: esbuild.BuildOptions | undefined;
39
+ isTsSolutionSetup?: boolean;
39
40
  }