From 715df2bd456546f3cbcb9e97745f924d33415950 Mon Sep 17 00:00:00 2001 From: anikethsaha Date: Sat, 23 Mar 2019 01:12:47 +0530 Subject: [PATCH] fix: process.env.PWD to process.cwd() Changed the current working directory assignee from `process.env.PWD` to `process.cwd()` as there is no key present for `PWD` in `env` object --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 16d30b2..38b4306 100755 --- a/index.js +++ b/index.js @@ -5,7 +5,7 @@ const { execSync } = require("child_process"); const fs = require("fs"); const { resolve } = require("path"); -const USER_DIRECTORY = process.env.PWD; +const USER_DIRECTORY = process.cwd(); const TEMPLATE_DIRECTORY = resolve(__dirname, "template"); const QUESTIONS = [ { @@ -91,4 +91,4 @@ function install() { const answers = await question(); scaffold(answers); install(); -})(); \ No newline at end of file +})();