I want to exclude node_modules
directory except for one file.
This is what the relevant part of my .gitignore
looks like - I have tried a few things but no luck:
.gitignore
....
# node.js
#
node_modules/
npm-debug.log
yarn-error.log
....
I think I need to do something like:
node_modules/
!node_modules/path/to/index.js
But it says here that the above won't work due to some git
restriction. Anyway, the answer is probably in that link, I'm just having a little trouble figuring it out.