Skip to content

Commit

Permalink
[HOTFIX] Glob package BC in cli (#2820)
Browse files Browse the repository at this point in the history
[HOTFIX] Glob package BC in cli
  • Loading branch information
iRyusa authored Jan 29, 2024
1 parent af922bd commit e3661d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/mjml-cli/src/commands/readFile.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import fs from 'fs'
import glob from 'glob'
import { sync } from 'glob'
import { flatMap } from 'lodash'

export const flatMapPaths = (paths) =>
flatMap(paths, (p) => glob.sync(p, { nodir: true }))
flatMap(paths, (p) => sync(p, { nodir: true }))

export default (path) => {
try {
Expand Down
2 changes: 1 addition & 1 deletion 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 glob 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

0 comments on commit e3661d6

Please sign in to comment.