Skip to content

Commit

Permalink
Update Chokidar to v3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Nov 29, 2019
1 parent e4e126f commit 2f10309
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 59 deletions.
7 changes: 1 addition & 6 deletions lib/cli/watch-run.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ const collectFiles = require('./collect-files');
*/
module.exports = (mocha, {watchFiles, watchIgnore}, fileCollectParams) => {
if (!watchFiles) {
watchFiles = fileCollectParams.extension.reduce(
(watchFiles, ext) => watchFiles.concat([`**/*.${ext}`, `**/.*.${ext}`]),
[]
);
watchFiles = fileCollectParams.extension.map(ext => `**/*.${ext}`);
}

const watcher = chokidar.watch(watchFiles, {
Expand Down Expand Up @@ -64,8 +61,6 @@ module.exports = (mocha, {watchFiles, watchIgnore}, fileCollectParams) => {
process.on('SIGINT', () => {
showCursor();
console.log('\n');
// By UNIX/Posix convention this indicates that the process was
// killed by SIGINT which has portable number 2.
process.exit(128 + 2);
});
};
Expand Down
104 changes: 52 additions & 52 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@
"dependencies": {
"ansi-colors": "3.2.3",
"browser-stdout": "1.3.1",
"chokidar": "3.0.2",
"chokidar": "3.3.0",
"debug": "3.2.6",
"diff": "3.5.0",
"escape-string-regexp": "1.0.5",
Expand Down

0 comments on commit 2f10309

Please sign in to comment.