Ghost/nx.json
Daniel Lockyer a9c9202b5c Added defaults to Nx build step
refs https://github.com/TryGhost/DevOps/issues/122

- this allows us to DRY up some of the other configuration we have
  dotted around and fixes a niche bug with overlapping builds that we
  were seeing before, because Nx should only allow one build at a time
2023-12-13 11:54:31 +01:00

54 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": [
"default",
"^default"
],
"outputs": [
"{projectRoot}/dist",
"{projectRoot}/es",
"{projectRoot}/umd"
]
},
"build:ts": {
"dependsOn": [
"^build:ts"
],
"inputs": [
"default",
"^default"
],
"outputs": [
"{projectRoot}/build"
]
}
},
"$schema": "./node_modules/nx/schemas/nx-schema.json"
}