Skip to content

Commit 72dbc86

Browse files
committed
feat(add): more stuff
1 parent 7d1036a commit 72dbc86

6 files changed

Lines changed: 30 additions & 28 deletions

File tree

.claude/commands/db-migrate.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Run a Prisma migration for the current schema changes.
77
1. Ask the user for a short migration name that describes what changed (e.g. `add-object-storage-pool`, `add-user-avatar-field`).
88
2. Run the migration:
99
```bash
10-
yarn db:migrate --name <migration-name>
10+
bun run db:migrate --name <migration-name>
1111
```
12-
3. Run `yarn db:generate` to update the Prisma client.
12+
3. Run `bun run db:generate` to update the Prisma client.
1313
4. Report the new migration file created under `prisma/migrations/`.
1414

15-
If `yarn db:migrate` fails due to a destructive change (dropping a column, renaming), explain the impact and ask whether to proceed with `--create-only` so the SQL can be reviewed first.
15+
If `bun run db:migrate` fails due to a destructive change (dropping a column, renaming), explain the impact and ask whether to proceed with `--create-only` so the SQL can be reviewed first.

.claude/commands/lint.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
Run ESLint across the project and auto-fix what can be fixed.
44

55
```bash
6-
yarn lint:fix
6+
bun run lint:fix
77
```
88

99
Then verify no remaining errors:
1010

1111
```bash
12-
yarn lint
12+
bun run lint
1313
```
1414

1515
Key rules to be aware of:

.claude/commands/typecheck.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
Run TypeScript type checking across the entire project without emitting files.
44

55
```bash
6-
yarn typecheck
6+
bun run typecheck
77
```
88

99
If there are errors, fix them before considering any task complete. Pay attention to:
1010

11-
- Prisma model field names (regenerate the client with `yarn db:generate` if model types are stale)
11+
- Prisma model field names (regenerate the client with `bun run db:generate` if model types are stale)
1212
- Import path aliases (`@/packages/lib/...` not relative paths)
1313
- `unknown` vs `any` — prefer narrowing over casting

.claude/settings.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"permissions": {
33
"allow": [
4-
"Bash(yarn:*)",
5-
"Bash(npx prisma:*)",
6-
"Bash(npx tsx:*)",
4+
"Bash(bun:*)",
5+
"Bash(bunx:*)",
76
"Bash(git diff:*)",
87
"Bash(git log:*)",
98
"Bash(git status:*)",

CLAUDE.md

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Emberly is an open-source, self-hosted file sharing and user identity platform b
1717
| Payments | Stripe |
1818
| Email | Resend or SMTP |
1919
| Styling | Tailwind CSS 3 + shadcn/ui (Radix UI) |
20-
| Package manager | Yarn 1 |
20+
| Package manager | Bun |
2121
| License | AGPL-3.0-only |
2222

2323
---
@@ -26,29 +26,33 @@ Emberly is an open-source, self-hosted file sharing and user identity platform b
2626

2727
```bash
2828
# Development
29-
yarn dev # Next.js dev server with Turbopack
29+
bun dev # Next.js dev server with Turbopack
3030

3131
# Build
32-
yarn build # Production build
33-
yarn typecheck # tsc --noEmit (no build, just types)
34-
yarn lint # ESLint
35-
yarn lint:fix # ESLint with auto-fix
36-
yarn format # Prettier write
37-
yarn format:check # Prettier check (used in CI)
32+
bun run build # Production build
33+
bun run typecheck # tsc --noEmit (no build, just types)
34+
bun run lint # ESLint
35+
bun run lint:fix # ESLint with auto-fix
36+
bun run format # Prettier write
37+
bun run format:check # Prettier check (used in CI)
3838

3939
# Database
40-
yarn db:generate # prisma generate (regenerate client after schema changes)
41-
yarn db:migrate # prisma migrate dev (create + apply migration in dev)
42-
yarn db:deploy # prisma migrate deploy (apply existing migrations in prod)
43-
yarn db:push # prisma db push (schema sync without migrations — dev only)
44-
yarn db:studio # Open Prisma Studio
45-
yarn db:seed # Seed subscription plans
40+
bun run db:generate # prisma generate (regenerate client after schema changes)
41+
bun run db:migrate # prisma migrate dev (create + apply migration in dev)
42+
bun run db:deploy # prisma migrate deploy (apply existing migrations in prod)
43+
bun run db:push # prisma db push (schema sync without migrations — dev only)
44+
bun run db:studio # Open Prisma Studio
45+
bun run db:seed # Seed subscription plans
46+
47+
# Packages
48+
bun add <pkg> # Add a dependency
49+
bun remove <pkg> # Remove a dependency
4650

4751
# Security
48-
npx socket@latest check # Run socket.dev supply chain check locally
52+
bunx socket@latest check # Run socket.dev supply chain check locally
4953
```
5054

51-
**Always run `yarn db:generate` after editing `prisma/schema.prisma`.**
55+
**Always run `bun run db:generate` after editing `prisma/schema.prisma`.**
5256

5357
---
5458

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"next": "^16.2.6",
9292
"next-auth": "^4.24.14",
9393
"next-themes": "^0.4.6",
94-
"nodemailer": "^8.0.5",
94+
"nodemailer": "^9.0.1",
9595
"otplib": "^12.0.1",
9696
"papaparse": "^5.5.3",
9797
"pino": "^9.9.4",
@@ -126,7 +126,6 @@
126126
"@react-email/tailwind": "^2.0.2",
127127
"@tailwindcss/typography": "^0.5.19",
128128
"@types/node": "^25.2.2",
129-
"@types/nodemailer": "^8.0.0",
130129
"@types/react": "^19.2.13",
131130
"@types/react-dom": "^18.3.7",
132131
"@types/uuid": "^10.0.0",

0 commit comments

Comments
 (0)