Update tsconfig.json to use NodeNext module system (fixes CJS/ESM conflict), enable ts-node ESM mode, and add .js extensions to relative imports so the built output and ts-node dev script both work correctly with "type":"module".
19 lines
391 B
JSON
19 lines
391 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "NodeNext",
|
|
"moduleResolution": "NodeNext",
|
|
"lib": ["ES2022"],
|
|
"outDir": "dist",
|
|
"rootDir": "src",
|
|
"strict": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"resolveJsonModule": true
|
|
},
|
|
"ts-node": {
|
|
"esm": true
|
|
},
|
|
"include": ["src/**/*"],
|
|
"exclude": ["node_modules", "dist"]
|
|
}
|