snapshot of https://github.com/TanStack/query.git (main, 2026-09-16; blobs > 131072B omitted)
This commit is contained in:
87
nx.json
Normal file
87
nx.json
Normal file
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
||||
"defaultBase": "main",
|
||||
"nxCloudId": "6412c827e6da5d7b4a0b1fe3",
|
||||
"useInferencePlugins": false,
|
||||
"parallel": 5,
|
||||
"namedInputs": {
|
||||
"sharedGlobals": [
|
||||
"{workspaceRoot}/.nvmrc",
|
||||
"{workspaceRoot}/package.json",
|
||||
"{workspaceRoot}/scripts/*.js",
|
||||
"{workspaceRoot}/tsconfig.json",
|
||||
"{workspaceRoot}/eslint.config.js",
|
||||
"{workspaceRoot}/pnpm-workspace.yaml"
|
||||
],
|
||||
"default": [
|
||||
"sharedGlobals",
|
||||
"{projectRoot}/**/*",
|
||||
"!{projectRoot}/**/*.md"
|
||||
],
|
||||
"production": [
|
||||
"default",
|
||||
"!{projectRoot}/tests/**/*",
|
||||
"!{projectRoot}/eslint.config.js"
|
||||
]
|
||||
},
|
||||
"targetDefaults": {
|
||||
"compile": {
|
||||
"cache": true,
|
||||
"dependsOn": ["^compile"],
|
||||
"inputs": ["default", "^production"],
|
||||
"outputs": ["{projectRoot}/dist-ts"]
|
||||
},
|
||||
"test:docs": {
|
||||
"cache": true,
|
||||
"inputs": ["{workspaceRoot}/docs/**/*"]
|
||||
},
|
||||
"test:knip": {
|
||||
"cache": true,
|
||||
"dependsOn": [
|
||||
{
|
||||
"target": "build",
|
||||
"projects": ["directory:packages/*"]
|
||||
}
|
||||
],
|
||||
"inputs": ["{workspaceRoot}/**/*"]
|
||||
},
|
||||
"test:sherif": {
|
||||
"cache": true,
|
||||
"inputs": ["{workspaceRoot}/**/package.json"]
|
||||
},
|
||||
"test:size": {
|
||||
"cache": true,
|
||||
"inputs": [
|
||||
"{workspaceRoot}/package.json",
|
||||
"{workspaceRoot}/.size-limit.json"
|
||||
]
|
||||
},
|
||||
"test:eslint": {
|
||||
"cache": true,
|
||||
"dependsOn": ["^compile"],
|
||||
"inputs": ["default", "^production", "{workspaceRoot}/eslint.config.js"]
|
||||
},
|
||||
"test:lib": {
|
||||
"cache": true,
|
||||
"dependsOn": ["^compile"],
|
||||
"inputs": ["default", "^production"],
|
||||
"outputs": ["{projectRoot}/coverage"]
|
||||
},
|
||||
"test:types": {
|
||||
"cache": true,
|
||||
"dependsOn": ["^compile"],
|
||||
"inputs": ["default", "^production"]
|
||||
},
|
||||
"build": {
|
||||
"cache": true,
|
||||
"dependsOn": ["^build"],
|
||||
"inputs": ["production", "^production"],
|
||||
"outputs": ["{projectRoot}/build", "{projectRoot}/dist"]
|
||||
},
|
||||
"test:build": {
|
||||
"cache": true,
|
||||
"dependsOn": ["build"],
|
||||
"inputs": ["production"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user