mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-28 06:20:12 +00:00
* Do some code changes & run prettier and eslint
* Fix test:test-type script
* Apply code review suggestions
* update heartbeat interval & add a reason for the specific value
* Fix husky error
* Update to TS 5.5
And use ${configDir}
* Fix test.json tsconfig base
---------
Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
13 lines
516 B
JavaScript
13 lines
516 B
JavaScript
import fs from 'node:fs'
|
|
import os from 'node:os'
|
|
|
|
const hostCpu = os.cpus()[0].model.trim()
|
|
const targetCpu = await fetch('https://raw.githubusercontent.com/discordeno/discordeno/benchies/cpu')
|
|
.then(async (res) => await res.text())
|
|
.then((text) => text.slice(0, -1))
|
|
console.dir(`host cpu: ${hostCpu} target cpu: ${targetCpu}`)
|
|
|
|
let outputFile = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8')
|
|
outputFile += `\nmatch=${hostCpu === targetCpu}`
|
|
fs.writeFileSync(process.env.GITHUB_OUTPUT, outputFile, 'utf8')
|