Skip to content

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

License

Notifications You must be signed in to change notification settings

jeffijoe/typesync

Repository files navigation

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

You can also use it directly with npx which will install it for you:

npx typesync

Usage

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

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

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

--dry[=fail]

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

The same is true for --dry=fail, with the additional effect of failing the command in case there are changes. This is useful for CI scenarios.

--ignoredeps