mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-25 05:03:10 +08:00
13 lines
277 B
JavaScript
13 lines
277 B
JavaScript
|
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,
|
||
|
};
|