1
0
mirror of https://github.com/storybookjs/storybook.git synced 2025-03-25 05:03:10 +08:00

13 lines
277 B
JavaScript
Raw Normal View History

const os = require('os');
/**
* The maximum number of concurrent tasks we want to have on some CLI and CI tasks.
* The amount of CPUS minus one.
* @type {number}
*/
const maxConcurrentTasks = Math.max(1, os.cpus().length - 1);
module.exports = {
maxConcurrentTasks,
};