Skip to content

Commit 7b75df7

Browse files
committed
fix: switch from tsc to tsup and fix dxt issues
1 parent 07c7a47 commit 7b75df7

File tree

10 files changed

+993
-140
lines changed

10 files changed

+993
-140
lines changed

.dxtignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.github/
2+
3+
.npmignore
4+
.releaserc.json
5+
tsup.config.ts
6+
biome.json
7+
8+
node_modules/
9+
scripts/
10+
src/
11+

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
"pageindex-mcp": "build/index.js"
99
},
1010
"scripts": {
11-
"build": "tsc",
12-
"dev": "tsc --watch",
11+
"build": "tsup",
12+
"dev": "tsup --watch",
1313
"start": "node build/index.js",
1414
"lint": "biome check .",
1515
"lint:fix": "biome check --write .",
1616
"format": "biome format --write .",
1717
"clean": "rm -rf build",
1818
"prepublishOnly": "npm run clean && npm run build",
19-
"dxt:build": "npm run clean && npm run build",
19+
"dxt:build": "tsup",
2020
"dxt:pack": "npm run dxt:build && dxt pack",
2121
"dxt:dev": "dxt dev",
2222
"postinstall": "test -d .git && simple-git-hooks || true",
@@ -32,9 +32,7 @@
3232
"license": "MIT",
3333
"dependencies": {
3434
"@modelcontextprotocol/sdk": "^1.17.3",
35-
"axios": "^1.7.7",
3635
"date-fns": "^4.1.0",
37-
"dotenv": "^16.4.5",
3836
"mime-types": "^2.1.35",
3937
"p-retry": "^7.0.0",
4038
"zod": "^3.23.8",
@@ -50,6 +48,7 @@
5048
"@types/node": "^22.10.5",
5149
"semantic-release": "^24.2.7",
5250
"simple-git-hooks": "^2.13.1",
51+
"tsup": "^8.5.0",
5352
"typescript": "^5.7.3"
5453
},
5554
"engines": {

0 commit comments

Comments
 (0)