diff --git a/packages/mjml-cli/src/commands/watchFiles.js b/packages/mjml-cli/src/commands/watchFiles.js index bf2802a7a..55e724f15 100644 --- a/packages/mjml-cli/src/commands/watchFiles.js +++ b/packages/mjml-cli/src/commands/watchFiles.js @@ -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, )