Commit c9e43b9
Laurent Guitton
fix(mcp): exclude tests from the tsc build — unblock release publish
publish.yml builds @gitwand/mcp with `tsc` before publishing; tsc compiled
src/__tests__/preview.test.ts, which imports vitest — not a dependency of the
package (it was symlinked locally as a workaround). Under CI's frozen lockfile
the import is unresolvable, so the build (and thus the whole publish job) failed
with TS2307.
- tsconfig: exclude src/__tests__ + *.test.ts from the build (tests should never
be compiled into dist/ anyway).
- package.json: drop the `test: vitest run` script — it relied on the same
unavailable vitest under `pnpm -r run test`, breaking ci.yml too.
The preview tests + vitest.config.ts stay in the repo for local runs. Follow-up:
add vitest to packages/mcp devDependencies + refresh pnpm-lock.yaml on a
pnpm-capable host, then re-enable the test script so CI runs them again.1 parent 8d83f9d commit c9e43b9
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
0 commit comments