I recently ran into an issue whereby .gitignore files were not being included in the tar.gz. This was due to the fact that I was using npm v9 instead of v6.
We should enforce/validate that the user is running the required version of nvm/npm before packaging to ensure correct bundling.
A potentials solution could be to add an engines entry into the root package.json specifying npm v6 i.e:
I recently ran into an issue whereby
.gitignore
files were not being included in the tar.gz. This was due to the fact that I was using npm v9 instead of v6.We should enforce/validate that the user is running the required version of nvm/npm before packaging to ensure correct bundling.
A potentials solution could be to add an engines entry into the root package.json specifying npm v6 i.e: