This release-it plugin checks that there are no npm dependencies with pre-release version.
npm install --save-dev release-it-no-prerelease-dependencies
In release-it config:
"plugins": {
"release-it-no-prerelease-dependencies": {}
}
Optional "includes"
and "excludes"
can be defined with RegExp strings to filter checked dependencies:
"plugins": {
"release-it-no-prerelease-dependencies": {
"includes": ["^foo-", "^@bar/"],
"excludes": ["baz$"]
}
}