@flatjs/evolve 1.8.1-next.68 → 1.8.1-next.69
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
package/dist/default-options.js
CHANGED
@@ -3,5 +3,5 @@ export const getMaxProcessTasks = (totalTasks, maxProcesses) => {
|
|
3
3
|
const maxCpu = Math.max(1, typeof maxProcesses === 'string' && maxProcesses.endsWith('%')
|
4
4
|
? Math.round((cpus().length * Number(maxProcesses.slice(0, -1))) / 100)
|
5
5
|
: Number(maxProcesses));
|
6
|
-
return totalTasks > maxCpu ? maxCpu : totalTasks;
|
6
|
+
return totalTasks > maxCpu ? maxCpu : Math.max(1, totalTasks);
|
7
7
|
};
|
@@ -102,7 +102,7 @@ export interface FlatEvolveOptions {
|
|
102
102
|
*
|
103
103
|
* If undefined, then all build processes will start in parallel.
|
104
104
|
* Setting this value to 1 will achieve sequential running.
|
105
|
-
* @default `
|
105
|
+
* @default `60%`
|
106
106
|
*/
|
107
107
|
maxProcesses?: number | string;
|
108
108
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@flatjs/evolve",
|
3
|
-
"version": "1.8.1-next.
|
3
|
+
"version": "1.8.1-next.69",
|
4
4
|
"license": "MIT",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"@flatjs/evolve-preset-babel": "1.8.1-next.15",
|
47
47
|
"@flatjs/forge-postcss-plugin-pixel": "1.8.1-next.30",
|
48
48
|
"@flatjs/graph": "1.8.1-next.36",
|
49
|
-
"@flatjs/mock": "1.8.1-next.
|
49
|
+
"@flatjs/mock": "1.8.1-next.57",
|
50
50
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
|
51
51
|
"@types/babel__core": "7.20.1",
|
52
52
|
"babel-loader": "9.1.2",
|