I am creating lambda function with serverless framework with typescript-http-api
template. However, I noticed that .gitignore
file doesn't contain line to exclude .build
folder.
.build
folder contains node_modules and obvioulsy large. Should I manually add it to .gitignore
or there are some caveats that I don't know?
CodePudding user response:
Yes, build folder should be included in .gitignore, because when the developer pulls the changes, when he compiles he will get the build folder back if you wrote well your tsconfig.json file and i don't think that it's a good idea to have node_modules inside the build folder