Use files property in package.json to explicit show what files are included (in contradiction to .npmignore where you specifically exclude "some" files).
This way one avoids accidentally publishing non-compiled code like src/ folder etc:
Note that a bunch of files are always considered when publishing and does not have to be listed in the list accordingly to the docs:
Use
files
property inpackage.json
to explicit show what files are included (in contradiction to.npmignore
where you specifically exclude "some" files).This way one avoids accidentally publishing non-compiled code like
src/
folder etc:Note that a bunch of files are always considered when publishing and does not have to be listed in the list accordingly to the docs: