From e6164b0b3e11f76a4ad62337e98d76bb6ecde492 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Wed, 26 Jul 2023 11:45:16 +0500 Subject: [PATCH] setup: use 4 threads at the minimum when bootstrapping --- scripts/bootstrap.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bootstrap.mjs b/scripts/bootstrap.mjs index f347c80cd..13e14076e 100644 --- a/scripts/bootstrap.mjs +++ b/scripts/bootstrap.mjs @@ -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 = {