chore: project config and tooling

LU
6mo ago
+24-14

Summary

Fixes TypeScript config, dependencies, and development tooling.

Changes

  • package.json: move @types/bcrypt and @types/bun to devDependencies; add tsx and rimraf; add dev, dev:server, prebuild, build:only and type-check scripts
  • tsconfig.json: add "types": ["bun"] to resolve Bun type definitions
  • Express types: annotate app and router explicitly to resolve TS2742 across server routes
  • .env.example: add NODE_ENV variable documentation

Summary by cubic

Streamlines TypeScript setup and dev tooling for smoother local development. Fixes Express type errors, adds Bun typings, and adds dev/watch/type-check scripts.

  • Dependencies

    • Move @types/bcrypt and @types/bun to devDependencies.
    • Add tsx and rimraf.
  • Bug Fixes

    • Resolve TS2742 by explicitly typing Express app/router and enabling Bun types in tsconfig.
    • Safer parsing of Content-Length in remote upload.
    • Add NODE_ENV=development to .env.example.