From: Jérôme Benoit Date: Sat, 22 Jul 2023 21:52:51 +0000 (+0200) Subject: build: ensure maxWorkers is an integer X-Git-Tag: v2.6.21~39 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1a89e64634e98f654c004bf702209570c513bd8b;p=poolifier.git build: ensure maxWorkers is an integer Signed-off-by: Jérôme Benoit --- diff --git a/rollup.config.mjs b/rollup.config.mjs index d88f9734..28b89d86 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -9,7 +9,7 @@ const isDevelopmentBuild = process.env.BUILD === 'development' const isAnalyzeBuild = process.env.ANALYZE const isDocumentationBuild = process.env.DOCUMENTATION -const maxWorkers = cpus().length / 2 +const maxWorkers = Math.floor(cpus().length / 2) export default { input: 'src/index.ts',