Skip to content

Commit e73b21d

Browse files
committed
When config loads json file, ensuring the path is resolved from the file, not cwd.
1 parent 630384b commit e73b21d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/patternlab.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var patternlab_engine = function (config) {
2525
patternlab = {};
2626

2727
patternlab.package = fs.readJSONSync('./package.json');
28-
patternlab.config = config || fs.readJSONSync('./config.json');
28+
patternlab.config = config || fs.readJSONSync(path.resolve(__dirname, '../config.json'));
2929

3030
var paths = patternlab.config.paths;
3131

0 commit comments

Comments
 (0)