Skip to content

Commit 85e0d04

Browse files
committed
Exclude test files when building
1 parent 88d5186 commit 85e0d04

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
src/
22
test/
33
tsconfig.json
4+
tsconfig.build.json
5+
.editorconfig
6+
knip.json
47
node_modules/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"scripts": {
1818
"test": "mocha -u tdd --require ts-node/register src/**/test/**/*.ts",
1919
"watch": "tsc --watch",
20-
"build": "tsc",
20+
"build": "tsc --project tsconfig.build.json",
2121
"knip": "knip",
2222
"example": "ts-node src/example.ts"
2323
},

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": ["src/**/*.test.ts"]
4+
}

0 commit comments

Comments
 (0)