chore(scripts): fix type error (#16743)

* chore: fix type error

* update build-table.ts

Co-authored-by: btea <2356281422@qq.com>

---------

Co-authored-by: btea <2356281422@qq.com>
This commit is contained in:
sea / 神秘海 2024-05-03 21:43:47 +08:00 committed by GitHub
parent bfe5b774f5
commit d468b38494
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,7 @@ import fs from 'fs/promises'
import path from 'path'
async function main() {
const threshold = process.env.THRESHOLD || 40
const threshold = Number(process.env.THRESHOLD) || 40
let output: string
const diffOutput = await fs.readFile(
path.resolve(__dirname, '..', 'tmp/diff.txt'),