We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19f3fea commit a4136abCopy full SHA for a4136ab
scripts/generate-clients/code-prettify.js
@@ -1,8 +1,9 @@
1
// @ts-check
2
const { spawnProcess } = require("./spawn-process");
3
+const path = require("path");
4
5
const prettifyCode = async (dir) => {
- 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}`]);
7
};
8
9
module.exports = {
0 commit comments