Minimal Setup
Minimal Setup covers most TypeScript changes, stable core unit tests, representative Vite and local Wrangler builds, and docs source checks. Use the Full Setup (Nix + devenv) when your work needs browsers, generated sources, a SQLite distribution rebuild, releases, infrastructure, or final repository-wide validation.
Install the toolchain
Section titled “Install the toolchain”Install Node.js 24,
Bun, and the pnpm version declared by
package.json#packageManager using the
official pnpm installation options. Confirm the
tools resolved from your shell:
node --versionbun --versionpnpm --versionRun a frozen install from the repository root:
pnpm install --frozen-lockfile./scripts/bootstrap-minimal.sh is an optional diagnostic for people and
agents. It checks the same prerequisites and runs the frozen install, without
installing or upgrading tools globally.
Validate your change
Section titled “Validate your change”Setup only makes dependencies ready. Run the checks that match your work:
| Work | Command |
|---|---|
| Core TypeScript | pnpm exec tsc -b packages/@livestore/livestore --pretty false |
| Stable core units | pnpm --filter @livestore/common exec vitest run |
| Vite example | pnpm --filter livestore-example-web-todomvc run build |
| Cloudflare Worker | pnpm --filter livestore-example-cloudflare-todomvc run build |
| Docs source | pnpm --filter @local/docs run check |
Before a maintainer-ready handoff, use the full setup for any required checks outside this table and rely on the complete CI bar.
Docker (optional)
Section titled “Docker (optional)”Docker provides a familiar, known-good realization and is also the CI regression oracle for this lane:
docker compose buildLOCAL_UID="$(id -u)" LOCAL_GID="$(id -g)" docker compose run --rm developmentThe image ships its install under /app, while Compose bind-mounts your fresh
checkout at /workspace. Prepare the mounted checkout once inside the container
before working in it:
./scripts/bootstrap-minimal.shCompose bind-mounts the source tree. Use an exclusive checkout and do not run host and container installs concurrently. The image intentionally omits browsers, generated-source tooling, Nix, release state, and infrastructure tools.