@nrwl/js 14.3.3 → 14.3.5

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/CHANGELOG.md CHANGED
@@ -3,6 +3,6 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [14.3.3](https://github.com/nrwl/nx/compare/14.3.2...14.3.3) (2022-06-15)
6
+ ## [14.3.5](https://github.com/nrwl/nx/compare/14.3.4...14.3.5) (2022-06-15)
7
7
 
8
8
  **Note:** Version bump only for package @nrwl/js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/js",
3
- "version": "14.3.3",
3
+ "version": "14.3.5",
4
4
  "description": "The Nx plugin that provides the best experience for developing JavaScript and TypeScript projects.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,10 +31,10 @@
31
31
  "executors": "./executors.json",
32
32
  "builders": "./executors.json",
33
33
  "dependencies": {
34
- "@nrwl/devkit": "14.3.3",
35
- "@nrwl/jest": "14.3.3",
36
- "@nrwl/linter": "14.3.3",
37
- "@nrwl/workspace": "14.3.3",
34
+ "@nrwl/devkit": "14.3.5",
35
+ "@nrwl/jest": "14.3.5",
36
+ "@nrwl/linter": "14.3.5",
37
+ "@nrwl/workspace": "14.3.5",
38
38
  "@parcel/watcher": "2.0.4",
39
39
  "chalk": "4.1.0",
40
40
  "fast-glob": "3.2.7",
@@ -45,5 +45,5 @@
45
45
  "source-map-support": "0.5.19",
46
46
  "tree-kill": "1.2.2"
47
47
  },
48
- "gitHead": "ea765875261f15c771c6fb3d116024a07080a4fa"
48
+ "gitHead": "b73fe9a628dfed38b22b97030ebcb9b25ebc31ff"
49
49
  }
@@ -1,3 +1,3 @@
1
1
  import { Tree } from '@nrwl/devkit';
2
- export declare function updateSwcrcPath(tree: Tree): void;
2
+ export declare function updateSwcrcPath(tree: Tree): Promise<void>;
3
3
  export default updateSwcrcPath;
@@ -1,20 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.updateSwcrcPath = void 0;
4
+ const tslib_1 = require("tslib");
4
5
  const devkit_1 = require("@nrwl/devkit");
5
6
  const executor_options_utils_1 = require("@nrwl/workspace/src/utilities/executor-options-utils");
6
7
  function updateSwcrcPath(tree) {
7
- (0, executor_options_utils_1.forEachExecutorOptions)(tree, '@nrwl/js:swc', (_, projectName, targetName, configurationName) => {
8
- const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, projectName);
9
- const executorOptions = configurationName
10
- ? projectConfig.targets[targetName].configurations[configurationName]
11
- : projectConfig.targets[targetName].options;
12
- if (!executorOptions.swcrcPath)
13
- return;
14
- const newSwcrcPath = (0, devkit_1.joinPathFragments)(projectConfig.root, executorOptions.swcrcPath);
15
- delete executorOptions.swcrcPath;
16
- executorOptions.swcrc = newSwcrcPath;
17
- (0, devkit_1.updateProjectConfiguration)(tree, projectName, projectConfig);
8
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
9
+ let changesMade = false;
10
+ (0, executor_options_utils_1.forEachExecutorOptions)(tree, '@nrwl/js:swc', (_, projectName, targetName, configurationName) => {
11
+ const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, projectName);
12
+ const executorOptions = configurationName
13
+ ? projectConfig.targets[targetName].configurations[configurationName]
14
+ : projectConfig.targets[targetName].options;
15
+ if (!executorOptions.swcrcPath)
16
+ return;
17
+ const newSwcrcPath = (0, devkit_1.joinPathFragments)(projectConfig.root, executorOptions.swcrcPath);
18
+ delete executorOptions.swcrcPath;
19
+ executorOptions.swcrc = newSwcrcPath;
20
+ (0, devkit_1.updateProjectConfiguration)(tree, projectName, projectConfig);
21
+ changesMade = true;
22
+ });
23
+ if (changesMade) {
24
+ yield (0, devkit_1.formatFiles)(tree);
25
+ }
18
26
  });
19
27
  }
20
28
  exports.updateSwcrcPath = updateSwcrcPath;
@@ -1 +1 @@
1
- {"version":3,"file":"update-swcrc-path.js","sourceRoot":"","sources":["../../../../../../packages/js/src/migrations/update-14.1.5-beta.0/update-swcrc-path.ts"],"names":[],"mappings":";;;AAAA,yCAKsB;AACtB,iGAA8F;AAK9F,SAAgB,eAAe,CAAC,IAAU;IACxC,IAAA,+CAAsB,EACpB,IAAI,EACJ,cAAc,EACd,CAAC,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,iBAAiB,EAAE,EAAE;QAChD,MAAM,aAAa,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAClE,MAAM,eAAe,GAA0B,iBAAiB;YAC9D,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,cAAc,CAAC,iBAAiB,CAAC;YACrE,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC;QAE9C,IAAI,CAAC,eAAe,CAAC,SAAS;YAAE,OAAO;QAEvC,MAAM,YAAY,GAAG,IAAA,0BAAiB,EACpC,aAAa,CAAC,IAAI,EAClB,eAAe,CAAC,SAAS,CAC1B,CAAC;QAEF,OAAO,eAAe,CAAC,SAAS,CAAC;QACjC,eAAe,CAAC,KAAK,GAAG,YAAY,CAAC;QAErC,IAAA,mCAA0B,EAAC,IAAI,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;IAC/D,CAAC,CACF,CAAC;AACJ,CAAC;AAvBD,0CAuBC;AAED,kBAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"update-swcrc-path.js","sourceRoot":"","sources":["../../../../../../packages/js/src/migrations/update-14.1.5-beta.0/update-swcrc-path.ts"],"names":[],"mappings":";;;;AAAA,yCAMsB;AACtB,iGAA8F;AAK9F,SAAsB,eAAe,CAAC,IAAU;;QAC9C,IAAI,WAAW,GAAG,KAAK,CAAC;QAExB,IAAA,+CAAsB,EACpB,IAAI,EACJ,cAAc,EACd,CAAC,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,iBAAiB,EAAE,EAAE;YAChD,MAAM,aAAa,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC;YAClE,MAAM,eAAe,GAA0B,iBAAiB;gBAC9D,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,cAAc,CAAC,iBAAiB,CAAC;gBACrE,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC;YAE9C,IAAI,CAAC,eAAe,CAAC,SAAS;gBAAE,OAAO;YAEvC,MAAM,YAAY,GAAG,IAAA,0BAAiB,EACpC,aAAa,CAAC,IAAI,EAClB,eAAe,CAAC,SAAS,CAC1B,CAAC;YAEF,OAAO,eAAe,CAAC,SAAS,CAAC;YACjC,eAAe,CAAC,KAAK,GAAG,YAAY,CAAC;YAErC,IAAA,mCAA0B,EAAC,IAAI,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;YAE7D,WAAW,GAAG,IAAI,CAAC;QACrB,CAAC,CACF,CAAC;QAEF,IAAI,WAAW,EAAE;YACf,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;IACH,CAAC;CAAA;AA/BD,0CA+BC;AAED,kBAAe,eAAe,CAAC"}