-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathnx.json
More file actions
23 lines (23 loc) · 1.39 KB
/
Copy pathnx.json
File metadata and controls
23 lines (23 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"production": ["default", "!{projectRoot}/src/**/*.spec.ts", "!{projectRoot}/test/**/*"],
"sharedGlobals": []
},
"targetDefaults": {
"build": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"],
"comment": "OUTPUTS MUST BE DECLARED WHEREVER cache IS TRUE. With none, nx still records a cache HIT and replays a build that produced files WITHOUT producing them, then reports success. The packages build to dist via tsc, but the demoes' build is `hardhat compile`, whose products (artifacts/, cache/, and the plugin-generated generated/artifacts/index.ts) are all gitignored. So on any tree that never ran a real build, a warm cache left generated/ absent and the very next `pnpm typecheck` failed with TS2307 in demo files the task under test never touched, nondeterministically: whichever run warmed the cache passed, every later clean-tree run failed. Declared here rather than per-project because this default applies to every build, so any future target writing outside dist would otherwise inherit the same hole.",
"outputs": ["{projectRoot}/dist", "{projectRoot}/artifacts", "{projectRoot}/cache", "{projectRoot}/generated"]
},
"dev": {
"cache": false,
"continuous": true
}
},
"plugins": ["@nx/js"],
"analytics": false
}