@flatjs/evolve 1.8.1-next.67 → 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
@@ -1,5 +1,21 @@
1
1
  # @flatjs/evolve
2
2
 
3
+ ## 1.8.1-next.69
4
+
5
+ ### Patch Changes
6
+
7
+ - 1595ad5: change default maxProcessort to 60%
8
+ - Updated dependencies [63f4598]
9
+ - @flatjs/mock@1.8.1-next.57
10
+
11
+ ## 1.8.1-next.68
12
+
13
+ ### Patch Changes
14
+
15
+ - fa475c0: update concurrent max to workerSize
16
+ - Updated dependencies [e9f2e4b]
17
+ - @flatjs/mock@1.8.1-next.56
18
+
3
19
  ## 1.8.1-next.67
4
20
 
5
21
  ### Patch Changes
@@ -69,7 +69,7 @@ export const defaultEvolveOptions = {
69
69
  throwError: false,
70
70
  showAllInstalledGraph: true,
71
71
  },
72
- maxProcesses: '80%',
72
+ maxProcesses: '60%',
73
73
  /**
74
74
  * CI default configurations.
75
75
  */
@@ -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
  };
@@ -123,7 +123,7 @@ export const startDynamicBuild = async (projectCwd, earlyCommit, lastCommit, ove
123
123
  size: workerSize,
124
124
  });
125
125
  const buildTasks = new Listr([], {
126
- concurrent: true,
126
+ concurrent: workerSize,
127
127
  exitOnError: true,
128
128
  });
129
129
  const buildResults = [];
@@ -28,7 +28,7 @@ export const startBuild = async (projectCwd, buildModules, overrideEvolveOptions
28
28
  size: workerSize,
29
29
  });
30
30
  const buildTasks = new Listr([], {
31
- concurrent: true,
31
+ concurrent: workerSize,
32
32
  exitOnError: true,
33
33
  });
34
34
  const buildResults = [];
@@ -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 `50%`
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.67",
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.55",
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",