editor/code: Set ts' --moduleResolution=node16 option

https://www.typescriptlang.org/tsconfig#moduleResolution

By this change, typescript compiler can read `exports` field in
package.json for dependencies.
https://nodejs.org/api/packages.html#exports-sugar
This commit is contained in:
Tetsuharu Ohzeki 2023-06-28 04:15:01 +09:00
parent 45d4ebcf19
commit bb35d8fa8e

View file

@ -3,6 +3,7 @@
"compilerOptions": {
"esModuleInterop": false,
"module": "commonjs",
"moduleResolution": "node16",
"target": "es2021",
"outDir": "out",
"lib": ["es2021"],