Skip to content

Commit 6c53cd2

Browse files
nperez0111claude
andcommitted
fix: optimize nx cache config for build:site, test, and e2e targets
- Exclude .next/cache from build:site outputs to reduce cache bloat - Remove unused dist output from build:site (docs uses .next) - Exclude non-build files (sqlite.db, .env*, coverage) from build:site inputs - Fix test/e2e dependsOn to use build deps instead of cascading test/e2e deps Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9085510 commit 6c53cd2

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

nx.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,33 @@
2424
"build:site": {
2525
"cache": true,
2626
"dependsOn": ["^build"],
27-
"inputs": ["{workspaceRoot}/examples/**/*", "{projectRoot}/**/*"],
27+
"inputs": [
28+
"{workspaceRoot}/examples/**/*",
29+
"{projectRoot}/**/*",
30+
"!{projectRoot}/sqlite.db",
31+
"!{projectRoot}/.env*",
32+
"!{projectRoot}/validate-links.mjs",
33+
"!{projectRoot}/coverage/**/*"
34+
],
2835
"outputs": [
29-
"{projectRoot}/dist",
3036
"{projectRoot}/.next",
37+
"!{projectRoot}/.next/cache",
3138
"{projectRoot}/.source",
3239
"{projectRoot}/content/examples",
3340
"{projectRoot}/components/example/generated"
3441
]
3542
},
3643
"test": {
3744
"cache": true,
38-
"dependsOn": ["^test"]
45+
"dependsOn": ["build", "^build"]
3946
},
4047
"lint": {
4148
"cache": true,
4249
"dependsOn": []
4350
},
4451
"e2e": {
4552
"cache": true,
46-
"dependsOn": ["^e2e"]
53+
"dependsOn": ["build", "^build"]
4754
}
4855
},
4956
"analytics": false

0 commit comments

Comments
 (0)