Skip to content

Commit 4ecb916

Browse files
committed
fix: after update dep
1 parent af63894 commit 4ecb916

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/cfg-resolve.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
import cosmiconfig from 'cosmiconfig';
1+
import {cosmiconfigSync} from 'cosmiconfig';
22
import toCamelCase from 'to-camel-case';
33
import mergeOptions from 'merge-options';
44

55
export default ({input, flags = {}}) => {
6-
const explorer = cosmiconfig('posthtml');
6+
const explorer = cosmiconfigSync('posthtml');
77
let {config, use, output} = flags;
88

99
if (config) {
10-
({config} = explorer.loadSync(config));
10+
({config} = explorer.load(config));
1111
}
1212

1313
if (use) {
1414
use = [].concat(use).reduce((cfg, key) => mergeOptions(cfg, {plugins: {[key]: flags[toCamelCase(key)] || {}}}), {});
1515
}
1616

1717
if (!config && !use) {
18-
({config} = explorer.searchSync());
18+
({config} = explorer.search());
1919
}
2020

2121
return mergeOptions({

src/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const cli = meow(`
4646
alias: 'o'
4747
},
4848
use: {
49-
type: 'Array',
49+
type: 'array',
5050
alias: 'u'
5151
}
5252
}

0 commit comments

Comments
 (0)