We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4360836 commit 0b53fa2Copy full SHA for 0b53fa2
1 file changed
src/cfg-resolve.js
@@ -19,8 +19,17 @@ export default ({input, flags = {}}) => {
19
({config} = explorer.search());
20
}
21
22
+ input = []
23
+ .concat(input || config?.input)
24
+ .filter(Boolean)
25
+ .map(file => path.join(path.resolve(root), file));
26
+
27
+ if (input.length === 0) {
28
+ throw new TypeError('input files not found');
29
+ }
30
31
return mergeOptions(config || {}, {
- input: [].concat(input).map(file => path.join(path.resolve(root), file)),
32
+ input,
33
output,
34
options,
35
root,
0 commit comments