@nx/esbuild 20.7.0-canary.20250320-2a0d89d → 20.7.0-canary.20250322-1c238c0
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.7.0-canary.
|
3
|
+
"version": "20.7.0-canary.20250322-1c238c0",
|
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.7.0-canary.
|
35
|
-
"@nx/js": "20.7.0-canary.
|
34
|
+
"@nx/devkit": "20.7.0-canary.20250322-1c238c0",
|
35
|
+
"@nx/js": "20.7.0-canary.20250322-1c238c0",
|
36
36
|
"tinyglobby": "^0.2.12",
|
37
37
|
"picocolors": "^1.1.0",
|
38
38
|
"tsconfig-paths": "^4.1.2",
|
@@ -113,6 +113,8 @@ function updatePackageJson(tree, options, isTsSolutionSetup) {
|
|
113
113
|
const { declarationRootDir = '.', main, outputPath, outputFileName,
|
114
114
|
// the executor option defaults to [esm]
|
115
115
|
format = ['esm'], esbuildOptions, } = mergedTarget.options;
|
116
|
+
// the file must exist in the TS solution setup
|
117
|
+
const tsconfigBase = (0, devkit_1.readJson)(tree, 'tsconfig.base.json');
|
116
118
|
// can't use the declarationRootDir as rootDir because it only affects the typings,
|
117
119
|
// not the runtime entry point
|
118
120
|
packageJson = (0, js_1.getUpdatedPackageJsonContent)(packageJson, {
|
@@ -132,6 +134,7 @@ function updatePackageJson(tree, options, isTsSolutionSetup) {
|
|
132
134
|
outputFileExtensionForEsm: (0, build_esbuild_options_1.getOutExtension)('esm', {
|
133
135
|
userDefinedBuildOptions: esbuildOptions,
|
134
136
|
}),
|
137
|
+
skipDevelopmentExports: !tsconfigBase.compilerOptions?.customConditions?.includes('development'),
|
135
138
|
});
|
136
139
|
if (declarationRootDir !== (0, posix_1.dirname)(main)) {
|
137
140
|
// the declaration file entry point will be output to a location
|