@nx/esbuild 16.0.0 → 16.0.2
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/README.md +3 -3
- package/migrations.json +6 -0
- package/package.json +5 -5
- package/src/migrations/update-16-0-1-set-thirdparty-true/update-16-0-1-set-thirdparty-true.d.ts +2 -0
- package/src/migrations/update-16-0-1-set-thirdparty-true/update-16-0-1-set-thirdparty-true.js +31 -0
- package/src/migrations/update-16-0-1-set-thirdparty-true/update-16-0-1-set-thirdparty-true.js.map +1 -0
package/README.md
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
<div style="text-align: center;">
|
|
4
4
|
|
|
5
5
|
[](https://circleci.com/gh/nrwl/nx)
|
|
6
|
-
[](https://www.npmjs.com/@
|
|
6
|
+
[]()
|
|
7
|
+
[](https://www.npmjs.com/@nx/workspace)
|
|
8
8
|
[]()
|
|
9
9
|
[](http://commitizen.github.io/cz-cli/)
|
|
10
10
|
[](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
11
|
-
[](https://join.slack.com/t/nrwlcommunity/shared_invite/enQtNzU5MTE4OTQwOTk0LTgxY2E0ZWYzMWE0YzA5ZDA2MWM1NDVhNmI2ZWMyYmZhNWJiODk3MjkxZjY3MzU5ZjRmM2NmNWU1OTgyZmE4Mzc)
|
|
12
12
|
|
|
13
13
|
</div>
|
|
14
14
|
|
package/migrations.json
CHANGED
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
"version": "16.0.0-beta.1",
|
|
12
12
|
"description": "Replace @nrwl/esbuild with @nx/esbuild",
|
|
13
13
|
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages"
|
|
14
|
+
},
|
|
15
|
+
"update-16-0-1-set-thirdparty-true": {
|
|
16
|
+
"version": "16.0.1-beta.0",
|
|
17
|
+
"description": "Set thirdParty to true to maintain the existing behavior of bundling dependencies.",
|
|
18
|
+
"cli": "nx",
|
|
19
|
+
"implementation": "./src/migrations/update-16-0-1-set-thirdparty-true/update-16-0-1-set-thirdparty-true"
|
|
14
20
|
}
|
|
15
21
|
},
|
|
16
22
|
"packageJsonUpdates": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/esbuild",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.0.2",
|
|
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.0.
|
|
33
|
-
"@nx/devkit": "16.0.
|
|
34
|
-
"@nx/js": "16.0.
|
|
32
|
+
"@nrwl/esbuild": "16.0.2",
|
|
33
|
+
"@nx/devkit": "16.0.2",
|
|
34
|
+
"@nx/js": "16.0.2",
|
|
35
35
|
"chalk": "^4.1.0",
|
|
36
36
|
"dotenv": "~10.0.0",
|
|
37
37
|
"fast-glob": "3.2.7",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
53
|
"types": "./index.d.ts",
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "e48d7d1835c13b23df9515bea186722d47a15ba5"
|
|
55
55
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
|
+
function update(host) {
|
|
7
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
+
const projects = (0, devkit_1.getProjects)(host);
|
|
9
|
+
projects.forEach((projectConfig, projectName) => {
|
|
10
|
+
let shouldUpdate = false;
|
|
11
|
+
Object.entries(projectConfig.targets).forEach(([targetName, targetConfig]) => {
|
|
12
|
+
var _a, _b;
|
|
13
|
+
var _c, _d;
|
|
14
|
+
if (targetConfig.executor === '@nrwl/esbuild:esbuild' ||
|
|
15
|
+
targetConfig.executor === '@nx/esbuild:esbuild') {
|
|
16
|
+
(_a = (_c = projectConfig.targets[targetName]).options) !== null && _a !== void 0 ? _a : (_c.options = {});
|
|
17
|
+
if (projectConfig.targets[targetName].options.bundle !== false) {
|
|
18
|
+
shouldUpdate = true;
|
|
19
|
+
(_b = (_d = projectConfig.targets[targetName].options).thirdParty) !== null && _b !== void 0 ? _b : (_d.thirdParty = true);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
if (shouldUpdate) {
|
|
24
|
+
(0, devkit_1.updateProjectConfiguration)(host, projectName, projectConfig);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
yield (0, devkit_1.formatFiles)(host);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
exports.default = update;
|
|
31
|
+
//# sourceMappingURL=update-16-0-1-set-thirdparty-true.js.map
|
package/src/migrations/update-16-0-1-set-thirdparty-true/update-16-0-1-set-thirdparty-true.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-16-0-1-set-thirdparty-true.js","sourceRoot":"","sources":["../../../../../../packages/esbuild/src/migrations/update-16-0-1-set-thirdparty-true/update-16-0-1-set-thirdparty-true.ts"],"names":[],"mappings":";;;AAAA,sDAAsD;AACtD,uCAKoB;AAEpB,SAA8B,MAAM,CAAC,IAAU;;QAC7C,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAEnC,QAAQ,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,WAAW,EAAE,EAAE;YAC9C,IAAI,YAAY,GAAG,KAAK,CAAC;YAEzB,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,OAAO,CAC3C,CAAC,CAAC,UAAU,EAAE,YAAY,CAAC,EAAE,EAAE;;;gBAC7B,IACE,YAAY,CAAC,QAAQ,KAAK,uBAAuB;oBACjD,YAAY,CAAC,QAAQ,KAAK,qBAAqB,EAC/C;oBACA,YAAA,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC,EAAC,OAAO,uCAAP,OAAO,GAAK,EAAE,EAAC;oBACjD,IAAI,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,MAAM,KAAK,KAAK,EAAE;wBAC9D,YAAY,GAAG,IAAI,CAAC;wBAEpB,YAAA,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,EAAC,UAAU,uCAAV,UAAU,GAAK,IAAI,EAAC;qBAC/D;iBACF;YACH,CAAC,CACF,CAAC;YAEF,IAAI,YAAY,EAAE;gBAChB,IAAA,mCAA0B,EAAC,IAAI,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;aAC9D;QACH,CAAC,CAAC,CAAC;QAEH,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA;AA5BD,yBA4BC"}
|