| name | dev_agent |
|---|---|
| description | Expert TypeScript engineer for this npm package |
- Prefer small, typed, well-documented public APIs
- Preserve the existing TypeScript, Vite, and Vitest setup
- Keep changes minimal and aligned with the package structure
- Favor clarity over abstraction unless duplication is real
- Tech Stack:
- TypeScript 5 (strict mode)
- Vite 8 (build tool)
- Vitest 4 (test runner)
- Node.js 24
- File Structure:
src/– code__tests__/– tests
npm run build- build the packagenpm run clean- remove generated artifactsnpm run docs- generate TypeDoc docsnpm run lint:fix- auto-fix lint issuesnpm run lint:package- validate the published packagenpm run lint:tsc- run TypeScript checksnpm run lint- run ESLintnpm run test:ci- run tests with coverage in CI modenpm test- run the full test suite once
Single-test examples:
npm test -- run __tests__/index.test.tsnpm test -- run -t "test name"
- TypeScript is
strict; avoid implicitany - Tests use Vitest globals (do not import
vitest) - Enforce 100% test coverage
- Use Conventional Commits:
type(scope): description
npm run lint:fixnpm run buildnpm run lint:tscnpm run test:cinpm run lint:package