diff --git a/template/package.json.ejs b/template/package.json.ejs index 9f8e2fe..90db125 100644 --- a/template/package.json.ejs +++ b/template/package.json.ejs @@ -3,16 +3,23 @@ "version": "0.1.0", "description": "<%= description %>", "type": "module", + "bin": { + "<%= name %>": "./build/index.js" + }, + "files": [ + "build" + ], "scripts": { - "build": "tsc", - "dev": "tsc --watch", - "start": "node build/index.js" + "build": "tsc && shx chmod +x build/index.js", + "prepare": "npm run build", + "watch": "tsc --watch" }, "dependencies": { "@modelcontextprotocol/sdk": "0.6.0" }, "devDependencies": { "@types/node": "^20.11.24", + "shx": "^0.3.4", "typescript": "^5.3.3" } }