@nx/esbuild 16.0.0 → 16.0.1

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 CHANGED
@@ -3,12 +3,12 @@
3
3
  <div style="text-align: center;">
4
4
 
5
5
  [![CircleCI](https://circleci.com/gh/nrwl/nx.svg?style=svg)](https://circleci.com/gh/nrwl/nx)
6
- [![License](https://img.shields.io/npm/l/@nrwl/workspace.svg?style=flat-square)]()
7
- [![NPM Version](https://badge.fury.io/js/%40nrwl%2Fworkspace.svg)](https://www.npmjs.com/@nrwl/workspace)
6
+ [![License](https://img.shields.io/npm/l/@nx/workspace.svg?style=flat-square)]()
7
+ [![NPM Version](https://badge.fury.io/js/%40nrwl%2Fworkspace.svg)](https://www.npmjs.com/@nx/workspace)
8
8
  [![Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)]()
9
9
  [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
10
10
  [![Join the chat at https://gitter.im/nrwl-nx/community](https://badges.gitter.im/nrwl-nx/community.svg)](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
11
- [![Join us @nrwl/community on slack](https://img.shields.io/badge/slack-%40nrwl%2Fcommunity-brightgreen)](https://join.slack.com/t/nrwlcommunity/shared_invite/enQtNzU5MTE4OTQwOTk0LTgxY2E0ZWYzMWE0YzA5ZDA2MWM1NDVhNmI2ZWMyYmZhNWJiODk3MjkxZjY3MzU5ZjRmM2NmNWU1OTgyZmE4Mzc)
11
+ [![Join us @nx/community on slack](https://img.shields.io/badge/slack-%40nrwl%2Fcommunity-brightgreen)](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.0",
3
+ "version": "16.0.1",
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.0",
33
- "@nx/devkit": "16.0.0",
34
- "@nx/js": "16.0.0",
32
+ "@nrwl/esbuild": "16.0.1",
33
+ "@nx/devkit": "16.0.1",
34
+ "@nx/js": "16.0.1",
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": "f537a4caebbf6f65f5f5733fb9ad9c9167d4b504"
54
+ "gitHead": "b06bc241eab3a41dd189cf62d334a14745fc29ee"
55
55
  }
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function update(host: Tree): Promise<void>;
@@ -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
@@ -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"}