diff --git a/tasks/config/user.js b/tasks/config/user.js index 7b7c16d453..ca0c93c067 100644 --- a/tasks/config/user.js +++ b/tasks/config/user.js @@ -28,7 +28,7 @@ var try { // looks for config file across all parent directories - userConfig = requireDotFile('semantic.json'); + userConfig = requireDotFile('semantic.json', process.cwd()); } catch(error) { if(error.code === 'MODULE_NOT_FOUND') { diff --git a/tasks/install.js b/tasks/install.js index a094e237d9..2ed838d35c 100644 --- a/tasks/install.js +++ b/tasks/install.js @@ -57,7 +57,7 @@ var module.exports = function (callback) { var - currentConfig = requireDotFile('semantic.json'), + currentConfig = requireDotFile('semantic.json', process.cwd()), manager = install.getPackageManager(), rootQuestions = questions.root, installFolder = false,