CLI hotfix: check node_modules in current directory (#130)

This commit is contained in:
Dima 2021-05-24 19:54:53 +03:00 committed by GitHub
parent 88c7689768
commit bf160af23a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ const fs = require('fs');
let importArgs = [] let importArgs = []
const nm = path.join(__dirname, "node_modules") const nm = path.join("./", "node_modules")
if (fs.existsSync(nm) && fs.lstatSync(nm).isDirectory()) { if (fs.existsSync(nm) && fs.lstatSync(nm).isDirectory()) {
importArgs = ["-m", "node_modules"] importArgs = ["-m", "node_modules"]
} }