Skip to content

Commit 10f1a54

Browse files
committed
chore: Configure TypeScript for ESM with ts-node
Introduces `tsconfig.json` to enable native ECMAScript Modules (ESM) support when running TypeScript files directly via `ts-node`. This configuration facilitates modern import/export syntax for development. Also sets up strong compiler options including `ESNext` module resolution, `ES2020` target, `strict` mode, and `esModuleInterop` for enhanced type safety and compatibility.
1 parent bfb7f0f commit 10f1a54

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

tsconfig.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"display": "ESM Configuration for ts-node",
4+
"ts-node": {
5+
"esm": true,
6+
"experimentalSpecifierResolution": "node"
7+
},
8+
"compilerOptions": {
9+
"module": "ESNext",
10+
"moduleResolution": "node",
11+
"target": "ES2020",
12+
"esModuleInterop": true,
13+
"strict": true,
14+
"skipLibCheck": true
15+
}
16+
}

0 commit comments

Comments
 (0)