Skip to content

Commit

Permalink
fix: Specify parser used in prettier format function
Browse files Browse the repository at this point in the history
  • Loading branch information
youthfulhps committed Dec 10, 2023
1 parent 59982a3 commit 275431c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default (async () => {

const formattedScript = format(rawScript, {
plugins: [plugin],
parser: 'babel',
});

const writeDirectory = args[1].split('/');
Expand Down

0 comments on commit 275431c

Please sign in to comment.