Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

nx.json

62 lines1.6 KB

1{
2 "$schema": "./node_modules/nx/schemas/nx-schema.json",
3 "defaultBase": "main",
4 "nxCloudAccessToken": "ZDdkNDA4MGEtYjNmYi00MWI4LWE1N2QtYTdlNmYxMGJlZWM2fHJlYWQ=",
5 "useInferencePlugins": false,
6 "parallel": 5,
7 "namedInputs": {
8 "sharedGlobals": [
9 "{workspaceRoot}/.nvmrc",
10 "{workspaceRoot}/package.json",
11 "{workspaceRoot}/scripts/getTsupConfig.js",
12 "{workspaceRoot}/tsconfig.json"
13 ],
14 "default": [
15 "sharedGlobals",
16 "{projectRoot}/**/*",
17 "!{projectRoot}/**/*.md"
18 ],
19 "production": [
20 "default",
21 "!{projectRoot}/tests/**/*",
22 "!{projectRoot}/eslint.config.js"
23 ]
24 },
25 "targetDefaults": {
26 "test:knip": {
27 "cache": true,
28 "inputs": ["{workspaceRoot}/**/*"]
29 },
30 "test:sherif": {
31 "cache": true,
32 "inputs": ["{workspaceRoot}/**/package.json"]
33 },
34 "test:eslint": {
35 "cache": true,
36 "dependsOn": ["^build"],
37 "inputs": ["default", "^production", "{workspaceRoot}/eslint.config.js"]
38 },
39 "test:lib": {
40 "cache": true,
41 "dependsOn": ["^build"],
42 "inputs": ["default", "^production"],
43 "outputs": ["{projectRoot}/coverage"]
44 },
45 "test:types": {
46 "cache": true,
47 "dependsOn": ["^build"],
48 "inputs": ["default", "^production"]
49 },
50 "build": {
51 "cache": true,
52 "dependsOn": ["^build"],
53 "inputs": ["production", "^production"],
54 "outputs": ["{projectRoot}/build", "{projectRoot}/dist"]
55 },
56 "test:build": {
57 "cache": true,
58 "dependsOn": ["build"],
59 "inputs": ["production"]
60 }
61 }