@nx/esbuild 23.0.0-rc.3 → 23.0.0-rc.4

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.
@@ -110,7 +110,9 @@ 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, (0, internal_1.readTargetDefaultsForTarget)(options.buildTarget, nxJson.targetDefaults, projectTarget.executor));
113
+ const mergedTarget = (0, devkit_internals_1.mergeTargetConfigurations)(projectTarget, (projectTarget.executor
114
+ ? nxJson.targetDefaults?.[projectTarget.executor]
115
+ : undefined) ?? nxJson.targetDefaults?.[options.buildTarget]);
114
116
  const { declarationRootDir = '.', main, outputPath, outputFileName,
115
117
  // the executor option defaults to [esm]
116
118
  format = ['esm'], esbuildOptions, } = mergedTarget.options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/esbuild",
3
- "version": "23.0.0-rc.3",
3
+ "version": "23.0.0-rc.4",
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.0.0-rc.3",
48
- "@nx/js": "23.0.0-rc.3"
47
+ "@nx/devkit": "23.0.0-rc.4",
48
+ "@nx/js": "23.0.0-rc.4"
49
49
  },
50
50
  "devDependencies": {
51
- "nx": "23.0.0-rc.3"
51
+ "nx": "23.0.0-rc.4"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "esbuild": ">=0.19.2 <1.0.0"