Skip to content

Commit

Permalink
[FIX] sync doesn't expose minimatch out of the box
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Brazeilles committed Jan 29, 2024
1 parent 4ad6e45 commit 8996646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mjml-cli/src/commands/watchFiles.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-console */
import chokidar from 'chokidar'
import { sync } from 'glob'
import { glob } from 'glob'
import path from 'path'
import mjml2html from 'mjml-core'
import { flow, pickBy, flatMap, uniq, difference, remove } from 'lodash/fp'
Expand Down Expand Up @@ -99,7 +99,7 @@ export default (input, options) => {

const matchInputOption = input.reduce(
(found, file) =>
found || sync(path.resolve(file)).minimatch.match(filePath),
found || glob(path.resolve(file)).minimatch.match(filePath),
false,
)

Expand Down

0 comments on commit 8996646

Please sign in to comment.