diff --git a/package-lock.json b/package-lock.json index 7b4f868..71b3ec9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,6 +31,9 @@ "typescript": "^5.5.4", "typescript-eslint": "^8.0.0", "ws": "^8.18.0" + }, + "engines": { + "node": ">=18" } }, "node_modules/@ampproject/remapping": { diff --git a/package.json b/package.json index 790b5e1..1a111e4 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,17 @@ "homepage": "https://modelcontextprotocol.io", "bugs": "https://github.com/modelcontextprotocol/typescript-sdk/issues", "type": "module", - "main": "./dist/index.js", - "types": "./dist/index.d.ts", + "repository": { + "type": "git", + "url": "git+https://github.com/modelcontextprotocol/typescript-sdk.git" + }, + "engines": { + "node": ">=18" + }, + "keywords": [ + "modelcontextprotocol", + "mcp" + ], "exports": { "./*": "./dist/*" }, @@ -23,8 +32,8 @@ "dist" ], "scripts": { - "build": "tsc", - "prepack": "tsc", + "build": "tsc -p tsconfig.prod.json", + "prepack": "tsc -p tsconfig.prod.json", "lint": "eslint src/", "test": "jest", "start": "npm run server", diff --git a/tsconfig.prod.json b/tsconfig.prod.json new file mode 100644 index 0000000..e7fd55c --- /dev/null +++ b/tsconfig.prod.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig.json", + "exclude": [ + "**/*.test.ts", + ] +}