Commit fb4e567
fix: use createRequire instead of import attributes for JSON import
Avoids Node version compatibility issues with `with { type: "json" }`
(Node 22+) vs `assert { type: "json" }` (deprecated, errors on Node 22+).
Uses the same createRequire pattern already established in const.ts and
server.ts.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent d5eb561 commit fb4e567
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | | - | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
0 commit comments