Skip to content

Commit a2931cc

Browse files
committed
Simplify mcp-lambda build
1 parent bc12122 commit a2931cc

File tree

5 files changed

+26
-44
lines changed

5 files changed

+26
-44
lines changed

src/typescript/package-lock.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/typescript/package.json

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,23 @@
44
"version": "0.0.1",
55
"type": "module",
66
"scripts": {
7-
"build": "npm run build:esm && npm run build:cjs",
8-
"build:esm": "tsc -p tsconfig.prod.json && echo '{\"type\": \"module\"}' > dist/esm/package.json",
9-
"build:cjs": "tsc -p tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
10-
"prepack": "npm run build:esm && npm run build:cjs",
7+
"build": "tsc",
8+
"clean": "rm -rf dist/",
119
"lint": "eslint src/",
1210
"test": "jest",
1311
"test-server": "tsx test-stdio-server/echo_server.ts"
1412
},
1513
"engines": {
1614
"node": ">=18"
1715
},
18-
"exports": {
19-
"./*": {
20-
"import": "./dist/esm/*",
21-
"require": "./dist/cjs/*"
22-
}
23-
},
24-
"typesVersions": {
25-
"*": {
26-
"*": [
27-
"./dist/esm/*"
28-
]
29-
}
30-
},
16+
"main": "dist/index.js",
17+
"types": "dist/index.d.ts",
3118
"files": [
3219
"dist"
3320
],
3421
"devDependencies": {
3522
"@eslint/js": "^9.8.0",
23+
"@tsconfig/recommended": "^1.0.2",
3624
"@types/jest": "^29.5.12",
3725
"@types/node": "^22.13.5",
3826
"eslint": "^9.8.0",

src/typescript/tsconfig.cjs.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/typescript/tsconfig.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
{
2+
"extends": "@tsconfig/recommended",
23
"compilerOptions": {
3-
"target": "es2018",
4-
"module": "Node16",
5-
"moduleResolution": "Node16",
6-
"declaration": true,
7-
"declarationMap": true,
8-
"sourceMap": true,
94
"outDir": "./dist",
10-
"strict": true,
5+
"rootDir": "./src",
6+
"target": "es2022",
7+
"lib": ["es2022", "dom"],
8+
"module": "node16",
9+
"moduleResolution": "node16",
1110
"esModuleInterop": true,
12-
"forceConsistentCasingInFileNames": true,
13-
"resolveJsonModule": true,
14-
"isolatedModules": true,
15-
"skipLibCheck": true
11+
"declaration": true,
12+
"noImplicitReturns": true,
13+
"noFallthroughCasesInSwitch": true,
14+
"noUnusedLocals": true,
15+
"noUnusedParameters": true,
16+
"strictPropertyInitialization": false,
17+
"strict": true
1618
},
1719
"include": ["src/**/*"],
1820
"exclude": ["node_modules", "dist"]

src/typescript/tsconfig.prod.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)