@nx/esbuild 23.1.0-beta.4 → 23.1.0-beta.5

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.
@@ -170,7 +170,10 @@ function getTypeCheckOptions(options, context) {
170
170
  };
171
171
  if (watch) {
172
172
  typeCheckOptions.incremental = true;
173
- typeCheckOptions.cacheDir = devkit_1.cacheDir;
173
+ // Scope the incremental .tsbuildinfo per project (in its own subdir, not
174
+ // alongside Nx's cache files) so concurrent serves don't collide on a
175
+ // single file.
176
+ typeCheckOptions.cacheDir = (0, path_1.join)(devkit_1.cacheDir, 'esbuild', projectRoot);
174
177
  }
175
178
  if (options.isTsSolutionSetup && options.skipTypeCheck) {
176
179
  typeCheckOptions.ignoreDiagnostics = true;
@@ -110,9 +110,7 @@ function updatePackageJson(tree, options, isTsSolutionSetup) {
110
110
  if (isTsSolutionSetup) {
111
111
  const nxJson = (0, devkit_1.readNxJson)(tree);
112
112
  const projectTarget = project.targets[options.buildTarget];
113
- const mergedTarget = (0, devkit_internals_1.mergeTargetConfigurations)(projectTarget, (projectTarget.executor
114
- ? nxJson.targetDefaults?.[projectTarget.executor]
115
- : undefined) ?? nxJson.targetDefaults?.[options.buildTarget]);
113
+ const mergedTarget = (0, devkit_internals_1.mergeTargetConfigurations)(projectTarget, (0, internal_1.readTargetDefaultsForTarget)(options.buildTarget, nxJson.targetDefaults, projectTarget.executor));
116
114
  const { declarationRootDir = '.', main, outputPath, outputFileName,
117
115
  // the executor option defaults to [esm]
118
116
  format = ['esm'], esbuildOptions, } = mergedTarget.options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/esbuild",
3
- "version": "23.1.0-beta.4",
3
+ "version": "23.1.0-beta.5",
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": {
@@ -44,11 +44,11 @@
44
44
  "picocolors": "^1.1.0",
45
45
  "tsconfig-paths": "^4.1.2",
46
46
  "tslib": "^2.3.0",
47
- "@nx/devkit": "23.1.0-beta.4",
48
- "@nx/js": "23.1.0-beta.4"
47
+ "@nx/devkit": "23.1.0-beta.5",
48
+ "@nx/js": "23.1.0-beta.5"
49
49
  },
50
50
  "devDependencies": {
51
- "nx": "23.1.0-beta.4"
51
+ "nx": "23.1.0-beta.5"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "esbuild": ">=0.19.2 <1.0.0"