Ghost/nx.json
Daniel Lockyer 5a72c5ad91 Updated Nx to v19
refs https://github.com/nrwl/nx/releases/tag/19.8.0

- this commit updates Nx to v19
- we need to add some extra commands to the dev script to stop and
  restart the Nx daemon, so it's ready and running before we execute a
  bunch of Nx commands concurrently
- this also updates nx.json to the format needed for the latest version
2024-09-25 10:16:08 +02:00

42 lines
1.0 KiB
JSON

{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"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"
],
"cache": true
},
"build:ts": {
"dependsOn": ["^build:ts"],
"inputs": ["default", "^default"],
"outputs": ["{projectRoot}/build"],
"cache": true
},
"lint": {
"cache": true
},
"test": {
"cache": true
},
"test:unit": {
"cache": true
}
},
"cacheDirectory": ".nxcache"
}