Commit 0f4ef1d
committed
Migrate to nodenext module resolution for TS 6
TS 6 deprecates moduleResolution: "node". Switch to "nodenext"
which matches the runtime: this is an ESM Node.js app
("type": "module" with .js extensions on every import).
Side-effects of stricter ESM-aware resolution:
- ajv/dist/jtd default-import no longer works against the CJS
module shape; switch to the named {Ajv} export.
- yaml.load returns unknown, which now propagates through
loadSwarmAppConfig; pin its return type to SwarmAppConfig
(the Ajv validate guard already narrows it on success).
- isolatedModules required for ts-jest under nodenext.1 parent d6c0236 commit 0f4ef1d
3 files changed
Lines changed: 48 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
0 commit comments