@bonvoy/plugin-changeset
v0.12.0
Published
🚢 Changeset-compatible workflow for bonvoy
Maintainers
Readme
@bonvoy/plugin-changeset 🚢
Changeset-compatible workflow for bonvoy
Optional plugin that provides a changeset-compatible workflow with bonvoy extensions.
Features
- ✅ Changeset compatible - Same file format as
@changesets/cli - ✅ Migration friendly - Reads from
.changeset/and.bonvoy/ - ✅ Explicit versions - Supports
"2.0.0"in addition tomajor/minor/patch - ✅ Multi-file merge - Combines multiple files per package
- ✅ Auto cleanup - Deletes processed files after release
Installation
npm install -D @bonvoy/plugin-changesetUsage
// bonvoy.config.js
export default {
plugins: [
'@bonvoy/plugin-changeset',
// NOTE: Do NOT use with @bonvoy/plugin-conventional
]
};File Format
Create files in .changeset/ or .bonvoy/ with YAML frontmatter:
---
"@scope/core": minor
"@scope/utils": patch
---
Added new authentication feature.
This description goes into the changelog.Explicit Versions (Bonvoy Extension)
Unlike standard changeset, you can specify exact versions:
---
"@scope/core": "2.0.0"
---
Breaking release with new API.Multi-file Behavior
When multiple files reference the same package:
<!-- .changeset/feature-a.md -->
---
"@scope/core": minor
---
Added feature A
<!-- .changeset/feature-b.md -->
---
"@scope/core": patch
---
Fixed bug BResult:
- Bump: Takes highest (
minorwins overpatch) - Notes: Concatenates all descriptions
Configuration
export default {
plugins: [
['@bonvoy/plugin-changeset', {
deleteAfterRelease: true, // default: true
}]
]
};Migration from Changesets
- Install
@bonvoy/plugin-changeset - Remove
@changesets/clifrom your project - Your existing
.changeset/*.mdfiles will work as-is - Run
bonvoy shipitinstead ofchangeset version && changeset publish
License
MIT
