Skip to content

Commit

Permalink
[FIX] Glob no longer expose minimatch in proto
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Brazeilles committed Feb 5, 2024
1 parent ced6179 commit 1e7fd66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/mjml-cli/src/commands/watchFiles.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable no-console */
import chokidar from 'chokidar'
import { glob } from 'glob'
import { sync } from 'glob'
import { match } from 'minimatch'

Check failure on line 4 in packages/mjml-cli/src/commands/watchFiles.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'minimatch' should be listed in the project's dependencies. Run 'npm i -S minimatch' to add it

Check failure on line 4 in packages/mjml-cli/src/commands/watchFiles.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'minimatch' should be listed in the project's dependencies. Run 'npm i -S minimatch' to add it

Check failure on line 4 in packages/mjml-cli/src/commands/watchFiles.js

View workflow job for this annotation

GitHub Actions / build (20.x)

'minimatch' should be listed in the project's dependencies. Run 'npm i -S minimatch' to add it

Check failure on line 4 in packages/mjml-cli/src/commands/watchFiles.js

View workflow job for this annotation

GitHub Actions / build (16.x)

'minimatch' should be listed in the project's dependencies. Run 'npm i -S minimatch' to add it

Check failure on line 4 in packages/mjml-cli/src/commands/watchFiles.js

View workflow job for this annotation

GitHub Actions / build (18.x)

'minimatch' should be listed in the project's dependencies. Run 'npm i -S minimatch' to add it

Check failure on line 4 in packages/mjml-cli/src/commands/watchFiles.js

View workflow job for this annotation

GitHub Actions / build (20.x)

'minimatch' should be listed in the project's dependencies. Run 'npm i -S minimatch' to add it
import path from 'path'
import mjml2html from 'mjml-core'
import { flow, pickBy, flatMap, uniq, difference, remove } from 'lodash/fp'
Expand Down Expand Up @@ -98,8 +99,7 @@ export default (input, options) => {
console.log(`Now watching file: ${filePath}`)

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

Expand Down

0 comments on commit 1e7fd66

Please sign in to comment.