Typescript Package Manager automatically checks if a type package exists for a specific package and installs it as a development dependency. That means that instead of running
$ yarn add react
$ yarn add -D @types/react
you would only have to run
$ tsm add react
This also means that you don't have to check if a type packages exists for a specific package. TSM automatically checks this and only install the type packages that are necessary.
$ npm install -g typemanager
$ # or
$ npx typemanager [COMMAND]
$ tsm COMMAND
running command...
$ tsm (-v|--version|version)
tsm/1.1.0 darwin-x64 node-v13.8.0
$ tsm --help [COMMAND]
USAGE
$ tsm COMMAND
...
show preferred package manager
USAGE
$ tsm config
See code: src/commands/config.ts
display help for typm
USAGE
$ tsm help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
initialize typm with your package manager
USAGE
$ tsm init
OPTIONS
-g, --global
-h, --help show CLI help
ALIASES
$ tsm initialize
See code: src/commands/init.ts
install npm package[s]
USAGE
$ tsm install
OPTIONS
-h, --help show CLI help
ALIASES
$ tsm i
$ tsm add
EXAMPLE
$ tsm add react react-dom
See code: src/commands/install.ts