build: ensure maxWorkers is an integer
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 22 Jul 2023 21:52:51 +0000 (23:52 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 22 Jul 2023 21:52:51 +0000 (23:52 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
rollup.config.mjs

index d88f9734de2f431f89c2a79ccc5038b88ee17f98..28b89d86ba9a550a80637b5d18217f569f42ec0d 100644 (file)
@@ -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',