hyperdx/nx.json
Brandon Pereira 9ffd83dd43
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
2026-03-11 02:19:33 +00:00

33 lines
741 B
JSON

{
"affected": {
"defaultBase": "main"
},
"workspaceLayout": {
"appsDir": "packages",
"libsDir": "packages"
},
"targetDefaults": {
"build": {
"dependsOn": ["^build"]
}
},
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build", "dev:build", "lint", "test"]
}
}
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"production": [
"default",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
"!{projectRoot}/tsconfig.spec.json",
"!{projectRoot}/jest.config.[jt]s",
"!{projectRoot}/eslint.config.mjs"
],
"sharedGlobals": []
}
}