Skip to content

Commit 2619904

Browse files
committed
fix: Recognise property "patterns" in the config file again
It was accidentally removed in the version 14. Fixes #18
1 parent 3f45109 commit 2619904

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/cli.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -499,12 +499,13 @@ function processPatterns (patterns) {
499499
}
500500

501501
function main () {
502-
if (args.length) {
503-
const dynamic = args.some(file => isDynamicPattern(file))
502+
const files = args.length && args || params.patterns || []
503+
if (files.length) {
504+
const dynamic = files.some(file => isDynamicPattern(file))
504505
if (dynamic) {
505-
processPatterns(args)
506+
processPatterns(files)
506507
} else {
507-
for (const file of args) {
508+
for (const file of files) {
508509
processSource(file, false)
509510
}
510511
}

0 commit comments

Comments
 (0)