Versioning
Consuming Changesets
bash
tspub changeset versionThis:
- Reads all pending changeset files
- Determines the highest bump per package
- Updates
package.jsonversions - Generates/updates
CHANGELOG.md - Deletes consumed changeset files
Dry Run
Preview without making changes:
bash
tspub changeset version --dry-runDependent Bumping
In monorepos, when package A bumps, packages that depend on A may also need bumps.
Configure in tspub.config.ts:
typescript
export default {
changeset: {
// "major" — only bump dependents for major changes
// "all" — bump dependents for any change
// "none" — never auto-bump dependents
dependentBumping: "major",
},
};Changelog Styles
Configure how changelogs are generated:
typescript
export default {
publish: {
// "simple" — bullet list
// "conventional" — grouped by type (feat, fix, etc.)
// "auto" — detect from git history
changelogStyle: "conventional",
},
};