重构为Monorepo:拆分xhs/xhh应用与core包并完成双服务部署改造
This commit is contained in:
+13
-42
@@ -1,50 +1,21 @@
|
||||
{
|
||||
"name": "social-mcp",
|
||||
"name": "social-auto-hub",
|
||||
"version": "0.1.0",
|
||||
"description": "Multi-platform social media automation MCP service",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"bin": {
|
||||
"social-mcp": "dist/index.js"
|
||||
},
|
||||
"private": true,
|
||||
"description": "Monorepo for XHS/XHH MCP services",
|
||||
"scripts": {
|
||||
"build": "tsup",
|
||||
"build:web": "cd web && pnpm build && mkdir -p ../dist/web && cp -r dist/* ../dist/web/",
|
||||
"build:all": "pnpm build && pnpm build:web",
|
||||
"restart": "pnpm build:all && pkill -f 'node dist/index.js' ; sleep 1 && node dist/index.js &",
|
||||
"dev": "tsup --watch",
|
||||
"dev:web": "cd web && pnpm dev",
|
||||
"start": "node dist/index.js",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
"lint": "tsc --noEmit"
|
||||
"build": "pnpm -r --filter \"./packages/*\" --filter \"./apps/*\" run build",
|
||||
"lint": "pnpm -r --filter \"./packages/*\" --filter \"./apps/*\" run lint",
|
||||
"test": "pnpm -r --filter \"./packages/*\" --filter \"./apps/*\" run test",
|
||||
"start": "pnpm start:xhs",
|
||||
"start:xhs": "pnpm --filter @social/xhs-mcp start",
|
||||
"start:xhh": "pnpm --filter @social/xhh-mcp start",
|
||||
"dev:xhs": "pnpm --filter @social/xhs-mcp dev",
|
||||
"dev:xhh": "pnpm --filter @social/xhh-mcp dev",
|
||||
"restart:xhs": "pnpm --filter @social/xhs-mcp build && (lsof -ti tcp:9527 | xargs kill >/dev/null 2>&1 || true) && pnpm --filter @social/xhs-mcp start",
|
||||
"restart:xhh": "pnpm --filter @social/xhh-mcp build && (lsof -ti tcp:9528 | xargs kill >/dev/null 2>&1 || true) && pnpm --filter @social/xhh-mcp start"
|
||||
},
|
||||
"keywords": [
|
||||
"mcp",
|
||||
"social-media",
|
||||
"automation",
|
||||
"playwright",
|
||||
"xiaohongshu"
|
||||
],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"engines": {
|
||||
"node": ">=22.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@modelcontextprotocol/sdk": "^1.27.0",
|
||||
"express": "^4.21.0",
|
||||
"pino": "^9.0.0",
|
||||
"rebrowser-playwright": "^1.52.0",
|
||||
"zod": "^3.25.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/express": "^5.0.0",
|
||||
"@types/node": "^22.0.0",
|
||||
"pino-pretty": "^13.0.0",
|
||||
"playwright": "^1.52.0",
|
||||
"tsup": "^8.0.0",
|
||||
"typescript": "^5.7.0",
|
||||
"vitest": "^3.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user