diff --git a/packages/electrode-archetype-opt-inferno/optional-check.js b/packages/electrode-archetype-opt-inferno/optional-check.js index 180c629ad..5a300264f 100644 --- a/packages/electrode-archetype-opt-inferno/optional-check.js +++ b/packages/electrode-archetype-opt-inferno/optional-check.js @@ -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) { diff --git a/packages/electrode-archetype-opt-react/optional-check.js b/packages/electrode-archetype-opt-react/optional-check.js index 034c6cd28..d8d4b2053 100644 --- a/packages/electrode-archetype-opt-react/optional-check.js +++ b/packages/electrode-archetype-opt-react/optional-check.js @@ -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) {