@nx/node 16.3.0 → 16.4.0-beta.0

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/migrations.json CHANGED
@@ -41,6 +41,12 @@
41
41
  "version": "16.0.0-beta.5",
42
42
  "description": "Replace @nrwl/node:webpack with @nx/node:webpack",
43
43
  "implementation": "./src/migrations/update-16-0-0/update-webpack-executor"
44
+ },
45
+ "update-16-3-1-update-executor": {
46
+ "cli": "nx",
47
+ "version": "16.3.1-beta.0",
48
+ "description": "Replace @nx/node:webpack with @nx/node:webpack for all project targets",
49
+ "implementation": "./src/migrations/update-16-3-1/update-webpack-executor"
44
50
  }
45
51
  },
46
52
  "packageJsonUpdates": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/node",
3
- "version": "16.3.0",
3
+ "version": "16.4.0-beta.0",
4
4
  "private": false,
5
5
  "description": "The Node Plugin for Nx contains generators and executors to manage Node applications within an Nx workspace.",
6
6
  "repository": {
@@ -31,17 +31,17 @@
31
31
  "migrations": "./migrations.json"
32
32
  },
33
33
  "dependencies": {
34
- "@nrwl/node": "16.3.0",
35
- "@nx/devkit": "16.3.0",
36
- "@nx/jest": "16.3.0",
37
- "@nx/js": "16.3.0",
38
- "@nx/linter": "16.3.0",
39
- "@nx/workspace": "16.3.0",
34
+ "@nrwl/node": "16.4.0-beta.0",
35
+ "@nx/devkit": "16.4.0-beta.0",
36
+ "@nx/jest": "16.4.0-beta.0",
37
+ "@nx/js": "16.4.0-beta.0",
38
+ "@nx/linter": "16.4.0-beta.0",
39
+ "@nx/workspace": "16.4.0-beta.0",
40
40
  "tslib": "^2.3.0"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
45
  "types": "./index.d.ts",
46
- "gitHead": "103353a446d41b5fff7cf0f7ac5f8dadbbd336eb"
46
+ "gitHead": "c2112a07278e9c78cd6f6c194eb4a75115a7d179"
47
47
  }
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function update(tree: Tree): Promise<void>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const devkit_1 = require("@nx/devkit");
5
+ const executor_options_utils_1 = require("@nx/devkit/src/generators/executor-options-utils");
6
+ function update(tree) {
7
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
8
+ const migrateProject = (options, projectName, targetName) => {
9
+ const projectConfig = (0, devkit_1.readProjectConfiguration)(tree, projectName);
10
+ projectConfig.targets[targetName].executor = '@nx/webpack:webpack';
11
+ projectConfig.targets[targetName].options.compiler = 'tsc';
12
+ projectConfig.targets[targetName].options.target = 'node';
13
+ (0, devkit_1.updateProjectConfiguration)(tree, projectName, projectConfig);
14
+ };
15
+ (0, executor_options_utils_1.forEachExecutorOptions)(tree, '@nx/node:webpack', migrateProject);
16
+ (0, executor_options_utils_1.forEachExecutorOptions)(tree, '@nrwl/node:webpack', migrateProject);
17
+ yield (0, devkit_1.formatFiles)(tree);
18
+ });
19
+ }
20
+ exports.default = update;
21
+ //# sourceMappingURL=update-webpack-executor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-webpack-executor.js","sourceRoot":"","sources":["../../../../../../packages/node/src/migrations/update-16-3-1/update-webpack-executor.ts"],"names":[],"mappings":";;;AAAA,uCAKoB;AACpB,6FAA0F;AAE1F,SAA8B,MAAM,CAAC,IAAU;;QAC7C,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,EAAE;YAC1D,MAAM,aAAa,GAAG,IAAA,iCAAwB,EAAC,IAAI,EAAE,WAAW,CAAC,CAAC;YAClE,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,QAAQ,GAAG,qBAAqB,CAAC;YACnE,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,GAAG,KAAK,CAAC;YAC3D,aAAa,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;YAC1D,IAAA,mCAA0B,EAAC,IAAI,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;QAC/D,CAAC,CAAC;QAEF,IAAA,+CAAsB,EAAC,IAAI,EAAE,kBAAkB,EAAE,cAAc,CAAC,CAAC;QACjE,IAAA,+CAAsB,EAAC,IAAI,EAAE,oBAAoB,EAAE,cAAc,CAAC,CAAC;QAEnE,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA;AAbD,yBAaC"}