AGENTS.md · git:20260703.aa8e156 · 2026-07-03 · sha256 cf366d4566c4bbbf
AGENTS.md git:20260703.aa8e156A
Immutable. This exact content never changes and is served at /api/v1/blob/cf366d4566c4bbbf.
# 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