/typesync

Install missing TypeScript typings for dependencies in your package.json.

Primary LanguageTypeScriptMIT LicenseMIT

typesync

Install missing TypeScript typings for dependencies in your package.json.

npm dependency Status devDependency Status Build Status Coveralls npm npm node

TypeSync

Install

npm install -g typesync

Usage

typesync [path/to/package.json] [--dry]

Path is relative to the current working directory. If omitted, defaults to package.json.

If --dry is specified, will not actually write to the file, it only prints added typings,

Note: typesync only modifies your package.json - you still need to run npm install, or — if drinking the k00laid — yarn.

Why?

Installing typings manually sucks. Flow has flow-typed which installs type definitions by looking at a package.json, which would be cool to have for TypeScript. Now we do!

Author

Jeff Hansen - @Jeffijoe