Clean Publish is a tool for removing configuration files, fields and script for development from package.json before publishing to npm.
package.json
npm
Read full docs here.