How to include node_modules in git archive ZIP?

24 Views Asked by At

I have added node_modules in .gitignore as usual, because I want to keep it out of my repository. However, I use git archive to create a production ZIP that I upload to AWS Elastic Beanstalk and I want to include the node_modules so that they don't have to be installed on the EC2 instance, because it has very limited resources.

I looked at .gitattributes and I know I can use export-ignore to exclude a folder that is not present in .gitignore, but here I want to do the opposite. I didn't find anything in the git archive docs. Is this possible?

0

There are 0 best solutions below