Skip to content

Commit

Permalink
fix: use copyFileSync from node (#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Jun 30, 2020
1 parent d8dd3da commit 8ea8e73
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions scripts/generate-clients/code-gen.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require("path");
const { copyFileSync, emptyDirSync } = require("fs-extra");
const { readdirSync, lstatSync } = require("fs");
const { emptyDirSync } = require("fs-extra");
const { copyFileSync, readdirSync, lstatSync } = require("fs");
const { spawnProcess } = require("./spawn-process");
const {
CODE_GEN_ROOT,
Expand All @@ -22,10 +22,7 @@ const generateClients = async models => {
console.log(`copying model ${modelFileName}...`);
copyFileSync(
modelPath,
path.join(TEMP_CODE_GEN_INPUT_DIR, modelFileName),
{
overwrite: true
}
path.join(TEMP_CODE_GEN_INPUT_DIR, modelFileName)
);
}
} else if (Array.isArray(models)) {
Expand Down

0 comments on commit 8ea8e73

Please sign in to comment.