{
"private": true,
"workspaces": {
"packages": [
"./packages/*"
]
},
"scripts": {
"bump": "git diff-index --quiet HEAD -- && yarn version --no-commit-hooks --no-git-tag-version",
"version": "yarn workspaces run bump-to $npm_package_version",
"postversion": "git add --all && git commit -m \"v$npm_package_version\" && git tag \"v$npm_package_version\" -m \"Version $npm_package_version\" && git push && git push --tags"
},
"version": "1.0.0"
}
- ./packages/*/package.json
{
"name": "my-package",
"version": "1.0.0",
"scripts": {
"bump-to": "yarn version --no-commit-hooks --no-git-tag-version --new-version"
}
}