Commit Graph

3 Commits

Author SHA1 Message Date
saltbo a08ebcaef8 refactor(config): consolidate tsconfig path aliases and remove redundancy
- Move declaration/declarationMap: false to root (was duplicated in both
  child configs)
- Remove duplicate baseUrl/paths from tsconfig.web.json (now inherited
  from root)
- tsconfig.web.json and tsconfig.server.json now only declare their own
  unique options (jsx and types respectively)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-20 16:30:16 -04:00
saltbo 630e8c9fc4 fix(config): add path aliases to root tsconfig.json for shadcn CLI
shadcn reads the root tsconfig.json to resolve the `@/` alias.
Without paths defined there, it fell back to treating `@/` as a
literal directory name, creating files under a stray `@/` folder
instead of `src/`.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-20 16:28:35 -04:00
saltbo 310e4950b3 refactor: flatten monorepo to single-package CF Pages Functions structure
Replace pnpm workspace monorepo (packages/server, packages/web, packages/shared)
with a flat single-package layout following Hono's pages-stack pattern. Switch from
pnpm to npm and from Workers+Assets to CF Pages Functions deployment model.

- Move source: packages/server/src/ → server/, packages/web/src/ → src/, packages/shared/src/ → shared/
- Add functions/api/[[route]].ts as CF Pages Functions entry (replaces entry-cloudflare.ts)
- Update 22 import paths: server uses relative, web uses @shared/@server aliases
- Merge three package.json into one, switch to npm
- Update wrangler.toml: remove main/assets (Pages auto-detects functions/ dir)
- Add per-directory tsconfig.json for VS Code type resolution
- Simplify Dockerfile for flat layout
- Fix react-pdf CSS import path (dist/esm/ → dist/)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 00:27:38 -04:00