conventional-release-setup
Sets up an npm project for committing and releasing with Conventional Commits:
npx conventional-release-setup
Usage
Run the CLI:
npx conventional-release-setup
Or install the CLI globally and run:
npm install --global conventional-release-setup
conventional-release-setup
If you want to release with standard-version, then use v1:
npx conventional-release-setup@1
What It Does
The script:
- updates
package.json
:
version
scripts
- prepends
release
with husky install
- installs devDependencies:
- copies the configs:
- adds husky hook
commit-msg
If the package is not private
, then the script:
- updates
package.json
scripts:
- prepends
pinst --enable
to postpublish
- prepends
pinst --disable
to prepublishOnly
- installs devDependency:
- pinst - lets you have
postinstall
hook that runs only in dev
Release
Release is automated with Release Please.
License
MIT