NPM uses your .gitignore file

NPM uses your .gitignore file in the absence of a .npmignore file which can cause unexpected behaviour when publishing modules.