A best practice is to whitelist all files that should be included in an NPM package, this will prevent adding content to the package that was not meant to be public. We need to add a files section in our package.json listing all files.
Once the task is complete we can remove the node/.npmignore file to avoid confusion.
Sources
A best practice is to whitelist all files that should be included in an NPM package, this will prevent adding content to the package that was not meant to be public. We need to add a
filessection in our package.json listing all files.Once the task is complete we can remove the
node/.npmignorefile to avoid confusion.Sources