Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

Commit 3180d66

Browse files
Add the encoding to guarantee the result is a string
1 parent dd87953 commit 3180d66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-scripts/publish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async function isValidPackagePath(packageDir) {
4848
async function getPackageInfo(packageDir) {
4949
return {
5050
path: packageDir,
51-
pkg: JSON.parse(await fs.readFile(`${packageDir}/package.json`))
51+
pkg: JSON.parse(await fs.readFile(`${packageDir}/package.json`, 'utf8'))
5252
};
5353
}
5454

0 commit comments

Comments
 (0)