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 committed Feb 28, 2024
1 parent 1c2f459 commit 0a2ac5c
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 0a2ac5c

Please sign in to comment.