nx 22.6.0-beta.4 → 22.6.0-beta.6
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/bin/nx.js +6 -0
- package/package.json +11 -11
- package/src/command-line/watch/watch.js +4 -4
- package/src/core/graph/main.js +1 -1
- package/src/native/nx.wasm32-wasi.wasm +0 -0
- package/src/plugins/js/project-graph/build-dependencies/target-project-locator.d.ts.map +1 -1
- package/src/plugins/js/project-graph/build-dependencies/target-project-locator.js +6 -3
- package/src/tasks-runner/running-tasks/batch-process.d.ts +0 -3
- package/src/tasks-runner/running-tasks/batch-process.d.ts.map +1 -1
- package/src/tasks-runner/running-tasks/batch-process.js +0 -7
package/bin/nx.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
// TODO: Remove this workaround once picocolors handles FORCE_COLOR=0 correctly
|
|
5
|
+
// See: https://github.com/alexeyraspopov/picocolors/issues/100
|
|
6
|
+
if (process.env.FORCE_COLOR === '0') {
|
|
7
|
+
process.env.NO_COLOR = '1';
|
|
8
|
+
delete process.env.FORCE_COLOR;
|
|
9
|
+
}
|
|
4
10
|
const find_workspace_root_1 = require("../src/utils/find-workspace-root");
|
|
5
11
|
const pc = require("picocolors");
|
|
6
12
|
const dotenv_1 = require("../src/utils/dotenv");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nx",
|
|
3
|
-
"version": "22.6.0-beta.
|
|
3
|
+
"version": "22.6.0-beta.6",
|
|
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": {
|
|
@@ -84,16 +84,16 @@
|
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
"optionalDependencies": {
|
|
87
|
-
"@nx/nx-darwin-arm64": "22.6.0-beta.
|
|
88
|
-
"@nx/nx-darwin-x64": "22.6.0-beta.
|
|
89
|
-
"@nx/nx-freebsd-x64": "22.6.0-beta.
|
|
90
|
-
"@nx/nx-linux-arm-gnueabihf": "22.6.0-beta.
|
|
91
|
-
"@nx/nx-linux-arm64-gnu": "22.6.0-beta.
|
|
92
|
-
"@nx/nx-linux-arm64-musl": "22.6.0-beta.
|
|
93
|
-
"@nx/nx-linux-x64-gnu": "22.6.0-beta.
|
|
94
|
-
"@nx/nx-linux-x64-musl": "22.6.0-beta.
|
|
95
|
-
"@nx/nx-win32-arm64-msvc": "22.6.0-beta.
|
|
96
|
-
"@nx/nx-win32-x64-msvc": "22.6.0-beta.
|
|
87
|
+
"@nx/nx-darwin-arm64": "22.6.0-beta.6",
|
|
88
|
+
"@nx/nx-darwin-x64": "22.6.0-beta.6",
|
|
89
|
+
"@nx/nx-freebsd-x64": "22.6.0-beta.6",
|
|
90
|
+
"@nx/nx-linux-arm-gnueabihf": "22.6.0-beta.6",
|
|
91
|
+
"@nx/nx-linux-arm64-gnu": "22.6.0-beta.6",
|
|
92
|
+
"@nx/nx-linux-arm64-musl": "22.6.0-beta.6",
|
|
93
|
+
"@nx/nx-linux-x64-gnu": "22.6.0-beta.6",
|
|
94
|
+
"@nx/nx-linux-x64-musl": "22.6.0-beta.6",
|
|
95
|
+
"@nx/nx-win32-arm64-msvc": "22.6.0-beta.6",
|
|
96
|
+
"@nx/nx-win32-x64-msvc": "22.6.0-beta.6"
|
|
97
97
|
},
|
|
98
98
|
"nx-migrations": {
|
|
99
99
|
"migrations": "./migrations.json",
|
|
@@ -28,10 +28,10 @@ class BatchFunctionRunner {
|
|
|
28
28
|
fileChanges.forEach((fileChange) => {
|
|
29
29
|
this.pendingFiles.add(fileChange.path);
|
|
30
30
|
});
|
|
31
|
-
return this.process();
|
|
31
|
+
return this.process(true);
|
|
32
32
|
}
|
|
33
|
-
async process() {
|
|
34
|
-
if (!this.running && this.hasPending) {
|
|
33
|
+
async process(runAnyway) {
|
|
34
|
+
if (!this.running && (this.hasPending || runAnyway)) {
|
|
35
35
|
this.running = true;
|
|
36
36
|
// Clone the pending projects and files before clearing
|
|
37
37
|
const projects = new Set(this.pendingProjects);
|
|
@@ -41,7 +41,7 @@ class BatchFunctionRunner {
|
|
|
41
41
|
this.pendingFiles.clear();
|
|
42
42
|
return this.callback(projects, files).then(() => {
|
|
43
43
|
this.running = false;
|
|
44
|
-
this.process();
|
|
44
|
+
this.process(false);
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
else {
|