mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-18 20:49:36 +01:00
setup: use 4 threads at the minimum when bootstrapping
This commit is contained in:
committed by
Abdullah Atta
parent
26d786a368
commit
e6164b0b3e
@@ -25,7 +25,7 @@ import parser from "yargs-parser";
|
|||||||
import { fdir } from "fdir";
|
import { fdir } from "fdir";
|
||||||
import Listr from "listr";
|
import Listr from "listr";
|
||||||
|
|
||||||
const THREADS = Math.min(4, process.env.THREADS || os.cpus().length / 2);
|
const THREADS = Math.max(4, process.env.THREADS || os.cpus().length / 2);
|
||||||
const args = parser(process.argv, { alias: { scope: ["s"], offline: ["o"] } });
|
const args = parser(process.argv, { alias: { scope: ["s"], offline: ["o"] } });
|
||||||
const IS_CI = process.env.CI;
|
const IS_CI = process.env.CI;
|
||||||
const scopes = {
|
const scopes = {
|
||||||
|
|||||||
Reference in New Issue
Block a user