Skip to content

Commit

Permalink
chore: update braces and chokidar to latest versions (#3307)
Browse files Browse the repository at this point in the history
This results in a significant dependencies reduction. New version of
chokidar also promises significant memory and performance improvements.
  • Loading branch information
devoto13 authored and johnjbarton committed May 15, 2019
1 parent fe9a1dd commit 7828bea
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 788 deletions.
3 changes: 2 additions & 1 deletion lib/watcher.js
Expand Up @@ -12,7 +12,8 @@ const DIR_SEP = require('path').sep
function watchPatterns (patterns, watcher) {
let expandedPatterns = []
patterns.map((pattern) => {
expandedPatterns = expandedPatterns.concat(braces.expand(pattern)) // expand ['a/{b,c}'] to ['a/b', 'a/c']
// expand ['a/{b,c}'] to ['a/b', 'a/c']
expandedPatterns = expandedPatterns.concat(braces.expand(pattern, { keepEscaping: true }))
})
expandedPatterns
.map(PatternUtils.getBaseDir)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -384,8 +384,8 @@
"dependencies": {
"bluebird": "^3.3.0",
"body-parser": "^1.16.1",
"braces": "^2.3.2",
"chokidar": "^2.0.3",
"braces": "^3.0.2",
"chokidar": "^3.0.0",
"colors": "^1.1.0",
"connect": "^3.6.0",
"core-js": "^2.2.0",
Expand Down

0 comments on commit 7828bea

Please sign in to comment.