Skip to content

Commit

Permalink
fix: Recognise property "patterns" in the config file again
Browse files Browse the repository at this point in the history
It was accidentally removed in the version 14.

Fixes #18
  • Loading branch information
prantlf committed Mar 8, 2023
1 parent 3f45109 commit 2619904
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,12 +499,13 @@ function processPatterns (patterns) {
}

function main () {
if (args.length) {
const dynamic = args.some(file => isDynamicPattern(file))
const files = args.length && args || params.patterns || []
if (files.length) {
const dynamic = files.some(file => isDynamicPattern(file))
if (dynamic) {
processPatterns(args)
processPatterns(files)
} else {
for (const file of args) {
for (const file of files) {
processSource(file, false)
}
}
Expand Down

0 comments on commit 2619904

Please sign in to comment.