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 d8dd3da commit 8ea8e73Copy full SHA for 8ea8e73
scripts/generate-clients/code-gen.js
@@ -1,6 +1,6 @@
1
const path = require("path");
2
-const { copyFileSync, emptyDirSync } = require("fs-extra");
3
-const { readdirSync, lstatSync } = require("fs");
+const { emptyDirSync } = require("fs-extra");
+const { copyFileSync, readdirSync, lstatSync } = require("fs");
4
const { spawnProcess } = require("./spawn-process");
5
const {
6
CODE_GEN_ROOT,
@@ -22,10 +22,7 @@ const generateClients = async models => {
22
console.log(`copying model ${modelFileName}...`);
23
copyFileSync(
24
modelPath,
25
- path.join(TEMP_CODE_GEN_INPUT_DIR, modelFileName),
26
- {
27
- overwrite: true
28
- }
+ path.join(TEMP_CODE_GEN_INPUT_DIR, modelFileName)
29
);
30
}
31
} else if (Array.isArray(models)) {
0 commit comments