Get Started
PreviousNext

Scripts

All the scripts commands from the the root `package.json` file.

In this page, you will learn the role of each script command from the root package.json file.

package.json
{ "name": "your-project-name", "version": "1.0.0", "scripts": { "build": "...", // build all apps and packages for production "clean": "...", // rm node_modules, dist, .next, etc... "dev": "..", // trigger dev cmd for all apps in parallel "format": "...", // format the code with `prettier` "format:fix": "...", // format the code and fix issues "lint": "...", // lint the code with `eslint` "lint:fix": "...", // lint the code and fix issues "typecheck": "...", // ts type checking using `tsc` // other scripts... } // dependencies, etc... }

We are using the turbo tool to run the scripts, one by one for each application/packages.

Development Scripts

Dev

The dev script starts the development servers for all applications in parallel.

pnpm dev

This command uses turbo dev --parallel to run development servers concurrently for all apps (marketing, dashboard, creatorem, mobile) and packages.

Build

The build script builds all applications and packages for production.

pnpm build

This uses turbo build with caching to compile all projects efficiently.

Clean

The clean script removes all generated files and dependencies.

pnpm clean

This command cleans node_modules, dist, .next directories and other build artifacts.

Code Quality Scripts

Lint

The lint script runs ESLint on all affected packages and checks for package mismatches.

pnpm lint

This uses turbo lint --affected to only lint files that have changed, improving performance.

Lint:fix

The lint:fix script automatically fixes ESLint issues and package mismatches.

pnpm lint:fix

This command fixes linting errors and corrects package dependency inconsistencies.

Format

The format script checks code formatting using Prettier.

pnpm format

This command verifies that all code follows the project's formatting standards.

Format:fix

The format:fix script automatically formats all code files.

pnpm format:fix

This command applies Prettier formatting to fix any formatting issues.

Typecheck

The typecheck script runs TypeScript type checking across all packages.

pnpm typecheck

This uses turbo typecheck --affected to only check types for changed files.

Testing Scripts

Test

The test script runs all test suites across the monorepo.

pnpm test

This command executes unit tests, integration tests, and other test types defined in each package.

Analyze

The analyze script runs bundle analysis tools to optimize build sizes.

pnpm analyze

This helps identify large dependencies and optimization opportunities.

Package Management Scripts

Syncpack:list

The syncpack:list script lists mismatched package versions across the monorepo.

pnpm syncpack:list

This helps identify packages that have different versions in different workspaces.

Syncpack:fix

The syncpack:fix script automatically fixes package version mismatches.

pnpm syncpack:fix

This ensures all packages use consistent versions across the monorepo.

Database Scripts

Check the database commands for more information.

Payment Scripts

Stripe:listen

The stripe:listen script starts the Stripe webhook listener for local development.

pnpm stripe:listen

This enables local testing of Stripe webhooks and payment flows.

How is this guide?

Last updated on 10/17/2025