Skip to content

Commit

Permalink
CLI: Reduce watch startup time by ignoring ".git" directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle committed Feb 15, 2022
1 parent 054e6cd commit a75f28e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ run.watch = function watch() {
// Include ".json" for test suites that use a data files,
// and for changes to package.json that may affect how a file is parsed (e.g. type=module).
const includeExts = [ ".js", ".json", ".cjs", ".mjs" ];
const ignoreDirs = [ "node_modules" ];
const ignoreDirs = [ ".git", "node_modules" ];

const watcher = watch( baseDir, {
persistent: true,
Expand Down

0 comments on commit a75f28e

Please sign in to comment.