Commit 2e028b9
* chore: fix existing vitest type tests
These weren't asserting anything, and vitest type tests weren't enabled.
* build: add missing `skipLibCheck`
This is a tough one to explain. This was a latent issue due to a confluence of things:
- we don't explicitly do type checking in this repo
- instead we rely implicitly on the fact that we use tsup in part to build `.dts` files, which
performs type checking
- but tsup type checking behaves slightly differently than just running `tsc` in various little
ways, largely because it's scoped per entrypoint
- we weren't setting `skipLibCheck: true` in the `tsconfig.json`, which seemed reasonable as there
were no errors inside `node_modules/`
- now when I went to set up vitest type tests, this started type checking some stuff under the hood,
and this failed with type errors inside `node_modules/`, despite it using our `tsconfig.json`
- it turns out this is because the tsup type checking approach was not encountering these errors;
you can confirm this by running `npx --package=typescript tsc --noEmit` in `packages/functions/`
So, TL;DR: we had a latent necessity for `skipLibCheck` obscured by our weird implicit type checking via `tsup --dts`.
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: serhalp <[email protected]>
Co-authored-by: Philippe Serhal <[email protected]>
1 parent 793b853 commit 2e028b9
File tree
7 files changed
+38
-3
lines changed- packages
- functions
- src
- types
- src
7 files changed
+38
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
1 | 7 | | |
2 | 8 | | |
3 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments