Skip to content

Commit

Permalink
check env PWD before using process.cwd (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip committed Jan 5, 2018
1 parent 42cacc0 commit 275ca4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/electrode-archetype-opt-inferno/optional-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const Path = require("path");

const cwd = process.cwd();
const cwd = process.env.PWD || process.cwd();

function findAppDir() {
if (cwd.indexOf("node_modules") > 0) {
Expand Down
2 changes: 1 addition & 1 deletion packages/electrode-archetype-opt-react/optional-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const Path = require("path");

const cwd = process.cwd();
const cwd = process.env.PWD || process.cwd();

function findAppDir() {
if (cwd.indexOf("node_modules") > 0) {
Expand Down

0 comments on commit 275ca4c

Please sign in to comment.