In this page, you will learn the role of each script command from the root package.json
file.
{ "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.
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.
This uses turbo build
with caching to compile all projects efficiently.
Clean
The clean
script removes all generated files and dependencies.
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.
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.
This command fixes linting errors and corrects package dependency inconsistencies.
Format
The format
script checks code formatting using Prettier.
This command verifies that all code follows the project's formatting standards.
Format:fix
The format:fix
script automatically formats all code files.
This command applies Prettier formatting to fix any formatting issues.
Typecheck
The typecheck
script runs TypeScript type checking across all packages.
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.
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.
This helps identify large dependencies and optimization opportunities.
Package Management Scripts
Syncpack:list
The syncpack:list
script lists mismatched package versions across the monorepo.
This helps identify packages that have different versions in different workspaces.
Syncpack:fix
The syncpack:fix
script automatically fixes package version mismatches.
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.
This enables local testing of Stripe webhooks and payment flows.
All the environment variables you need to configure the creatorem saas kit.
Database management for the creatorem saas kit.
How is this guide?
Last updated on 10/17/2025