@alanscodelog/tsconfigs
v5.0.1
Published
My typescript configs.
Downloads
64
Readme
Install
My typescript configs.
yarn add -D @alanscodelog/tsconfigs \
&& ./node_modules/@alanscodelog/tsconfigs/install.sh
Note: 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.json
or copy this to tsconfig.json
.
For generating types:
cp ./node_modules/@alanscodelog/tsconfigs/copy/tsconfig.types.json tsconfig.types.json
or copy this to tsconfig.types.json
.
Then add a script to the package.json
:
"scripts": {
"build:types": "tsc -p tsconfig.types.json --emitDeclarationOnly",
}
This requires installing tsc-alias.