Skip to content

Commit 168bd72

Browse files
committed
fix: Add missing esModuleInterop flag
1 parent 3f21a1a commit 168bd72

File tree

9 files changed

+8
-31
lines changed

9 files changed

+8
-31
lines changed

examples/servers/cat-facts/package-lock.json

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/servers/cat-facts/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"inlineSources": true,
2121
"experimentalDecorators": true,
2222
"strictPropertyInitialization": false,
23+
"esModuleInterop": true,
2324
"typeRoots": [
2425
"./node_modules/@types"
2526
]

examples/servers/dictionary/package-lock.json

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/servers/dictionary/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"inlineSources": true,
2121
"experimentalDecorators": true,
2222
"strictPropertyInitialization": false,
23+
"esModuleInterop": true,
2324
"typeRoots": [
2425
"./node_modules/@types"
2526
]

examples/servers/dog-facts/package-lock.json

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/servers/dog-facts/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"inlineSources": true,
2121
"experimentalDecorators": true,
2222
"strictPropertyInitialization": false,
23+
"esModuleInterop": true,
2324
"typeRoots": [
2425
"./node_modules/@types"
2526
]

examples/servers/weather-alerts/README.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,3 @@ cdk deploy --app 'node lib/weather-alerts-mcp-server.js'
2222
```
2323

2424
See the [development guide](/DEVELOP.md) for full instructions to deploy and run the examples in this repository.
25-
26-
### Testing
27-
28-
Sample inputs:
29-
30-
```bash
31-
$ npm run build
32-
$ export LOG_LEVEL=debug
33-
34-
# Initialize
35-
$ node -e 'require("./lib/weather-alerts-mcp-server.function.js").handler({"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{"roots":{"listChanged":true}},"clientInfo":{"name":"mcp","version":"0.1.0"}},"jsonrpc":"2.0","id":0}, "")'
36-
37-
# List tools
38-
$ node -e 'require("./lib/weather-alerts-mcp-server.function.js").handler({"method":"tools/list","params":{"clientInfo":{"name":"mcp","version":"0.1.0"}},"jsonrpc":"2.0","id":0}, "")'
39-
```

examples/servers/weather-alerts/package-lock.json

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/servers/weather-alerts/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"inlineSources": true,
2121
"experimentalDecorators": true,
2222
"strictPropertyInitialization": false,
23+
"esModuleInterop": true,
2324
"typeRoots": [
2425
"./node_modules/@types"
2526
]

0 commit comments

Comments
 (0)