nx 19.4.1 → 19.5.0-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +30 -26
- package/src/command-line/graph/graph.js +7 -2
- package/src/command-line/watch/watch.js +6 -0
- package/src/core/graph/main.js +1 -1
- package/src/daemon/client/client.d.ts +1 -0
- package/src/daemon/client/client.js +14 -2
- package/src/devkit-exports.d.ts +1 -0
- package/src/devkit-exports.js +3 -1
- package/src/native/browser.js +1 -0
- package/src/native/index.d.ts +178 -138
- package/src/native/index.js +16 -0
- package/src/native/native-bindings.js +352 -238
- package/src/native/nx.wasi-browser.js +108 -0
- package/src/native/nx.wasi.cjs +139 -0
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/native/wasi-worker-browser.mjs +32 -0
- package/src/native/wasi-worker.mjs +63 -0
- package/src/project-graph/plugins/internal-api.js +0 -1
- package/src/project-graph/utils/project-configuration-utils.d.ts +8 -6
- package/src/project-graph/utils/project-configuration-utils.js +109 -44
- package/src/project-graph/utils/retrieve-workspace-files.d.ts +3 -3
- package/src/tasks-runner/pseudo-terminal.js +3 -0
- package/src/utils/nx-plugin.deprecated.js +0 -2
- package/src/plugins/target-defaults/symbols.d.ts +0 -17
- package/src/plugins/target-defaults/symbols.js +0 -20
- package/src/plugins/target-defaults/target-defaults-plugin.d.ts +0 -121
- package/src/plugins/target-defaults/target-defaults-plugin.js +0 -176
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "nx",
|
3
|
-
"version": "19.
|
3
|
+
"version": "19.5.0-beta.0",
|
4
4
|
"private": false,
|
5
5
|
"description": "The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.",
|
6
6
|
"repository": {
|
@@ -37,6 +37,7 @@
|
|
37
37
|
},
|
38
38
|
"homepage": "https://nx.dev",
|
39
39
|
"dependencies": {
|
40
|
+
"@napi-rs/wasm-runtime": "0.2.4",
|
40
41
|
"@yarnpkg/lockfile": "^1.1.0",
|
41
42
|
"@yarnpkg/parsers": "3.0.0-rc.46",
|
42
43
|
"@zkochan/js-yaml": "0.0.7",
|
@@ -70,7 +71,7 @@
|
|
70
71
|
"yargs-parser": "21.1.1",
|
71
72
|
"node-machine-id": "1.1.12",
|
72
73
|
"ora": "5.3.0",
|
73
|
-
"@nrwl/tao": "19.
|
74
|
+
"@nrwl/tao": "19.5.0-beta.0"
|
74
75
|
},
|
75
76
|
"peerDependencies": {
|
76
77
|
"@swc-node/register": "^1.8.0",
|
@@ -85,16 +86,16 @@
|
|
85
86
|
}
|
86
87
|
},
|
87
88
|
"optionalDependencies": {
|
88
|
-
"@nx/nx-darwin-x64": "19.
|
89
|
-
"@nx/nx-darwin-arm64": "19.
|
90
|
-
"@nx/nx-linux-x64-gnu": "19.
|
91
|
-
"@nx/nx-linux-x64-musl": "19.
|
92
|
-
"@nx/nx-win32-x64-msvc": "19.
|
93
|
-
"@nx/nx-linux-arm64-gnu": "19.
|
94
|
-
"@nx/nx-linux-arm64-musl": "19.
|
95
|
-
"@nx/nx-linux-arm-gnueabihf": "19.
|
96
|
-
"@nx/nx-win32-arm64-msvc": "19.
|
97
|
-
"@nx/nx-freebsd-x64": "19.
|
89
|
+
"@nx/nx-darwin-x64": "19.5.0-beta.0",
|
90
|
+
"@nx/nx-darwin-arm64": "19.5.0-beta.0",
|
91
|
+
"@nx/nx-linux-x64-gnu": "19.5.0-beta.0",
|
92
|
+
"@nx/nx-linux-x64-musl": "19.5.0-beta.0",
|
93
|
+
"@nx/nx-win32-x64-msvc": "19.5.0-beta.0",
|
94
|
+
"@nx/nx-linux-arm64-gnu": "19.5.0-beta.0",
|
95
|
+
"@nx/nx-linux-arm64-musl": "19.5.0-beta.0",
|
96
|
+
"@nx/nx-linux-arm-gnueabihf": "19.5.0-beta.0",
|
97
|
+
"@nx/nx-win32-arm64-msvc": "19.5.0-beta.0",
|
98
|
+
"@nx/nx-freebsd-x64": "19.5.0-beta.0"
|
98
99
|
},
|
99
100
|
"nx-migrations": {
|
100
101
|
"migrations": "./migrations.json",
|
@@ -170,21 +171,24 @@
|
|
170
171
|
"access": "public"
|
171
172
|
},
|
172
173
|
"napi": {
|
173
|
-
"
|
174
|
-
"
|
175
|
-
|
174
|
+
"binaryName": "nx",
|
175
|
+
"packageName": "@nx/nx",
|
176
|
+
"wasm": {
|
177
|
+
"initialMemory": 16384,
|
178
|
+
"maximumMemory": 32768
|
176
179
|
},
|
177
|
-
"
|
178
|
-
"
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
180
|
+
"targets": [
|
181
|
+
"x86_64-unknown-linux-gnu",
|
182
|
+
"x86_64-pc-windows-msvc",
|
183
|
+
"x86_64-apple-darwin",
|
184
|
+
"aarch64-apple-darwin",
|
185
|
+
"aarch64-unknown-linux-gnu",
|
186
|
+
"aarch64-unknown-linux-musl",
|
187
|
+
"aarch64-pc-windows-msvc",
|
188
|
+
"armv7-unknown-linux-gnueabihf",
|
189
|
+
"x86_64-unknown-linux-musl",
|
190
|
+
"x86_64-unknown-freebsd"
|
191
|
+
]
|
188
192
|
},
|
189
193
|
"main": "./bin/nx.js",
|
190
194
|
"type": "commonjs"
|
@@ -319,9 +319,14 @@ async function generateGraph(args, affectedProjects) {
|
|
319
319
|
}
|
320
320
|
}
|
321
321
|
exports.generateGraph = generateGraph;
|
322
|
-
async function startServer(html, environmentJs, host, port = 4211,
|
322
|
+
async function startServer(html, environmentJs, host, port = 4211, watchForChanges = true, affected = [], focus = null, groupByFolder = false, exclude = []) {
|
323
323
|
let unregisterFileWatcher;
|
324
|
-
if (
|
324
|
+
if (watchForChanges && !client_1.daemonClient.enabled()) {
|
325
|
+
output_1.output.warn({
|
326
|
+
title: 'Nx Daemon is not enabled. Graph will not refresh on file changes.',
|
327
|
+
});
|
328
|
+
}
|
329
|
+
if (watchForChanges && client_1.daemonClient.enabled()) {
|
325
330
|
unregisterFileWatcher = await createFileWatcher();
|
326
331
|
}
|
327
332
|
const { projectGraphClientResponse, sourceMapResponse } = await createProjectGraphAndSourceMapClientResponse(affected);
|
@@ -116,6 +116,12 @@ async function watch(args) {
|
|
116
116
|
if (args.verbose) {
|
117
117
|
process.env.NX_VERBOSE_LOGGING = 'true';
|
118
118
|
}
|
119
|
+
if (client_1.daemonClient.enabled()) {
|
120
|
+
output_1.output.error({
|
121
|
+
title: 'Daemon is not running. The watch command is not supported without the Nx Daemon.',
|
122
|
+
});
|
123
|
+
process.exit(1);
|
124
|
+
}
|
119
125
|
if (args.includeGlobalWorkspaceFiles &&
|
120
126
|
args.command.match(projectReplacementRegex)) {
|
121
127
|
output_1.output.error({
|