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

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @flatjs/evolve
2
2
 
3
+ ## 1.8.1-next.70
4
+
5
+ ### Patch Changes
6
+
7
+ - ae142d5: update logging format, change `maxProcesses` default to 50%
8
+
3
9
  ## 1.8.1-next.69
4
10
 
5
11
  ### 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.70",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {