Skip to content

Commit 9cb3900

Browse files
authored
Run Prettier after updating projects.json (#442)
* Run prettier * run prettier after updating projects.json
1 parent 98d8d06 commit 9cb3900

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/update-projects-json.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import * as prettier from "prettier";
12
import fs from "fs/promises";
23
import path from "path";
34
import url from "url";
@@ -42,7 +43,7 @@ async function updateProjectsJsonFile() {
4243
}
4344
await fs.writeFile(
4445
projectsJsonPath,
45-
JSON.stringify(newProjects, null, 2) + "\n",
46+
await prettier.format(JSON.stringify(newProjects)),
4647
);
4748
}
4849

0 commit comments

Comments
 (0)