Scripts
Available scripts for development, maintenance, and production.
Overview
ZeroStarter provides a comprehensive set of scripts for development, maintenance, and production workflows. These scripts are defined in the root package.json and can be run using bun run <script-name>.
Scripts
Development
bun run dev: Start the development servers.
Maintenance
bun run clean: Remove build artifacts and caches (.next,.turbo,dist, etc.) plus allnode_modulesand generated typedefs.
bun run clean deletes node_modules and the generated typedefs, so you must re-run bun install afterward.
bun run lint: Lint the entire monorepo with Oxlint in a single pass. Oxlint is also run on staged files at commit time via lint-staged.bun run format: Format the codebase using Oxfmt.bun run format:check: Check formatting without making changes.bun run check-types: Check the types of the codebase (runs the Turbocheck-typespipeline, thencheck-types:scripts).bun run check-types:scripts: Type-check the repo scripts withtsgo -p .github/scripts/tsconfig.json.
Production
bun run build: Build the applications. Runsturbo run build --summarizeand thenbun .github/scripts/build-sizes.ts, which reports each workspace's build size after every build. Theweb/nextbuild itself runscompress-images.tsfirst (Sharp and SVGO optimization ofweb/next/public), then the docs generator (--strict), thenfumadocs-mdx, thennext build.build:vercel: There is no rootbun run build:vercelscript; it is a Turbo task run viaturbo run build:vercelduring Vercel deployments. In theapi/honoworkspace this first runstsdown(producingdist/), thenbun build dist/index.mjs --outfile vercel-bundle/index.mjs --target bun --minify --external honoto produce the deployedvercel-bundle/.bun run start: Start the production servers.
Database
bun run db:generate: Generate Drizzle migrations.bun run db:migrate: Run Drizzle migrations.bun run db:studio: Open Drizzle Studio to view/edit data.
Console
bun run console:roles: Manage admin console access by setting a user'srole(Better Authadminplugin). Runsbun .github/scripts/console-roles.ts <grant|revoke|list> [email]:grant <email>setsrole = admin(console access),revoke <email>setsrole = user, andlistshows the current console admins.
Utilities
bun run shadcn:update: Update all shadcn/ui components (runs the update script, thenbun i).bun run devtools: Open Turborepo DevTools.bun run prepare: Install git hooks via Lefthook.bun run postinstall: Normalize and sort thecatalog:dependency entries viabun .github/scripts/deps-manager.ts(runs automatically afterbun install).