chore: enable nx caching on common-utils builds during dev (#1880)

## Summary

`yarn build:common-utils` was running slowly for me and had to restart server lots - this speeds up local dev start time when using `yarn dev` because it only rebuilds common utils if there are changes.

### Screenshots or video
Cache (new):
<img width="936" height="260" alt="
Screenshot 2026-03-10 at 4 08 13 PM" src="https://github.com/user-attachments/assets/d7ede0cf-19ec-4c82-943e-7612476b8c2b" />

No Cache (before/changes):
<img width="1003" height="171" alt="Screenshot 2026-03-10 at 4 05 04 PM" src="https://github.com/user-attachments/assets/cca32b6f-1981-4c3a-8e2f-3d2d98ce5f06" />

### How to test locally or on Vercel

1. Run `yarn dev` see build required
2. Restart server, see its cached
3. Change `common-utils` restart server, see build required
This commit is contained in:
Brandon Pereira 2026-03-10 20:19:33 -06:00 committed by GitHub
parent 5f105bb1b5
commit 9ffd83dd43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build", "lint", "test"]
"cacheableOperations": ["build", "dev:build", "lint", "test"]
}
}
},