jeffijoe / typesync

Install missing TypeScript typings for dependencies in your package.json.
MIT License
1.51k stars 21 forks source link

Possible to use programmatically? #54

Closed voxpelli closed 4 years ago

voxpelli commented 4 years ago

Is the only way to use this tool to do so through its CLI?

The main file in the package.json appears to be non-existent? https://github.com/jeffijoe/typesync/blob/81a10e96a73a2948950513892318cc4e23ffe99c/package.json#L15

I'm working on a tool where I thought it would be neat to allow one to use the result of typesync as one input, but wouldn't want to depend on private API:s.

jeffijoe commented 4 years ago

That main was leftover from my package boilerplate. It was only meant to be used as a CLI. You can import the type-syncer if you want but I don't provide any API stability guarantees. I don't change it a lot though.