Use pnpm for installing packages and running commands.
Essential commands: build, test, test:coverage, typecheck, publint, lint, format,
format:check.
- Make targeted changes in
src/. Internal code lives under./src/lib/, anything exported to the public API lives under./src/*.tsroot files. - Run
pnpm test(orpnpm test src/path/to/file.test.tswhile iterating). - Run
pnpm lintbefore finishing (runstypecheckonly). - If changes are substantial, run
pnpm test:coverage. - If output/public API surface changes, run
pnpm build(publint runs automatically aspostbuild).