From bf160af23a5a146c72de43d37eb249b8e59bd913 Mon Sep 17 00:00:00 2001 From: Dima Date: Mon, 24 May 2021 19:54:53 +0300 Subject: [PATCH] CLI hotfix: check node_modules in current directory (#130) --- npm/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm/index.js b/npm/index.js index 5862f9ac..e87b9d10 100644 --- a/npm/index.js +++ b/npm/index.js @@ -8,7 +8,7 @@ const fs = require('fs'); let importArgs = [] -const nm = path.join(__dirname, "node_modules") +const nm = path.join("./", "node_modules") if (fs.existsSync(nm) && fs.lstatSync(nm).isDirectory()) { importArgs = ["-m", "node_modules"] }