diff --git a/package.json b/package.json index 189c59a..e07ad53 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@hula-spark/hula-mcp-server", + "name": "@hula-spark/hula-mcp", "version": "1.0.0", "description": "HuLa 即时通讯应用的 MCP 服务", "type": "module", @@ -10,7 +10,7 @@ "node": ">=18.0.0" }, "bin": { - "hula-mcp": "dist/cli.js" + "hula-mcp": "bin/hula-mcp.js" }, "files": [ "dist", @@ -22,7 +22,8 @@ "start": "node dist/index.js", "dev": "tsx watch src/index.ts", "test": "jest", - "prepublishOnly": "npm run build" + "prepublishOnly": "npm run build", + "prepare": "npm run build" }, "keywords": [ "mcp", diff --git a/tsconfig.json b/tsconfig.json index b329fb7..cf5057d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,7 @@ "moduleResolution": "NodeNext", "esModuleInterop": true, "strict": true, - "outDir": "dist", + "outDir": "./dist", "sourceMap": true, "declaration": true, "resolveJsonModule": true,