Commit 65ee645
Make the vitest 4 upgrade pass CI
The bare `vitest` bump fails `yarn install` with "could not find a copy
of vite to link in node_modules/vitest/node_modules". vitest 4 now lists
`vite` as a direct dependency (^6 || ^7 || ^8), so yarn 1 resolves a
second vite major alongside the repo's hoisted vite ^6.0.1 and chokes on
the nested link. Pin `vite` to ^6.0.1 in `resolutions` so the whole tree
shares a single vite 6.x (in range for vitest, and what the build used).
Also:
- Bump `@vitest/coverage-v8` and `@vitest/ui` to ^4.1.0 to match the
vitest 4 runtime (Dependabot only bumped `vitest` itself).
- Add "node" to the core package's tsconfig `types`. vitest 4's
`vitest/globals` no longer transitively pulls in @types/node, which
broke type-checking of test files (`import assert from 'assert'`).
The datetime and mcp-server tsconfigs already list "node".
yarn install --frozen-lockfile, lint, build, type-check, the full test
suite, and coverage all pass locally.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent e23b645 commit 65ee645
6 files changed
Lines changed: 68 additions & 366 deletions
File tree
- packages
- expreszo-datetime
- expreszo-mcp-server
- expreszo
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
| 123 | + | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments