Open qm3ster opened 5 years ago
Solved for the moment by having a separate config for release:
tsconfig.json
{
"compilerOptions": {
"strict": true,
"target": "es6",
"module": "commonjs",
"lib": ["es2017"],
"resolveJsonModule": true,
"noFallthroughCasesInSwitch": true,
"noEmit": true
},
"exclude": ["dist"]
}
tsconfig.release.json
{
"extends": "./tsconfig",
"compilerOptions": {
"noEmit": false,
"outDir": "dist",
"declaration": true
},
"include": ["src"],
"exclude": ["**/*.spec.ts"]
}
package.json
"scripts": {
"prepare": "tsc -p ./tsconfig.release.json"
}
This compiles
__tests__
intolib
as well. I'd like to only compilesrc
. But as soon as I add"include": ["src"]
totsconfig.json
, It stops applying that config to the tests VS Code. What to do?