diff --git a/CHANGELOG.md b/CHANGELOG.md index ccda204b..8978ea55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ - Add ability to set `watch: true` in a task to automatically run it in watch mode (#231, #1361 by @andreynering). +- Fixed a bug on the watch mode where paths that contained `.git` (like + `.github`), for example, were also being ignored (#1356 by @butuzov). - Fixed a nil pointer error when running a Taskfile with no contents (#1341, #1342 by @pd93). - Added a new [exit code](https://taskfile.dev/api/#exit-codes) (107) for when a diff --git a/watch.go b/watch.go index 64bad2f7..95fbb435 100644 --- a/watch.go +++ b/watch.go @@ -180,7 +180,7 @@ func shouldIgnoreFile(path string) bool { "/.task", "/.git", "/.hg", - "/.node_modules", + "/node_modules", } for _, p := range ignorePaths { if strings.Contains(path, fmt.Sprintf("%s/", p)) || strings.HasSuffix(path, p) {