Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency nx to v20 #3497

Merged
merged 2 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/twelve-swans-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
23 changes: 23 additions & 0 deletions .yarn/patches/nx-npm-20.3.3-84b801f64d.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff --git a/src/tasks-runner/default-tasks-runner.js b/src/tasks-runner/default-tasks-runner.js
index 56630f64624b0340fa59fc7e912f7a07a909bd1e..bc5d3f5adcf1519184b9ed54747e9858eeec41ba 100644
--- a/src/tasks-runner/default-tasks-runner.js
+++ b/src/tasks-runner/default-tasks-runner.js
@@ -54,16 +54,8 @@ class RemoteCacheV2 {
}
exports.RemoteCacheV2 = RemoteCacheV2;
const defaultTasksRunner = async (tasks, options, context) => {
- if (options['parallel'] === 'false' ||
- options['parallel'] === false) {
- options['parallel'] = 1;
- }
- else if (options['parallel'] === 'true' ||
- options['parallel'] === true ||
- options['parallel'] === undefined ||
- options['parallel'] === '') {
- options['parallel'] = Number(options['maxParallel'] || 3);
- }
+ const threads = require("os").availableParallelism();
+ options['parallel'] = process.env["CI"] ? threads : threads - 1;
await options.lifeCycle.startCommand();
try {
return await runAllTasks(tasks, options, context);
8 changes: 0 additions & 8 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@
"cache": true
}
},
"tasksRunnerOptions": {
"default": {
"runner": "./scripts/nx-tasks-runner.cjs",
"options": {
"parallel": 0
}
}
},
"pluginsConfig": {
"@nx/js": {
"analyzeSourceFiles": false
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"eslint": "^9.0.0",
"knip": "^5.30.2",
"metro": "^0.81.0",
"nx": "~19.8.0",
"nx": "patch:nx@npm%3A20.3.3#~/.yarn/patches/nx-npm-20.3.3-84b801f64d.patch",
"prettier": "^3.0.0",
"prettier-plugin-organize-imports": "^4.0.0",
"tsx": "^4.15.0",
Expand Down
23 changes: 0 additions & 23 deletions scripts/nx-tasks-runner.cjs

This file was deleted.

Loading
Loading