-
Notifications
You must be signed in to change notification settings - Fork 954
Fix phantom dependencies #575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@bhosmer-ant PTAL, thanks! |
I tested this and can confirm this PR fixes #572. Thank you @johnny-y-wang |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for looking into this issues, have a question about the express upgrade
@@ -66,12 +66,14 @@ | |||
"@types/cross-spawn": "^6.0.6", | |||
"@types/eslint__js": "^8.42.3", | |||
"@types/eventsource": "^1.1.15", | |||
"@types/express": "^5.0.0", | |||
"@types/express": "^5.0.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need to update the version here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To align with express
versioning and make TypeScript happy. (Granted that express needs to be bumped too, but I haven't done that.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ihrpr see inline
@@ -66,12 +66,14 @@ | |||
"@types/cross-spawn": "^6.0.6", | |||
"@types/eslint__js": "^8.42.3", | |||
"@types/eventsource": "^1.1.15", | |||
"@types/express": "^5.0.0", | |||
"@types/express": "^5.0.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To align with express
versioning and make TypeScript happy. (Granted that express needs to be bumped too, but I haven't done that.)
Add phantom dependencies into
package.json
to enable pnpm (and other strict hoisting package manager) to build successfully. Fixes #572Motivation and Context
While this repo doesn't use pnpm or yarn, many of us import this into our monorepo and depend on strict dependency management. This enables
modelcontextprotocol/typescript-sdk
to be included without monkeypatching.How Has This Been Tested?
Run
pnpm install && pnpm build
Breaking Changes
None
Types of changes
Checklist
Additional context