Skip to content

Commit

Permalink
chore: fix anonymous.js
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonio committed Mar 22, 2024
1 parent ec462cc commit 6ec098e
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions packages/components/scripts/anonymous.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,17 @@ packageJson.scripts = {
postpack: 'mv package.bak.json package.json',
};

packageJson = prettier.format(JSON.stringify(packageJson), {
parser: 'json',
printWidth: 120,
singleQuote: true,
});
prettier
.format(JSON.stringify(packageJson), {
parser: 'json',
printWidth: 120,
singleQuote: true,
})
.then((packageJson) => {
console.log(packageJson);

console.log(packageJson);

fs.writeFileSync('./package.json', packageJson, {
encoding: 'utf8',
});
fs.writeFileSync('./package.json', packageJson, {
encoding: 'utf8',
});
})
.catch(console.error);

0 comments on commit 6ec098e

Please sign in to comment.