1.1.0 • Published 3 years ago
addt v1.1.0
Add Typed
If you're tired of installing a package and then installing the types for the package in a separate command, this is for you.
Installation
npm
npm i addt -gyarn
yarn global add addtUsage
Installing packages with types
addt <package_name> [...<package_name>]Installing all packages in package.json with their types (see https://github.com/xpodev/add-typed/issues/1)
addtAlso works with npx
npx addt <package_name> [...<package_name>]Arguments
The tool will pass any argument starts with - to the npm / yarn command, so make sure you use the correct arguments
Example
addt typescript --save-devWill be resolved to
npm install typescript --save-devor in yarn (which will cause a failure because --save-dev is not valid in yarn)
yarn add typescript --save-devNotes
- If a package does not have type declarations under the
@typesnamespace the types installation will be skipped.