fstream-npm
fstream-npm copied to clipboard
Never ignore 'browser' file
trafficstars
This will prevent issues like https://github.com/substack/node-browserify/issues/1687, where a user has a 'files' list, or .npmignore file, and inadvertently tries to exclude their browserify/webpack entry point.
Coverage increased (+0.2%) to 86.905% when pulling 7fbbd9278e322361564451517c849a2aa48d67d6 on browser-ignored into b839e060768000d634b43e44274df68e383d5791 on master.
The browser field can also be an object that maps local aliases to file paths: https://github.com/defunctzombie/package-browser-field-spec#replace-specific-files---advanced
Also keep in mind the false case.