@nx/esbuild 16.8.0-beta.2 → 16.8.0-beta.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.
package/generators.json
CHANGED
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
"aliases": ["esbuild-project"],
|
|
13
13
|
"factory": "./src/generators/configuration/configuration#compat",
|
|
14
14
|
"schema": "./src/generators/configuration/schema.json",
|
|
15
|
-
"description": "Add esbuild configuration to a project."
|
|
16
|
-
"hidden": true
|
|
15
|
+
"description": "Add esbuild configuration to a project."
|
|
17
16
|
}
|
|
18
17
|
},
|
|
19
18
|
"generators": {
|
|
@@ -28,8 +27,7 @@
|
|
|
28
27
|
"aliases": ["esbuild-project"],
|
|
29
28
|
"factory": "./src/generators/configuration/configuration",
|
|
30
29
|
"schema": "./src/generators/configuration/schema.json",
|
|
31
|
-
"description": "Add esbuild configuration to a project."
|
|
32
|
-
"hidden": true
|
|
30
|
+
"description": "Add esbuild configuration to a project."
|
|
33
31
|
}
|
|
34
32
|
}
|
|
35
33
|
}
|
package/migrations.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/esbuild",
|
|
3
|
-
"version": "16.8.0-beta.
|
|
3
|
+
"version": "16.8.0-beta.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": {
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"migrations": "./migrations.json"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@nrwl/esbuild": "16.8.0-beta.
|
|
33
|
-
"@nx/devkit": "16.8.0-beta.
|
|
34
|
-
"@nx/js": "16.8.0-beta.
|
|
32
|
+
"@nrwl/esbuild": "16.8.0-beta.4",
|
|
33
|
+
"@nx/devkit": "16.8.0-beta.4",
|
|
34
|
+
"@nx/js": "16.8.0-beta.4",
|
|
35
35
|
"chalk": "^4.1.0",
|
|
36
36
|
"fast-glob": "3.2.7",
|
|
37
37
|
"fs-extra": "^11.1.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"tslib": "^2.3.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"esbuild": "~0.
|
|
42
|
+
"esbuild": "~0.19.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"esbuild": {
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"type": "commonjs",
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "c9aad2dc8c2b34531cf61549bff872e68c481e4e"
|
|
54
54
|
}
|
|
@@ -27,6 +27,7 @@ function checkForTargetConflicts(tree, options) {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
function addBuildTarget(tree, options) {
|
|
30
|
+
var _a, _b, _c, _d, _e;
|
|
30
31
|
const project = (0, devkit_1.readProjectConfiguration)(tree, options.project);
|
|
31
32
|
const packageJsonPath = (0, devkit_1.joinPathFragments)(project.root, 'package.json');
|
|
32
33
|
if (!tree.exists(packageJsonPath)) {
|
|
@@ -36,10 +37,11 @@ function addBuildTarget(tree, options) {
|
|
|
36
37
|
version: '0.0.1',
|
|
37
38
|
});
|
|
38
39
|
}
|
|
39
|
-
const
|
|
40
|
+
const prevBuildOptions = (_b = (_a = project.targets) === null || _a === void 0 ? void 0 : _a[options.buildTarget]) === null || _b === void 0 ? void 0 : _b.options;
|
|
41
|
+
const tsConfig = (_c = prevBuildOptions === null || prevBuildOptions === void 0 ? void 0 : prevBuildOptions.tsConfig) !== null && _c !== void 0 ? _c : getTsConfigFile(tree, options);
|
|
40
42
|
const buildOptions = {
|
|
41
|
-
main: getMainFile(tree, options),
|
|
42
|
-
outputPath: (0, devkit_1.joinPathFragments)('dist', project.root === '.' ? options.project : project.root),
|
|
43
|
+
main: (_d = prevBuildOptions === null || prevBuildOptions === void 0 ? void 0 : prevBuildOptions.main) !== null && _d !== void 0 ? _d : getMainFile(tree, options),
|
|
44
|
+
outputPath: (_e = prevBuildOptions === null || prevBuildOptions === void 0 ? void 0 : prevBuildOptions.outputPath) !== null && _e !== void 0 ? _e : (0, devkit_1.joinPathFragments)('dist', project.root === '.' ? options.project : project.root),
|
|
43
45
|
outputFileName: 'main.js',
|
|
44
46
|
tsConfig,
|
|
45
47
|
assets: [],
|