A CLI which updates and populates missing @types/* for your dependencies.
- Globally:
yarn global add types-installer- Then run
types-installer
- Then run
- Locally:
yarn add types-installer- Then run
yarn types-installer
- Then run
% types-installer
? Install options: all
? Install @types/* to devDependencies? Yes
Installing all @type dependencies...
? select jest (Installed), ts-jest , ts-node , tslint , tslint-eslint-rules , typescript , chalk , commander (Installed), execa , inquirer
@types/tslint not found or failed to install
@types/chalk found
success Saved 1 new dependency.
└─ @types/chalk@0.4.31% types-installer install
Installing all @type dependencies...
@types/tslint not found or failed to install
@types/chalk found
success Saved 1 new dependency.
└─ @types/chalk@0.4.31
% types-installer install chalk
Installing dependency chalk @types
@types/chalk found
success Saved 1 new dependency.
└─ @types/chalk@0.4.31types-installer --help for more options
- Types are by default saved to
dependenciesordevDependencies, wherever the dependency exists. - To force everything top be saved into
devDependencies, add the--toDevflag.