@flatjs/evolve 1.8.1-next.68 → 1.8.1-next.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
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
|
+
|
|
9
|
+
## 1.8.1-next.69
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 1595ad5: change default maxProcessort to 60%
|
|
14
|
+
- Updated dependencies [63f4598]
|
|
15
|
+
- @flatjs/mock@1.8.1-next.57
|
|
16
|
+
|
|
3
17
|
## 1.8.1-next.68
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
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
|
};
|
|
@@ -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,
|
package/dist/main/start-build.js
CHANGED
|
@@ -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,
|
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.70",
|
|
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",
|