Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Use root path of config file, not cwd, as the base path
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetrovich committed Jul 1, 2018
1 parent 6dd7908 commit 775cc7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stylemark.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function generate(params) {
options.output = output;
options.match = options.match || defaultMatchExtensions;
options.excludeDir = defaultExcludeDirectories.concat(options.excludeDir);
options.baseDir = options.baseDir ? findRoot(path.resolve(options.baseDir)) : findRoot(process.cwd());
options.baseDir = options.baseDir ? findRoot(path.resolve(options.baseDir)) : findRoot(configPath);

['match', 'excludeDir'].forEach(name => {
options[name] = _.isString(options[name]) ? new RegExp(options[name]) : options[name];
Expand Down

0 comments on commit 775cc7f

Please sign in to comment.