Ghost/nx.json
Daniel Lockyer 8325fb85b2 Fixed TS types being cached by Nx
ref https://linear.app/tryghost/issue/DEV-20/faster-builds

- we need these to be cache so we can restore them in subsequent builds
2024-09-11 15:58:56 +02:00

56 lines
1.3 KiB
JSON

{
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": [
"build",
"build:ts",
"lint",
"test",
"test:unit"
],
"useDaemonProcess": false,
"cacheDirectory": ".nxcache"
}
}
},
"namedInputs": {
"default": [
"{projectRoot}/**/*",
"{workspaceRoot}/ghost/tsconfig.json"
]
},
"targetDefaults": {
"build": {
"dependsOn": [
"^build"
],
"inputs": [
{ "env": "GHOST_CDN_URL" },
"default",
"^default"
],
"outputs": [
"{projectRoot}/dist",
"{projectRoot}/es",
"{projectRoot}/types",
"{projectRoot}/umd"
]
},
"build:ts": {
"dependsOn": [
"^build:ts"
],
"inputs": [
"default",
"^default"
],
"outputs": [
"{projectRoot}/build"
]
}
},
"$schema": "./node_modules/nx/schemas/nx-schema.json"
}