@nx/esbuild 17.0.1 → 17.0.3
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": "17.0.
|
|
3
|
+
"version": "17.0.3",
|
|
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": {
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"fs-extra": "^11.1.0",
|
|
35
35
|
"tslib": "^2.3.0",
|
|
36
36
|
"tsconfig-paths": "^4.1.2",
|
|
37
|
-
"@nx/devkit": "17.0.
|
|
38
|
-
"@nx/js": "17.0.
|
|
39
|
-
"@nrwl/esbuild": "17.0.
|
|
37
|
+
"@nx/devkit": "17.0.3",
|
|
38
|
+
"@nx/js": "17.0.3",
|
|
39
|
+
"@nrwl/esbuild": "17.0.3"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"esbuild": "~0.19.2"
|
|
@@ -50,6 +50,10 @@ async function* esbuildExecutor(_options, context) {
|
|
|
50
50
|
generateLockfile: true,
|
|
51
51
|
outputFileExtensionForCjs: (0, build_esbuild_options_1.getOutExtension)('cjs', options),
|
|
52
52
|
excludeLibsInPackageJson: !options.thirdParty,
|
|
53
|
+
// TODO(jack): Remove the need to pass updateBuildableProjectDepsInPackageJson option when overrideDependencies or extraDependencies are passed.
|
|
54
|
+
// Add this back to fix a regression.
|
|
55
|
+
// See: https://github.com/nrwl/nx/issues/19773
|
|
56
|
+
updateBuildableProjectDepsInPackageJson: externalDependencies.length > 0,
|
|
53
57
|
};
|
|
54
58
|
// If we're bundling third-party packages, then any extra deps from external should be the only deps in package.json
|
|
55
59
|
if (options.thirdParty && externalDependencies.length > 0) {
|
|
@@ -130,12 +130,6 @@
|
|
|
130
130
|
"type": "boolean",
|
|
131
131
|
"description": "Includes third-party packages in the bundle (i.e. npm packages)."
|
|
132
132
|
},
|
|
133
|
-
"dependenciesFieldType": {
|
|
134
|
-
"type": "string",
|
|
135
|
-
"description": "When `bundleInternalProjectsOnly` is true, this option determines whether external packages should be in 'dependencies' or 'peerDependencies' field in the generated package.json file.",
|
|
136
|
-
"enum": ["dependencies", "peerDependencies"],
|
|
137
|
-
"default": "dependencies"
|
|
138
|
-
},
|
|
139
133
|
"esbuildOptions": {
|
|
140
134
|
"type": "object",
|
|
141
135
|
"description": "Additional options to pass to esbuild. See https://esbuild.github.io/api/. Cannot be used with 'esbuildConfig' option.",
|