fstream-npm icon indicating copy to clipboard operation
fstream-npm copied to clipboard

Never ignore 'browser' file

Open isaacs opened this issue 8 years ago • 2 comments
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.

isaacs avatar Feb 14 '17 07:02 isaacs

Coverage Status

Coverage increased (+0.2%) to 86.905% when pulling 7fbbd9278e322361564451517c849a2aa48d67d6 on browser-ignored into b839e060768000d634b43e44274df68e383d5791 on master.

coveralls avatar Feb 14 '17 07:02 coveralls

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.

ghost avatar Feb 14 '17 08:02 ghost