diff --git a/generate.js b/generate.js index b7b4108d..6b99aa28 100644 --- a/generate.js +++ b/generate.js @@ -7,7 +7,7 @@ const { execSync } = require("child_process"); const isDir = fileName => { try { - return fs.lstatSync(fileName).isDirectory(); + return fs.lstatSync(fileName).isDirectory() || fs.lstatSync(fileName).isSymbolicLink(); } catch(e) { if (e.code === 'ENOENT') { return false