fix: GLOBALGROUP_SIZE

This commit is contained in:
AIsouler
2024-03-16 23:31:11 +08:00
parent 5d2060cef7
commit 39e604649a

View File

@@ -699,9 +699,7 @@ export const updateReadMeMd = async (
) )
.replaceAll( .replaceAll(
'--GLOBALGROUP_SIZE--', '--GLOBALGROUP_SIZE--',
newConfig newConfig.globalGroups!.length.toString(),
.globalGroups!.reduce((p, c) => p + (c.rules?.length || 0), 0)
.toString(),
) )
.replaceAll('--VERSION--', (newConfig.version || 0).toString()); .replaceAll('--VERSION--', (newConfig.version || 0).toString());
await fs.writeFile(process.cwd() + '/README.md', readMeMdText); await fs.writeFile(process.cwd() + '/README.md', readMeMdText);