Skip to content

Commit

Permalink
fix(version): fix file formatting on git add (#3796)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitZugmeyer committed Aug 7, 2023
1 parent b5dcbf4 commit 3123c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/commands/version/src/lib/git-add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function maybeFormatFile(filePath) {
const input = fs.readFileSync(fullFilePath, "utf8");
fs.writeFileSync(
fullFilePath,
resolvedPrettier.format(input, { ...config, filepath: fullFilePath }),
await resolvedPrettier.format(input, { ...config, filepath: fullFilePath }),
"utf8"
);
log.silly("version", `Successfully applied prettier to updated file: ${filePath}`);
Expand Down

0 comments on commit 3123c76

Please sign in to comment.