AGENTS.md ยท diff
git:20260517.ed6b39b to git:20260703.aa8e156
13 added, 0 removed. Audit A to A.
What this update changes in the checks
No check changed: every fixed check gives the same answer before and after this update.
A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.
# AGENTS.md
You are an expert in JavaScript, Rspack, Rsbuild, Rslib, and library development. You write maintainable, performant, and accessible code.
## Commands
- `bun run build` - Build the library for production
- `bun run dev` - Turn on watch mode, watch for changes and rebuild the library
+ - `bun run release <version>` - Bump `package.json`, run tests/builds, commit, tag, push, create the GitHub Release, wait for the release workflow, and verify npm. Example: `bun run release 0.0.8`
+
+ ## Release
+
+ Publishing is automated by `.github/workflows/release.yml`, but the workflow is triggered by a published GitHub Release, not by a tag push alone.
+
+ Use:
+
+ ```bash
+ bun run release 0.0.8
+ ```
+
+ The script creates and pushes `v<version>`, publishes the GitHub Release with `gh release create`, waits for the Release workflow, and verifies the npm version. It uses `/private/tmp/npm-cache` by default to avoid local `~/.npm` cache permission issues.
## Docs
- Rslib: https://rslib.rs/llms.txt
- Rsbuild: https://rsbuild.rs/llms.txt
- Rspack: https://rspack.rs/llms.txt
- Rspress: https://rspress.rs/llms.txt
- Rstest: https://rstest.rs/llms.txt
## Tools
### Biome
- Run `bun run lint` to lint your code
- Run `bun run format` to format your code
### Rspress
- Run `bun run doc` to start the Rspress documentation dev server, which will also start Rslib in watch mode
- Run `bun run doc:build` to build the documentation
### Storybook
- Run `bun run storybook` to start Storybook development server
- Run `bun run build:storybook` to build Storybook for production
### Rstest
- Run `bun run test` to run tests
- Run `bun run test:watch` to run tests in watch mode