Skip to content

Commit 79bac51

Browse files
authored
fix(build): remove esbuild and use tsc for the compilation (#74)
1 parent c53e6f1 commit 79bac51

File tree

3 files changed

+5
-31
lines changed

3 files changed

+5
-31
lines changed

esbuild.config.mjs

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

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
"test:e2e": "vitest --run tests/e2e",
2727
"test:unit:coverage": "vitest --run tests/unit --coverage.enabled --coverage.thresholds.100 --coverage.include='src/**'",
2828
"prebuild": "rimraf dist/*",
29-
"build": "node esbuild.config.mjs",
30-
"postbuild": "chmod +x dist/index.js",
29+
"build": "tsc --build",
3130
"lint": "biome lint .",
3231
"lint:fix": "biome check --write .",
3332
"dev": "npx @modelcontextprotocol/inspector node --experimental-transform-types src/index.ts",

tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
"strict": true,
1818
"skipLibCheck": true,
1919
"pretty": true, // Enable pretty formatting for output messages.
20-
"rewriteRelativeImportExtensions": true
20+
"rewriteRelativeImportExtensions": true,
21+
"outDir": "dist",
22+
"sourceMap": true,
23+
"rootDir": "src"
2124
},
2225
"include": [
2326
"src/**/*.ts"

0 commit comments

Comments
 (0)