Commit 255bae0
committed
fix(mcp): unbreak the MCP server deploy by excluding tests from the prod build
The last three pushes to master failed `deploy-mcp.yml` at the Docker build:
src/branding.test.ts(1,38): error TS2307: Cannot find module 'vitest'
src/tools/flashcards.test.ts(104,91): error TS7006: Parameter 'rating'
implicitly has an 'any' type.
`mcp-server` declares a vitest config but not the dependency — locally the
import resolves upward into the repo root's node_modules. The image copies
only `mcp-server/`, so there is no root to walk up to and the type check
fails. Test files also have no business in `dist`, so exclude them from the
build rather than shipping vitest into the production image.
Verified with a local `docker build` of mcp-server/Dockerfile: type check
passes, 18 widgets built. `npx vitest run` in mcp-server still passes 66/66.1 parent c280432 commit 255bae0
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
0 commit comments