jeffijoe / typesync

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

Switch to shell script instead of postinstall #66

Closed karlhorky closed 3 years ago

karlhorky commented 3 years ago

npm does not run postinstall on every package install (as @mike-clark-8192 mentioned in https://github.com/jeffijoe/typesync/pull/65#issuecomment-778509942).

This switches to a bash script as an alternative.


Thinking about this more, it would be even nicer if typesync could take a package name as an argument:

typesync install <pkg name>

or just:

typesync <pkg name>

and then it would handle the installation, like typac does. Then there would be no need for a shell script.

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 0c25a8eee10137723b7d5aecb3a3fb93162497dc on karlhorky:patch-1 into a623e611a06cdc8120c85135e2a72b969b737e24 on jeffijoe:master.