Skip to content

Commit 8d93107

Browse files
committed
perf: default for base config
1 parent 7a96127 commit 8d93107

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/cfg-resolve.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ import mergeOptions from 'merge-options';
55

66
export default ({input, flags = {}}) => {
77
const explorer = cosmiconfigSync('posthtml');
8-
let {config, use, options = {}, output, root = './', allInOutput} = flags;
8+
let {
9+
config,
10+
use,
11+
options = {},
12+
output,
13+
root = './',
14+
allInOutput = false
15+
} = flags;
916

1017
if (config) {
1118
({config} = explorer.load(config));

src/cli.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@ const cli = meow(`
6161
root: {
6262
type: 'string',
6363
alias: 'r',
64-
default: '.'
64+
default: './'
6565
},
6666
allInOutput: {
6767
type: 'boolean',
68+
default: false,
6869
alias: 'a'
6970
}
7071
}

0 commit comments

Comments
 (0)