Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

install script overwrites build/lz4.js #95

Open
MPickfield opened this issue May 12, 2020 · 1 comment
Open

install script overwrites build/lz4.js #95

MPickfield opened this issue May 12, 2020 · 1 comment

Comments

@MPickfield
Copy link

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.

@pierrec
Copy link
Owner

pierrec commented May 15, 2020

Thanks for reporting. Please send a PR if you need it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants