Skip to content

Commit e0ccbfc

Browse files
authored
fear(chore): search for semantic.json from current workspace path
In some situations (for example in yarn workspaces), mostly within custom build chains, the users semantic.json cannot be found because the requireDotFile starts from within the fomantic folder. Instead , the second parameter should be given as process.cwd() to support starting the search in a different folder
1 parent 544caec commit e0ccbfc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tasks/config/user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var
2828

2929
try {
3030
// looks for config file across all parent directories
31-
userConfig = requireDotFile('semantic.json');
31+
userConfig = requireDotFile('semantic.json', process.cwd());
3232
}
3333
catch(error) {
3434
if(error.code === 'MODULE_NOT_FOUND') {

tasks/install.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var
5757
module.exports = function (callback) {
5858

5959
var
60-
currentConfig = requireDotFile('semantic.json'),
60+
currentConfig = requireDotFile('semantic.json', process.cwd()),
6161
manager = install.getPackageManager(),
6262
rootQuestions = questions.root,
6363
installFolder = false,

0 commit comments

Comments
 (0)