isaacs/npm — Issue #1886: .gitignore in modules
Author: wavded
Created: 2011-12-15 04:28:01+00:00
State: open

@isaacs, thanks for addressing the rebuild issue! So my goal is to use @mikeal idea of committing modules to git that he wrote about recently. There is another big snag that I wonder if npm should handle so I'm putting it in as an issue.

Many modules include `.gitignore` files that ignore the `node_modules` directory. So doing an `npm install` and then committing the modules doesn't really commit all the necessary dependencies. So someone checking out the code would have essentially reinstall everything. Is there anyway we can address this? Having a slightly hacky `sed` and `find` dance in an outside script is doable but seems like if npm handled this it would be a lot cleaner and easier to use... or not. My thought is just to remove the `node_modules` in `.gitignore` files but leave the other ignore stuff to avoid extra bloat. Thoughts?