Skip to content

Commit

Permalink
Set prettier parser last
Browse files Browse the repository at this point in the history
  • Loading branch information
andreogle committed Aug 23, 2023
1 parent 22d4e0c commit ee1215f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function mergeJsonFiles(): Promise<void> {
const rawContent = `${HEADER_CONTENT}\nexport const CHAINS: Chain[] = ${JSON.stringify(combinedChains)};\n\n`;

const prettierConfig = JSON.parse(fs.readFileSync(PRETTIER_CONFIG, 'utf-8'));
const formattedContent = await prettier.format(rawContent, { parser: 'typescript', ...prettierConfig });
const formattedContent = await prettier.format(rawContent, { ...prettierConfig, parser: 'typescript' });

if (!fs.existsSync(OUTPUT_DIR)) {
fs.mkdirSync(OUTPUT_DIR);
Expand Down

0 comments on commit ee1215f

Please sign in to comment.