From 222cd8c8f8d28114bfcb8f48dccdde54362c8a83 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Sat, 7 Oct 2023 18:41:35 -0300 Subject: [PATCH] chore: add changelog entry for #1356 --- CHANGELOG.md | 2 ++ watch.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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) {