Skip to content

Commit 5ec996f

Browse files
committed
fix: resolve input from root, close #303
1 parent e6d06a0 commit 5ec996f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cfg-resolve.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import path from 'path';
12
import {cosmiconfigSync} from 'cosmiconfig';
23
import toCamelCase from 'to-camel-case';
34
import mergeOptions from 'merge-options';
@@ -19,7 +20,7 @@ export default ({input, flags = {}}) => {
1920
}
2021

2122
return mergeOptions(config || {}, {
22-
input,
23+
input: input.map(file => path.join(path.resolve(root), file)),
2324
output,
2425
options,
2526
root,

0 commit comments

Comments
 (0)