Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #138 from hcodes/update_cosmiconfig
Browse files Browse the repository at this point in the history
Update cosmiconfig
  • Loading branch information
hcodes committed Mar 23, 2020
2 parents b96a982 + ac3e086 commit 7635299
Show file tree
Hide file tree
Showing 3 changed files with 414 additions and 286 deletions.
6 changes: 3 additions & 3 deletions lib/config.js
@@ -1,7 +1,7 @@
'use strict';

const chalk = require('chalk');
const cosmiconfig = require('cosmiconfig');
const cosmiconfig = require('cosmiconfig').cosmiconfigSync;
const debug = require('./debug');
const printDebug = debug.print;
const exitCodes = require('./exit-codes');
Expand Down Expand Up @@ -44,9 +44,9 @@ module.exports = {

try {
if (file) {
data = explorer.loadSync(file).config;
data = explorer.load(file).config;
} else {
const result = explorer.searchSync();
const result = explorer.search();
if (result) {
file = result.filepath;
data = result.config;
Expand Down

0 comments on commit 7635299

Please sign in to comment.