Best Practices for publishing to NPM
So, you are thinking of publishing a package on the npm registry? Here are some best practices that may not be so obvious at a glance but I’ve learned with experience. Include only the files you need You can add the following inside your package.json { "files": [ "dist" ] } This is assuming you are using TypeScript and have a dist/ folder, this can be your src/ folder if you are using plain JavaScript....