@flatjs/evolve 1.8.1-next.69 → 1.8.1-next.71

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @flatjs/evolve
2
2
 
3
+ ## 1.8.1-next.71
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [0c3afab]
8
+ - @flatjs/mock@1.8.1-next.58
9
+
10
+ ## 1.8.1-next.70
11
+
12
+ ### Patch Changes
13
+
14
+ - ae142d5: update logging format, change `maxProcesses` default to 50%
15
+
3
16
  ## 1.8.1-next.69
4
17
 
5
18
  ### Patch Changes
@@ -69,7 +69,7 @@ export const defaultEvolveOptions = {
69
69
  throwError: false,
70
70
  showAllInstalledGraph: true,
71
71
  },
72
- maxProcesses: '60%',
72
+ maxProcesses: '50%',
73
73
  /**
74
74
  * CI default configurations.
75
75
  */
@@ -116,8 +116,8 @@ export const startDynamicBuild = async (projectCwd, earlyCommit, lastCommit, ove
116
116
  logger.warn(`No build entries providered!`);
117
117
  return [];
118
118
  }
119
- logger.info(`Start dynamic build:\n${JSON.stringify({ buildEntries: buildEntryKeys }, null, 2)}`);
120
119
  const workerSize = getMaxProcessTasks(buildEntryKeys.length, newEvolveOptions.maxProcesses);
120
+ logger.info(`Start dynamic build with (${chalk(['magenta'])(String(workerSize))}) workers:\n${JSON.stringify({ buildEntries: buildEntryKeys }, null, 2)}`);
121
121
  const workerPath = pathToFileURL(getDirname(import.meta.url, './start-build-worker.js')).toString();
122
122
  const worker = await createThreadPool(workerPath, {
123
123
  size: workerSize,
@@ -21,8 +21,8 @@ export const startBuild = async (projectCwd, buildModules, overrideEvolveOptions
21
21
  logger.warn(`No build entries providered!`);
22
22
  return [];
23
23
  }
24
- logger.info(`Start standard build:\n${JSON.stringify({ buildEntries: buildEntryKeys }, null, 2)}`);
25
24
  const workerSize = getMaxProcessTasks(buildEntryKeys.length, newEvolveOptions.maxProcesses);
25
+ logger.info(`Start standard build with (${chalk(['magenta'])(String(workerSize))}) workers:\n${JSON.stringify({ buildEntries: buildEntryKeys }, null, 2)}`);
26
26
  const workerPath = pathToFileURL(getDirname(import.meta.url, './start-build-worker.js')).toString();
27
27
  const worker = await createThreadPool(workerPath, {
28
28
  size: workerSize,
@@ -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 `60%`
105
+ * @default `50%`
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.69",
3
+ "version": "1.8.1-next.71",
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.57",
49
+ "@flatjs/mock": "1.8.1-next.58",
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",