Ghost/nx.json
Chris Raible 9932454730
Added build:ts dependency to yarn test:unit (#21328)
no issue

- Running `yarn test:unit` fails unless you've previously run `yarn
build:ts`. This change tells `nx` about this dependency, so it will run
`yarn build:ts` before `yarn test:unit`. It should take advantage of the
nx cache though, so it will only run the `build:ts` task if necessary
2024-10-16 12:15:14 -07:00

44 lines
1.1 KiB
JSON

{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"namedInputs": {
"default": ["{projectRoot}/**/*", "{workspaceRoot}/ghost/tsconfig.json"]
},
"parallel": 4,
"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": {
"dependsOn": ["^build:ts"],
"cache": true
}
},
"cacheDirectory": ".nxcache"
}