Clean Publish
Clean Publish is a tool for removing configuration files, fields and script for development from package.json before publishing to npm.
Docs
Read full docs here.
Clean your package before publish
Clean Publish is a tool for removing configuration files, fields and script for development from package.json before publishing to npm.
Read full docs here.
scripts removal (by @dangreen).fields (by @pyoner).prepare script (by @azat-io).publishConfig to ignore fields (by Dan Onoshko).--clean-comments (by Artiom Tretjakovas).--tag (by Artiom Tretjakovas)..clean-publish.json config support (by Artiom Tretjakovas)./**/ comments cleaning on cleanComments option.-- support to pass any arguments to package manager (by Dan Onoshko).files option (by Dan Onoshko).package.publishConfig support in exports cleaning (by Dan Onoshko).--exports option (by Dan Onoshko).pnpm support.publish script with clean-publish (by Nikita Karamov).c8 support.packageManager option (by Dan Onoshko).cleanDocs (by Dan Onoshko).--tmp-dir argument (by Dan Onoshko).exports option (by Dan Onoshko).--dry-run argument (by Igor Kamyshev).cleanComments option.README translations to ignore.cleanDocs option.cleanDocs option.commitlint support (by @JounQin).remark support (by @JounQin).renovate (by @JounQin).typeCoverage support (by @JounQin).resolutions support (by @JounQin).uninstall to ignored scripts (by Mikhail Gorbunov).simple-git-hooks to ignored fields.ChangeLog to ignored files.