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 3f45109 commit 2619904Copy full SHA for 2619904
lib/cli.js
@@ -499,12 +499,13 @@ function processPatterns (patterns) {
499
}
500
501
function main () {
502
- if (args.length) {
503
- const dynamic = args.some(file => isDynamicPattern(file))
+ const files = args.length && args || params.patterns || []
+ if (files.length) {
504
+ const dynamic = files.some(file => isDynamicPattern(file))
505
if (dynamic) {
- processPatterns(args)
506
+ processPatterns(files)
507
} else {
- for (const file of args) {
508
+ for (const file of files) {
509
processSource(file, false)
510
511
0 commit comments