Skip to content

Commit

Permalink
feat: build.watch_dir can be an array of paths (#1231)
Browse files Browse the repository at this point in the history
In projects where:

- all the source code isn't in one folder (like a monorepo, or even where the worker has non-standard imports across folders),
- we use a custom build, so it's hard to statically determine folders to watch for changes

...we'd like to be able to specify multiple paths for custom builds, (the config `build.watch_dir` config). This patch enables such behaviour. It now accepts a single path as before, or optionally an array of strings/paths.

Fixes #1095
  • Loading branch information
threepointone authored Jun 14, 2022
1 parent e3278fa commit 5206c24
Show file tree
Hide file tree
Showing 5 changed files with 264 additions and 169 deletions.
14 changes: 14 additions & 0 deletions .changeset/stupid-dots-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"wrangler": patch
---

feat: `build.watch_dir` can be an array of paths

In projects where:

- all the source code isn't in one folder (like a monorepo, or even where the worker has non-standard imports across folders),
- we use a custom build, so it's hard to statically determine folders to watch for changes

...we'd like to be able to specify multiple paths for custom builds, (the config `build.watch_dir` config). This patch enables such behaviour. It now accepts a single path as before, or optionally an array of strings/paths.

Fixes https://github.com/cloudflare/wrangler2/issues/1095
Loading

0 comments on commit 5206c24

Please sign in to comment.