@nx/node 16.4.0-beta.6 → 16.4.0-beta.8

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
@@ -47,6 +47,12 @@
47
47
  "version": "16.3.1-beta.0",
48
48
  "description": "Replace @nx/node:webpack with @nx/node:webpack for all project targets",
49
49
  "implementation": "./src/migrations/update-16-3-1/update-webpack-executor"
50
+ },
51
+ "update-16-4-0-replace-node-executor": {
52
+ "cli": "nx",
53
+ "version": "16.4.0-beta.8",
54
+ "description": "Replace @nx/node:node with @nx/js:node for all project targets",
55
+ "implementation": "./src/migrations/update-16-4-0/replace-node-executor"
50
56
  }
51
57
  },
52
58
  "packageJsonUpdates": {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@nx/node",
3
- "version": "16.4.0-beta.6",
3
+ "version": "16.4.0-beta.8",
4
4
  "private": false,
5
- "description": "The Node Plugin for Nx contains generators and executors to manage Node applications within an Nx workspace.",
5
+ "description": "The Node Plugin for Nx contains generators to manage Node applications within an Nx workspace.",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/nrwl/nx.git",
@@ -25,23 +25,22 @@
25
25
  },
26
26
  "homepage": "https://nx.dev",
27
27
  "schematics": "./generators.json",
28
- "builders": "./executors.json",
29
28
  "ng-update": {
30
29
  "requirements": {},
31
30
  "migrations": "./migrations.json"
32
31
  },
33
32
  "dependencies": {
34
- "@nrwl/node": "16.4.0-beta.6",
35
- "@nx/devkit": "16.4.0-beta.6",
36
- "@nx/jest": "16.4.0-beta.6",
37
- "@nx/js": "16.4.0-beta.6",
38
- "@nx/linter": "16.4.0-beta.6",
39
- "@nx/workspace": "16.4.0-beta.6",
33
+ "@nrwl/node": "16.4.0-beta.8",
34
+ "@nx/devkit": "16.4.0-beta.8",
35
+ "@nx/jest": "16.4.0-beta.8",
36
+ "@nx/js": "16.4.0-beta.8",
37
+ "@nx/linter": "16.4.0-beta.8",
38
+ "@nx/workspace": "16.4.0-beta.8",
40
39
  "tslib": "^2.3.0"
41
40
  },
42
41
  "publishConfig": {
43
42
  "access": "public"
44
43
  },
45
44
  "types": "./index.d.ts",
46
- "gitHead": "6eda3ff725a1e5ee973e71cb711b065dcc3f2a16"
45
+ "gitHead": "a6589ab111fc01fd4d2cd215c31bfcff004dfc00"
47
46
  }
@@ -0,0 +1,2 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export default function update(tree: Tree): Promise<void>;
@@ -0,0 +1,17 @@
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/js:node';
11
+ (0, devkit_1.updateProjectConfiguration)(tree, projectName, projectConfig);
12
+ };
13
+ (0, executor_options_utils_1.forEachExecutorOptions)(tree, '@nx/node:node', migrateProject);
14
+ yield (0, devkit_1.formatFiles)(tree);
15
+ });
16
+ }
17
+ exports.default = update;
package/executors.json DELETED
@@ -1,16 +0,0 @@
1
- {
2
- "executors": {
3
- "node": {
4
- "implementation": "./src/executors/node/node.impl",
5
- "schema": "./src/executors/node/schema.json",
6
- "description": "Execute a Node application."
7
- }
8
- },
9
- "builders": {
10
- "node": {
11
- "implementation": "./src/executors/node/compat",
12
- "schema": "./src/executors/node/schema.json",
13
- "description": "Execute a Node application."
14
- }
15
- }
16
- }
@@ -1,2 +0,0 @@
1
- declare const _default: any;
2
- export default _default;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const devkit_1 = require("@nx/devkit");
4
- const node_impl_1 = require("./node.impl");
5
- exports.default = (0, devkit_1.convertNxExecutor)(node_impl_1.default);
@@ -1,6 +0,0 @@
1
- import { ExecutorContext } from '@nx/devkit';
2
- import type { NodeExecutorOptions } from '@nx/js/src/executors/node/schema';
3
- export declare function nodeExecutor(options: NodeExecutorOptions, context: ExecutorContext): AsyncGenerator<{
4
- success: boolean;
5
- }, void, undefined>;
6
- export default nodeExecutor;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.nodeExecutor = void 0;
4
- const tslib_1 = require("tslib");
5
- const node_impl_1 = require("@nx/js/src/executors/node/node.impl");
6
- // TODO(jack): Remove for Nx 16
7
- function nodeExecutor(options, context) {
8
- return tslib_1.__asyncGenerator(this, arguments, function* nodeExecutor_1() {
9
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues((0, node_impl_1.nodeExecutor)(options, context))));
10
- });
11
- }
12
- exports.nodeExecutor = nodeExecutor;
13
- exports.default = nodeExecutor;
@@ -1,74 +0,0 @@
1
- {
2
- "version": 2,
3
- "outputCapture": "direct-nodejs",
4
- "$schema": "http://json-schema.org/schema",
5
- "cli": "nx",
6
- "title": "Node executor",
7
- "description": "Execute Nodejs applications.",
8
- "type": "object",
9
- "properties": {
10
- "buildTarget": {
11
- "type": "string",
12
- "description": "The target to run to build you the app."
13
- },
14
- "buildTargetOptions": {
15
- "type": "object",
16
- "description": "Additional options to pass into the build target.",
17
- "default": {}
18
- },
19
- "waitUntilTargets": {
20
- "type": "array",
21
- "description": "The targets to run before starting the node app.",
22
- "default": [],
23
- "items": {
24
- "type": "string"
25
- }
26
- },
27
- "host": {
28
- "type": "string",
29
- "default": "localhost",
30
- "description": "The host to inspect the process on."
31
- },
32
- "port": {
33
- "type": "number",
34
- "default": 9229,
35
- "description": "The port to inspect the process on. Setting port to 0 will assign random free ports to all forked processes."
36
- },
37
- "inspect": {
38
- "oneOf": [
39
- {
40
- "type": "string",
41
- "enum": ["inspect", "inspect-brk"]
42
- },
43
- {
44
- "type": "boolean"
45
- }
46
- ],
47
- "description": "Ensures the app is starting with debugging.",
48
- "default": "inspect"
49
- },
50
- "runtimeArgs": {
51
- "type": "array",
52
- "description": "Extra args passed to the node process.",
53
- "default": [],
54
- "items": {
55
- "type": "string"
56
- }
57
- },
58
- "args": {
59
- "type": "array",
60
- "description": "Extra args when starting the app.",
61
- "default": [],
62
- "items": {
63
- "type": "string"
64
- }
65
- },
66
- "watch": {
67
- "type": "boolean",
68
- "description": "Enable re-building when files change.",
69
- "default": true
70
- }
71
- },
72
- "additionalProperties": false,
73
- "required": ["buildTarget"]
74
- }