0.1.3 • Published 5 years ago
@lcdev/tsconfig v0.1.3
Shared TS Config
This package sets strict mode, some reasonable defaults for target and lib, and works in composite projects.
yarn add @lcdev/tsconfig@0.1Add to your tsconfig.json:
"extends": "@lcdev/tsconfig"You probably want to keep rootDir and outDir, and maybe target if you want es2015.
A normal tsconfig looks like this:
{
"extends": "@lcdev/tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist"
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}A normal web(pack) tsconfig looks like this:
{
"extends": "@lcdev/tsconfig",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"lib": ["esnext", "dom"],
"target": "esnext",
"module": "esnext",
"jsx": "preserve",
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["src/**/*"],
"exclude": ["node_modules"]
}