diff --git a/scripts/bump-edge.ts b/scripts/bump-edge.ts index 1a117ccf..0ce9257f 100644 --- a/scripts/bump-edge.ts +++ b/scripts/bump-edge.ts @@ -1,8 +1,8 @@ -import { promises as fsp } from 'fs' -import { resolve } from 'path' -import { execSync } from 'child_process' +import { promises as fsp } from 'node:fs' +import { resolve } from 'node:path' +import { execSync } from 'node:child_process' -async function loadPackage (dir: string) { +async function loadPackage(dir: string) { const pkgPath = resolve(dir, 'package.json') const data = JSON.parse(await fsp.readFile(pkgPath, 'utf-8').catch(() => '{}')) @@ -16,7 +16,7 @@ async function loadPackage (dir: string) { } } -async function main () { +async function main() { const pkg = await loadPackage(process.cwd()) const commit = execSync('git rev-parse --short HEAD').toString('utf-8').trim() @@ -31,7 +31,6 @@ async function main () { } main().catch((err) => { - // eslint-disable-next-line no-console console.error(err) process.exit(1) })