Skip to content

Commit 1782178

Browse files
committed
feat add builder
- 增加 打包
1 parent f38a6fb commit 1782178

File tree

6 files changed

+4269
-190
lines changed

6 files changed

+4269
-190
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,5 @@ dist
130130
.pnp.*
131131

132132
anthropic-vertex-credentials.json
133+
134+
/output

package.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,39 @@
44
"description": "",
55
"main": "./src/server.ts",
66
"scripts": {
7-
"start": "tsx ./src/server.ts"
7+
"start": "tsx ./src/server.ts",
8+
"build": "rollup -c rollup.config.mjs",
9+
"build:win": "nexe ./output/server.js -o ./output/server.exe -t windows-x64-14.15.3",
10+
"build:linux": "nexe ./output/server.js -o ./output/server.linux -t linux-x64-14.15.3",
11+
"build:mac": "nexe ./output/server.js -o ./output/server.mac -t mac-x64-14.15.3"
812
},
913
"keywords": [],
1014
"author": "zhzluke96",
1115
"license": "AGPL-3.0-only",
1216
"dependencies": {
1317
"@anthropic-ai/vertex-sdk": "^0.4.0",
14-
"@types/node": "^20.14.9",
1518
"dotenv": "^16.4.5",
1619
"fastify": "^4.28.1",
1720
"fastify-sse-v2": "^4.0.0",
1821
"http-proxy-agent": "^7.0.2",
1922
"https-proxy-agent": "^7.0.5",
23+
"node-fetch": "^3.3.2"
24+
},
25+
"devDependencies": {
26+
"@babel/preset-env": "^7.24.7",
27+
"@rollup/plugin-commonjs": "^26.0.1",
28+
"@rollup/plugin-json": "^6.1.0",
29+
"@rollup/plugin-node-resolve": "^15.2.3",
30+
"@rollup/plugin-replace": "^5.0.7",
31+
"@rollup/plugin-typescript": "^11.1.6",
32+
"@types/node": "^20.14.9",
33+
"esbuild": "^0.23.0",
34+
"magic-string": "^0.30.10",
35+
"nexe": "4.0.0-rc.6",
36+
"rollup": "^4.18.0",
37+
"rollup-plugin-babel": "^4.4.0",
38+
"rollup-plugin-esbuild": "^6.1.1",
39+
"rollup-plugin-typescript2": "^0.36.0",
2040
"tslib": "^2.6.3",
2141
"tsx": "^4.16.2",
2242
"typescript": "^5.5.3"

0 commit comments

Comments
 (0)