purescript-tsd-gen
purescript-tsd-gen copied to clipboard
Distribution via npm
There should be an easy way for a npm user to install this tool.
Since this tool is written in Haskell, this is not trivial. Some choices are:
- Binary distribution
- Compile to JavaScript with GHCJS or something
As a note, purescript
npm package uses postinstall
script to download the binary:
-
purescript
npm package - install-purescript-cli: The script that does the job of actually downloading the binary.
you can also go with flow-bin approach https://github.com/flowtype/flow-bin/blob/master/Makefile. Flow compiles all the binaries, uploads them to github releases and flow-bin downloads binaries and bundles them in npm packages
#11 might be useful, might not