Commit 5f67aea
authored
[tsgen] Use node16 resolution for tsgen CommonJS test (#26896)
Update the CommonJS test case in `test_embind_tsgen_end_to_end` to use
`node16` for `--module` and `--moduleResolution`.
This fixes the TS5107 compiler error caused by the deprecation of the
legacy `node10` resolution strategy in modern versions of TypeScript.
Because there is no `type: "module"` specified in the package.json of
the test environment, `node16` resolution continues to treat and
generate files as CommonJS, preserving the intent of the test.1 parent 48a0bbd commit 5f67aea
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3556 | 3556 | | |
3557 | 3557 | | |
3558 | 3558 | | |
3559 | | - | |
| 3559 | + | |
| 3560 | + | |
| 3561 | + | |
3560 | 3562 | | |
3561 | 3563 | | |
3562 | 3564 | | |
| |||
0 commit comments