Skip to content

Commit 9d0397f

Browse files
committed
Fix TypeScript config for ESM module resolution
Update moduleResolution to 'node16' and module to 'node16' to support @modelcontextprotocol/sdk ESM imports.
1 parent 07894b3 commit 9d0397f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "ES2020",
4-
"module": "commonjs",
4+
"module": "node16",
55
"lib": ["ES2020"],
66
"outDir": "./dist",
77
"rootDir": "./",
@@ -13,7 +13,7 @@
1313
"declaration": true,
1414
"declarationMap": true,
1515
"sourceMap": true,
16-
"moduleResolution": "node",
16+
"moduleResolution": "node16",
1717
"types": ["node"]
1818
},
1919
"include": [

0 commit comments

Comments
 (0)