Skip to content

Commit c4615d7

Browse files
committed
fixed tsconfig to build zod example
1 parent a662acb commit c4615d7

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

tsconfig.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@
44
"incremental": true,
55
"declaration": true,
66
"noEmit": false,
7-
"rootDir": "src",
87
"outDir": "dist",
98
"baseUrl": ".",
109
"paths": {}
1110
},
1211
"include": [
13-
"src"
12+
"src",
13+
"example"
1414
],
1515
"exclude": [
16-
"./example",
17-
"./dist"
16+
"dist"
1817
]
1918
}

tsconfig.main.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
22
"extends": "./tsconfig",
33
"compilerOptions": {
4+
"rootDir": "src",
45
"outDir": "dist/main",
56
"types": [
67
"node"
78
]
8-
}
9+
},
10+
"exclude": [
11+
"example"
12+
]
913
}

tsconfig.module.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
"declaration": false,
77
"moduleResolution": "node",
88
"resolveJsonModule": true,
9+
"rootDir": "src",
910
"outDir": "dist/module",
1011
"types": [
1112
"node"
1213
]
1314
},
14-
"include": [
15-
"src/**/*.ts"
16-
],
1715
"exclude": [
18-
"node_modules/**"
16+
"node_modules/**",
17+
"example"
1918
]
2019
}

0 commit comments

Comments
 (0)