Sharable TypeScript config enforcing SNGULAR style guidelines.
Install:
npm install --save-dev @sngular/tsconfig
Config for basic config:
echo "{ \"extends\": \"@sngular/tsconfig\" }" > tsconfig.json
Config for check only config:
echo "{ \"extends\": \"@sngular/tsconfig/checkOnly\" }" > tsconfig.json
After that you have to include:
- compilerOptions.outDir
- compilerOptions.rootDir
- include
- exclude
The final aspect of tsconfig
should be like:
{
"extends": "@sngular/tsconfig",
"compilerOptions": {
"outDir": "./dist-types",
"rootDir": "."
},
"include": ["src"],
"exclude": ["dist-types"]
}