Skip to content

Commit 98b5a77

Browse files
committed
refactor: update build process and add tsconfig for builds
1 parent 36facf1 commit 98b5a77

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"types": "index.d.ts",
3535
"scripts": {
3636
"prebuild": "del-cli dist",
37-
"build": "tsc",
37+
"build": "tsc -p ./tsconfig.build.json",
3838
"generate-all": "pnpm run --parallel \"/^generate:.*/\"",
3939
"generate-all:check": "pnpm run generate-all && git diff --exit-code",
4040
"generate:configs": "ts-node tools/generate-configs",

tsconfig.build.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"exclude": ["./tests/**/*.ts"]
4+
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
"outDir": "dist",
1717
"sourceMap": false
1818
},
19-
"include": ["./lib/**/*.ts"]
19+
"include": ["./lib/**/*.ts", "./tests/**/*.ts"]
2020
}

0 commit comments

Comments
 (0)