Skip to content

Commit

Permalink
Fix readFileSync usage in publish.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
hsndmr committed Dec 29, 2023
1 parent be3daab commit 6cc2d11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/scripts/publish.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ filesToCopy.forEach((file) => {

process.chdir(outputPath);

const json = JSON.parse(readFileSync(`package.json`, 'utf8').toString());
const json = JSON.parse(readFileSync(`package.json`).toString());
const publishedVersion = getPublishedVersion(json.name);

if (publishedVersion === json.version) {
Expand Down

0 comments on commit 6cc2d11

Please sign in to comment.