publish-package-json
Command line utility to clean and copy package.json for publishing a npm package.
Basic usage
Add a npm-script shortcut:
{
"scripts": {
"clean-to-publish": "clean-to-publish"
}
}
And use it
yarn run clean-to-publish
# or
npm run clean-to-publish
If you've installed globally, invoke directly from command line:
clean-to-publish
clean-to-publish
command will read your package.json and add a modified version of it in the dist directory ommiting scripts
, devDependencies
, jest
.