Skip to content

Commit 6b6948f

Browse files
committed
excluding the tests from the dist folder
1 parent a428689 commit 6b6948f

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lint": "eslint . --ext ts --ext tsx --ext js --ext snap",
1010
"type-check": "tsc --pretty --noEmit",
1111
"format": "prettier --write .",
12-
"build": "tsc"
12+
"build": "tsc --project tsconfig.build.json"
1313
},
1414
"files": [
1515
"dist"

tsconfig.build.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
// 👇️ this may vary depending on how you
4+
// name your test files
5+
"exclude": ["src/**/*.spec.ts", "src/**/*.test.ts"]
6+
}

0 commit comments

Comments
 (0)