Skip to content

migrate to pnpm, make backend restart on edits on dev, make types in front not need backend build#502

Merged
JeromeBu merged 6 commits intomainfrom
migrate-pnpm-shared-tsx
Mar 19, 2026
Merged

migrate to pnpm, make backend restart on edits on dev, make types in front not need backend build#502
JeromeBu merged 6 commits intomainfrom
migrate-pnpm-shared-tsx

Conversation

@JeromeBu
Copy link
Collaborator

  • docs: add migration plan for yarn→pnpm, tsx dev, shared package
  • refactor: migrate from yarn to pnpm
  • feat: use tsx for API dev with hot reload
  • refactor: use internal package pattern for api→web type sharing

@JeromeBu JeromeBu self-assigned this Mar 13, 2026
@JeromeBu JeromeBu changed the title migrate pnpm shared tsx migrate to pnpm, make backend restart on edits on dev, make types in front not need backend build Mar 13, 2026
@JeromeBu JeromeBu force-pushed the migrate-pnpm-shared-tsx branch from 9fb5495 to 18565dc Compare March 13, 2026 13:32
JeromeBu and others added 6 commits March 19, 2026 16:40
4-phase plan to migrate from yarn to pnpm, add tsx watch mode
for API development, and extract shared types into an internal
Turborepo package.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace yarn 1.22.22 with pnpm 10.9.0 across the entire monorepo:
scripts, CI, Dockerfiles, docker-compose, Helm charts, lefthook,
VS Code launch configs, and documentation.
Replace `pnpm build && pnpm start` with `tsx watch` for dev, and
simplify db:seed to run .ts directly. Production scripts unchanged.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Point api main/types to raw .ts source instead of compiled dist/.
Vite resolves .ts natively — no tsc build needed before web:dev.

- api/package.json: main/types → ./src/lib/index.ts
- web/tsconfig.json: target es5 → es2022 (tsc now sees api #private fields)
- Replace 4 deep api/dist/ imports with ApiTypes.* from "api"
- migration-plan.md: Phase 3 done

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Also fix remaining yarn→pnpm references in e2e start script,
and add @octokit/types as direct api devDependency (was only
resolved via hoisting, broke CI's stricter resolution).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JeromeBu JeromeBu force-pushed the migrate-pnpm-shared-tsx branch from ba5f8ff to bc3339a Compare March 19, 2026 15:40
@JeromeBu JeromeBu merged commit 02b1d8e into main Mar 19, 2026
8 checks passed
@JeromeBu JeromeBu deleted the migrate-pnpm-shared-tsx branch March 19, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant