> Don't do this:
> module.exports = IPFSDropzone
> Do this (and change documentation accordingly)
> module.exports = {IPFSDropzone}
Why? Exporting a single class for this kind of lib is preferable. I'd do:
export default IPFSDropzone;
See react-dropzone which does this [1]. (For that matter the author's questions around project setup would probably be answered by looking at react-dropzone's which looks pretty good).Also with npm scripts, local deps that expose executables are added to your PATH so you can call them directly, e.g.
"prepublish": "babel *.js -d build/"
[1] https://github.com/react-dropzone/react-dropzone/blob/master...