Skip to content

Commit

Permalink
chore(dependencies): Update dependencies.
Browse files Browse the repository at this point in the history
[BRANCH: master]
  • Loading branch information
thezimmee committed Jun 1, 2018
1 parent dc3e17d commit cd1fed3
Show file tree
Hide file tree
Showing 3 changed files with 3,177 additions and 3,878 deletions.
11 changes: 5 additions & 6 deletions lib/stakcss.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,13 +304,12 @@ function createWatcher(config = {}) {
*/
function getConfigFile(config = {}) {
// Load config file with cosmiconfig.
const cosmiconfig = require('cosmiconfig')('stakcss', {
rcExtensions: true,
sync: true
});
const cosmiconfig = require('cosmiconfig')('stakcss');
// Return the config.
return cosmiconfig.load(config.cwd, typeof config.config === 'string' ? config.config : null)
.config;
return (typeof config.config === 'string'
? cosmiconfig.loadSync(config.config)
: cosmiconfig.searchSync(config.cwd)
).config;
}

/**
Expand Down

0 comments on commit cd1fed3

Please sign in to comment.