Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add notes about changesets to CLAUDE.md
  • Loading branch information
andrewiggins committed Feb 1, 2026
commit 5f90b876a05194faff7be4266da026d1bf397d29
39 changes: 39 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,45 @@ Microbundle is a zero-configuration bundler for tiny JavaScript libraries, power
- `npm run lint` - Run ESLint on src directory
- `npm run format` - Format all JS and CSS files with Prettier

### Changesets and Versioning

This project uses [@changesets/cli](https://github.com/changesets/changesets) to track notable changes and generate changelogs.

#### Creating a Changeset

When making a change that should be documented in the changelog:

```bash
npm run changeset
```

This will:

1. Prompt you to select the type of change (major, minor, or patch)
2. Ask you to describe the change
3. Create a markdown file in `.changeset/` with a randomly generated name

#### Changeset Configuration

- **Changelog Format**: Uses `@changesets/changelog-github` to generate GitHub-flavored changelogs
- **Base Branch**: `master` (configured in .changeset/config.json:10)
- **Access**: Public (for npm publishing)
- **Commit Mode**: Changesets are not automatically committed (commit: false)

#### Changeset File Format

Changeset files in `.changeset/` follow this format:

```markdown
---
"microbundle": patch
---

Description of the change
```

The version bump type can be: `major`, `minor`, or `patch`

### Running Tests

Individual tests can be run with Jest's standard CLI options:
Expand Down
Loading