@alanscodelog/tsconfigs
v6.2.0
Published
My typescript configs.
Readme
Install
My typescript configs.
yarn add -D @alanscodelog/tsconfigs \
&& ./node_modules/@alanscodelog/tsconfigs/install.shNote: The last command will overwrite tsconfig.json and tsconfig.types.json if it exists.
Manual Setup
cp ./node_modules/@alanscodelog/tsconfigs/copy/tsconfig.json tsconfig.jsonor copy this to tsconfig.json.
For generating types:
cp ./node_modules/@alanscodelog/tsconfigs/copy/tsconfig.types.json tsconfig.types.jsonor copy this to tsconfig.types.json.
Then add a script to the package.json:
"scripts": {
"build:types": "tsc -p tsconfig.types.json --emitDeclarationOnly",
}