Skip to content

Move sqlite3 to devDependencies - #133

Merged
buzz-code merged 1 commit into
mainfrom
fix/sqlite3-prod-docker-build
Aug 12, 2026
Merged

buzz-code merged 1 commit into
mainfrom
fix/sqlite3-prod-docker-build

Conversation

@buzz-code

Copy link
Copy Markdown
Owner

sqlite3 is only used in server/src/__tests__ (in-memory test DB), never at runtime. Listed under dependencies it forced the production Docker stage (yarn install --production) to compile its native binding via node-gyp, which fails there:

gyp ERR! command "/usr/local/bin/node" ".../node-gyp" "rebuild"
gyp ERR! cwd /app2/node_modules/sqlite3

Moving it to devDependencies makes --production skip it entirely.


🤖 Generated with Claude Code


Generated by Claude Code

sqlite3 is only used in server/src/__tests__ (in-memory test DB), never
at runtime. Listed under dependencies it forced the production Docker
stage (yarn install --production) to compile its native binding via
node-gyp, which fails there. Moving it to devDependencies makes
--production skip it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017jjJVx8ymZqxJjPtHHc6hS
Copilot AI lite review requested due to automatic review settings August 12, 2026 17:47
@buzz-code
buzz-code merged commit ca5f953 into main Aug 12, 2026
4 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Move sqlite3 from runtime dependencies to devDependencies in server package, so production install (yarn install --production) skips native node-gyp build. Fits server build/deploy pipeline, keeps SQLite driver only for Jest/E2E in-memory DB.

Changes:

  • Remove sqlite3 from dependencies.
  • Add sqlite3 to devDependencies for test-only TypeORM SQLite usage.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

3 participants