Skip to content

Commit

Permalink
[FIX] Watch wrong files on CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Brazeilles authored and iRyusa committed Mar 18, 2024
1 parent 444aad1 commit 61e8869
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/mjml-cli/src/commands/watchFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ export default (input, options) => {
console.log(`Now watching file: ${filePath}`)

const matchInputOption = input.reduce(
(found, file) => found || match(sync(path.resolve(file)), filePath),
(found, file) =>
found || match(sync(path.resolve(file)), filePath)?.length > 0,
false,
)

Expand Down

0 comments on commit 61e8869

Please sign in to comment.