setup: use 4 threads at the minimum when bootstrapping

This commit is contained in:
Abdullah Atta
2023-07-26 11:45:16 +05:00
committed by Abdullah Atta
parent 26d786a368
commit e6164b0b3e

View File

@@ -25,7 +25,7 @@ import parser from "yargs-parser";
import { fdir } from "fdir";
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 IS_CI = process.env.CI;
const scopes = {