Skip to content

Commit

Permalink
chore(scripts): remove prettier API call in generating client types map
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Jul 28, 2024
1 parent 8ae9bf1 commit da245b8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/generateClientTypesMap/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { writeFile } from "node:fs/promises";
import { join } from "node:path";
import { format } from "prettier";

import {
CLIENT_NAMES,
Expand Down Expand Up @@ -39,9 +38,6 @@ const codegenComment = `// This file is generated by scripts/generateClientTypes
fileContent += JSON.stringify(clientTypesMap);
fileContent += ";\n";

await writeFile(
relativeFilePath,
await format(fileContent, { parser: "typescript", printWidth: 100 })
);
await writeFile(relativeFilePath, fileContent);
}
})();

0 comments on commit da245b8

Please sign in to comment.