Skip to content

Commit fd3249c

Browse files
committed
Created tsconfig.build.json to separate tsconfig.json for testing
1 parent 9a1e5aa commit fd3249c

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"main": "dist/index.js",
1515
"types": "dist/index.d.ts",
1616
"scripts": {
17-
"build": "tsc",
17+
"build": "tsc -p ./tsconfig.build.json",
1818
"ts-node": "ts-node -r tsconfig-paths/register",
1919
"test": "jest",
2020
"lint": "eslint '{src,tests}/**/*.{js,ts}'",

tsconfig.build.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"exclude": [
4+
"./tests/**/*"
5+
],
6+
"compilerOptions": {
7+
"noEmit": false
8+
}
9+
}

tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
"paths": {
1616
"@": ["index"],
1717
"@/*": ["*"]
18-
}
18+
},
19+
"noEmit": true
1920
},
2021
"include": [
21-
"./src/**/*"
22+
"./src/**/*",
23+
"./tests/**/*"
2224
]
2325
}

0 commit comments

Comments
 (0)