node-lz4
node-lz4 copied to clipboard
install script overwrites build/lz4.js
The script "install": "node-gyp rebuild", in the package.json overwrites build/lz4.js on install, meaning that when you npm install the package the web version may be unavailable.
This may only have been an issue for me because I have a hybrid webpack project that outputs both a node-based cli tool and a browser ready package.
A solution could be to change the browserify output to another folder and change the "browser" entry in package.json to point there instead. build/ could then be added to .gitignore so that the node build doesn't accidentally get added.
Thanks for reporting. Please send a PR if you need it.