Thanks for helping make cookie consent less spooky.
pnpm install
pnpm example # runs the Vite playground with live reload of src/Node 18+ and pnpm 11 (the version is pinned in package.json → packageManager; run corepack enable if pnpm is missing).
| Script | What it does |
|---|---|
pnpm build |
Bundles src/ to dist/ (ESM + CJS + .d.ts) and copies styles.css |
pnpm dev |
Same, in watch mode |
pnpm example |
Vite playground at http://localhost:5173 |
pnpm lint / pnpm lint:fix |
Biome lint + format check / auto-fix |
pnpm typecheck |
tsc --noEmit for the library and the playground |
pnpm test |
Vitest unit tests |
pnpm check |
Everything CI runs, in order |
pnpm changeset |
Adds a release note for your change |
- Branch from
main. - Make the change. Add or adjust a scenario in
examples/vite-playground/src/scenarios/if it is user-visible. - Run
pnpm check. - If the published package changes, run
pnpm changesetand pickpatch,minorormajor(seeMAINTAINING.mdfor how to choose). - Open the PR. CI must be green.
Biome owns formatting and linting; do not hand-format. Components use plain CSS classes prefixed nsr- and CSS custom properties prefixed --nsr-. No Tailwind or other CSS framework may be required at runtime.