Separate tsconfig for release (which excludes tests)

This commit is contained in:
Rene Saarsoo 2020-10-02 11:49:41 +03:00
parent 208c160501
commit 12b848f08d
3 changed files with 12 additions and 2 deletions

View File

@ -9,7 +9,7 @@
"test:watch": "jest src/ test/ --watch",
"start": "node bin/make-workout.js",
"format:js": "prettier --write src/",
"build": "tsc",
"build": "tsc --project tsconfig.release.json",
"prepublish": "yarn build"
},
"main": "dist/index.js",

View File

@ -12,6 +12,7 @@
"declaration": true,
},
"include": [
"src/**/*"
"src/**/*",
"test/**/*"
],
}

9
tsconfig.release.json Normal file
View File

@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"include": [
"src/**/*",
],
"exclude": [
"**/*.test.ts",
],
}