chore: migrate formatting to Oxfmt (#615)

This commit is contained in:
morluto
2026-10-06 01:59:19 +08:00
committed by GitHub
parent f557207887
commit 5daaa453ff
25 changed files with 514 additions and 139 deletions
+5 -2
View File
@@ -1,4 +1,4 @@
import { format } from "prettier";
import { formatGeneratedFile } from "./format-generated-file.mjs";
import { assertSameNames, digest, loadSources } from "./catalog-core.mjs";
import {
@@ -67,4 +67,7 @@ export const createProductCatalog = async (root) => {
/** Stable checked-in representation of the product catalog. */
export const serializeProductCatalog = (catalog) =>
format(JSON.stringify(catalog, null, 2), { parser: "json" });
formatGeneratedFile(
"docs/product-catalog.json",
JSON.stringify(catalog, null, 2),
);