Back to Tiptap

Runnable scripts from package.json

agents/SCRIPTS.md

3.27.11.9 KB
Original Source

Runnable scripts from package.json

The following scripts are defined at the repo root and can be run via pnpm <script-name>:

  • development and build
    • pnpm dev - start the demos on port 3000
    • pnpm build - build all packages via Turborepo
  • linting and formatting
    • pnpm lint - run oxlint checks
    • pnpm lint:fix - run oxlint with auto-fix
    • pnpm lint:staged - run lint-staged on staged files
    • pnpm format - run oxfmt formatter check
    • pnpm format:fix - run oxfmt formatter
    • pnpm check - run format check + lint
    • pnpm check:fix - run format:fix + lint:fix
  • code quality (fallow)
    • pnpm fallow - full codebase scan (dead-code + dupes + health)
    • pnpm fallow:audit - changed-code audit (verdict: pass/warn/fail)
    • pnpm fallow:health - health score with refactor targets
  • testing
    • pnpm test - build then run all tests
    • unit tests with Vitest
      • pnpm test:unit - run Vitest unit tests in packages/**/__tests__/
      • pnpm test:unit:dev - run Vitest in watch mode
    • e2e tests with Playwright
      • pnpm test:e2e - run Playwright e2e tests headlessly in Chromium
      • pnpm test:e2e:firefox - same, in Firefox
      • pnpm test:e2e:all - same, in both browsers
      • pnpm test:e2e:open - run Playwright in UI mode (Chromium tests)
      • pnpm test:e2e:open:firefox - UI mode, Firefox tests
      • pnpm test:e2e:open:all - UI mode, both browsers selectable
      • pnpm test:e2e:report - open the HTML report from the last run
  • publishing & serving
    • pnpm serve - build and serve the demos on port 3000
    • pnpm publish - build and publish with Changesets
  • maintenance
    • pnpm reset - remove caches, build artifacts, and reinstall deps
    • pnpm clean:packages - remove build artifacts from packages
    • pnpm clean:packs - remove generated tarballs
    • pnpm make:demo - scaffold a new demo from the template