diff --git a/Build/index.ts b/Build/index.ts index f480b09a..ac15fbc0 100644 --- a/Build/index.ts +++ b/Build/index.ts @@ -82,7 +82,7 @@ const endWorker = async (worker: WithWorker) => { const buildRedirectModulePromise = downloadPreviousBuildPromise.then(() => buildRedirectModule()); const buildStreamServicePromise = downloadPreviousBuildPromise.then(() => buildStreamService()); - const stats: Array<{ start: number, end: number, taskName: string }> = await Promise.all([ + const stats = await Promise.all([ downloadPreviousBuildPromise, downloadPublicSuffixListPromise, buildCommonPromise, @@ -118,13 +118,11 @@ const endWorker = async (worker: WithWorker) => { function printStats(stats: Array<{ start: number, end: number, taskName: string }>): void { stats.sort((a, b) => a.start - b.start); - const longestTaskName: number = Math.max(...stats.map(i => i.taskName.length)); - const realStart: number = Math.min(...stats.map(i => i.start)); - const realEnd: number = Math.max(...stats.map(i => i.end)); + const longestTaskName = Math.max(...stats.map(i => i.taskName.length)); + const realStart = Math.min(...stats.map(i => i.start)); + const realEnd = Math.max(...stats.map(i => i.end)); - const totalMs: number = realEnd - realStart; - - const statsStep: number = (totalMs / 160) | 0; + const statsStep = ((realEnd - realStart) / 160) | 0; stats.forEach(stat => { console.log( diff --git a/bun.lockb b/bun.lockb index 7ea8d990..c38d15c9 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 35ea0886..cf75aa71 100644 --- a/package.json +++ b/package.json @@ -32,13 +32,14 @@ "tldts": "^6.0.19" }, "devDependencies": { - "@eslint-sukka/node": "^4.1.7", + "@eslint-sukka/node": "4.1.9", + "@eslint-sukka/ts": "4.1.9", "@types/mocha": "10.0.2", "@types/tar": "^6.1.9", "bun-types": "^1.0.11", "chai": "4.3.10", - "eslint-config-sukka": "4.1.7", - "eslint-formatter-sukka": "4.1.7", + "eslint-config-sukka": "4.1.9", + "eslint-formatter-sukka": "4.1.9", "mocha": "^10.2.0", "typescript": "^5.2.2" },