Open History to see the last commit
1# Package Manager Instructions
2
3Always use pnpm instead of npm for all package management tasks:
4
5- Use `pnpm install` instead of `npm install`
6- Use `pnpm add <package>` instead of `npm install <package>`
7- Use `pnpm add -D <package>` instead of `npm install --save-dev <package>`
8- Use `pnpm remove <package>` instead of `npm uninstall <package>`
9- Use `pnpm run <script>` instead of `npm run <script>`
10- Use `pnpm <command>` for any other npm commands
11- Use `pnpm dlx <command>` instead of `npx <command>`
12- Use `pnpm create <template>` instead of `npm create <template>`
13
14## Project-Specific Scripts
15
16When running scripts from package.json, always use:
17
18- `pnpm dev` for development server
19- `pnpm build` for production build
20- `pnpm run test` for running tests
21- `pnpm lint` for linting
22- `pnpm typecheck` for type checking
23- `pnpm format` for code formatting
24
25## Database Commands
26
27For database-related tasks:
28
29- `pnpm db.generate` to generate database migrations
30- `pnpm db.local.migrate` to apply local migrations
31- `pnpm db.prod.migrate` to apply production migrations
32
33## Use pnpm
34
35Never use npm, yarn, or any other package manager in this project. All package
36operations should be performed with pnpm.
37
38## Tech Stack
39
40This project uses TanStack Start. The root route is at `src/route/__root.tsx`.
41
42Here's the tech stack:
43
44- framework: TanStack Start (`@tanstack/start`) with `react`
45- router: TanStack Router (`@tanstack/router`)
46- ui: `shadcn/ui`
47- css: `tailwindcss` (v4)
48
49# Tests
50
51We use `vitest` for the tests.
52
53All tests are in `__test__/`.