Create a new changeset file to track package version changes.
The commit command creates a new changeset file in the .changes or .changesets directory. A changeset describes which packages should be bumped and at what level (major/minor/patch).
| Option | Short | Description |
|---|---|---|
--name <NAME> |
-n |
Changeset filename (will be sanitized) |
--level <LEVEL> |
-l |
Default bump level (major/minor/patch) |
--summary <TEXT> |
-s |
Changeset summary/description |
When running without options, the command will interactively prompt for:
Changeset Name: A unique identifier for this changeset (will be sanitized to lowercase with dashes)
Packages: Multi-select list of packages affected by this change
Bump Level per Package: For each bump level (patch, minor, major), select which packages should be bumped at that level
Tag: Select a category tag (e.g., feat, fix, chore)
Summary: A description of the changes
Changesets are stored as Markdown files with YAML front matter:
The format is:
--- marks the start of YAML front matterpackage: level or package: level:tag defines a package bump--- separates front matter from the summary| Level | Description |
|---|---|
major |
Breaking changes (e.g., 1.0.0 → 2.0.0) |
minor |
New features, backward compatible (e.g., 1.0.0 → 1.1.0) |
patch |
Bug fixes, backward compatible (e.g., 1.0.0 → 1.0.1) |
-smif status to see all pending changesets