Skip to content

Commit 42fdc74

Browse files
committed
fix: beta release script
1 parent cb79eb8 commit 42fdc74

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

beta-release.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import util from 'util'
2+
import fs from 'node:fs/promises'
23
import { exec as execCallback } from 'child_process'
34
import minimist from 'minimist'
4-
import pkg from './package.json' assert { type: 'json' }
55

66
const exec = util.promisify(execCallback)
7+
const pkg = JSON.parse(await fs.readFile(new URL('./package.json', import.meta.url), 'utf8'))
78

89
const args = minimist(process.argv.slice(2))
910

0 commit comments

Comments
 (0)