shashkovdanil / clean-publish

Removing configuration files and fields in package.json before publishing to npm

Home Page:https://www.npmjs.com/package/clean-publish

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support `scripts.postinstall` like syntax for `fields`, or provide a way to override exceptions

JounQin opened this issue · comments

My package.json contains {"postinstall": "simple-git-hooks && yarn-deduplicate --strategy fewer || exit 0"}, it is unexpected to preserve on publishing.

I just found I could change it to prepare, but it would be better to override this package's config.

Removing this field will be unexpected for most of users (contributors to your project). I recommend you to moving to prepare in this case.

Or could it be documented better.