mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
## 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
33 lines
741 B
JSON
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": []
|
|
}
|
|
}
|