Skip to content

Commit

Permalink
fix: process.env.PWD to process.cwd()
Browse files Browse the repository at this point in the history
Changed the current working directory assignee from `process.env.PWD` to `process.cwd()` as there is no key present for `PWD` in `env` object
  • Loading branch information
anikethsaha authored and rishabh3112 committed Mar 23, 2019
1 parent 40b01a4 commit 715df2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
{
Expand Down Expand Up @@ -91,4 +91,4 @@ function install() {
const answers = await question();
scaffold(answers);
install();
})();
})();

0 comments on commit 715df2b

Please # to comment.