Skip to content

Commit a4136ab

Browse files
authored
fix(generate-clients): Invoke prettier relative to client-generation (#1614)
1 parent 19f3fea commit a4136ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/generate-clients/code-prettify.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// @ts-check
22
const { spawnProcess } = require("./spawn-process");
3+
const path = require("path");
34

45
const prettifyCode = async (dir) => {
5-
await spawnProcess("./node_modules/.bin/prettier", ["--write", `${dir}/**/*.{ts,js,md,json}`]);
6+
await spawnProcess(path.join(__dirname, "..", "..", "node_modules", ".bin", "prettier"), ["--write", `${dir}/**/*.{ts,js,md,json}`]);
67
};
78

89
module.exports = {

0 commit comments

Comments
 (0)