Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Commit 5eecae7

Browse files
committed
Format examples.json after generation
1 parent 98d3753 commit 5eecae7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/generate-diffs.ts

+1
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ const json = examples.map((template) => ({
225225
...(frontmatters[template.name] ?? {}),
226226
}));
227227
await writeFile('examples.json', JSON.stringify(json, null, 2) + '\n', 'utf-8');
228+
await execa('prettier', ['--write', 'examples.json']);
228229

229230
if (changedExampleSourceCode.length > 0) {
230231
console.log();

0 commit comments

Comments
 (0)