Skip to content

Commit 69a0626

Browse files
remove references to npm, clean up package manager usage in workspaces (#1534)
Co-authored-by: Matt <77928207+mattzcarey@users.noreply.github.com>
1 parent 9a8f37b commit 69a0626

File tree

16 files changed

+49
-5023
lines changed

16 files changed

+49
-5023
lines changed

.changeset/quick-islands-occur.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@modelcontextprotocol/express': patch
3+
'@modelcontextprotocol/hono': patch
4+
'@modelcontextprotocol/node': patch
5+
'@modelcontextprotocol/client': patch
6+
'@modelcontextprotocol/server': patch
7+
'@modelcontextprotocol/core': patch
8+
---
9+
10+
remove npm references, use pnpm

.changeset/rich-hounds-report.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@modelcontextprotocol/express': patch
3+
'@modelcontextprotocol/hono': patch
4+
'@modelcontextprotocol/node': patch
5+
'@modelcontextprotocol/client': patch
6+
'@modelcontextprotocol/server': patch
7+
'@modelcontextprotocol/core': patch
8+
---
9+
10+
clean up package manager usage, all pnpm

.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

.gitignore

Lines changed: 0 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,11 @@ tmp/
44
# Logs
55
logs
66
*.log
7-
npm-debug.log*
8-
yarn-debug.log*
9-
yarn-error.log*
10-
lerna-debug.log*
117
.pnpm-debug.log*
128

139
# Diagnostic reports (https://nodejs.org/api/report.html)
1410
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
1511

16-
# Runtime data
17-
pids
18-
*.pid
19-
*.seed
20-
*.pid.lock
21-
22-
# Directory for instrumented libs generated by jscoverage/JSCover
23-
lib-cov
24-
25-
# Coverage directory used by tools like istanbul
26-
coverage
27-
*.lcov
28-
29-
# nyc test coverage
30-
.nyc_output
31-
32-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
33-
.grunt
34-
35-
# Bower dependency directory (https://bower.io/)
36-
bower_components
37-
3812
# node-waf configuration
3913
.lock-wscript
4014

@@ -43,94 +17,29 @@ build/Release
4317

4418
# Dependency directories
4519
node_modules/
46-
jspm_packages/
47-
48-
# Snowpack dependency directory (https://snowpack.dev/)
49-
web_modules/
5020

5121
# TypeScript cache
5222
*.tsbuildinfo
5323

54-
# Optional npm cache directory
55-
.npm
56-
5724
# Optional eslint cache
5825
.eslintcache
5926

60-
# Optional stylelint cache
61-
.stylelintcache
62-
63-
# Microbundle cache
64-
.rpt2_cache/
65-
.rts2_cache_cjs/
66-
.rts2_cache_es/
67-
.rts2_cache_umd/
68-
6927
# Optional REPL history
7028
.node_repl_history
7129

7230
# Output of 'npm pack'
7331
*.tgz
7432

75-
# Yarn Integrity file
76-
.yarn-integrity
77-
7833
# dotenv environment variable files
7934
.env
8035
.env.development.local
8136
.env.test.local
8237
.env.production.local
8338
.env.local
8439

85-
# parcel-bundler cache (https://parceljs.org/)
86-
.cache
87-
.parcel-cache
88-
89-
# Next.js build output
90-
.next
91-
out
92-
93-
# Nuxt.js build / generate output
94-
.nuxt
95-
96-
# Gatsby files
97-
.cache/
98-
# Comment in the public line in if your project uses Gatsby and not Next.js
99-
# https://nextjs.org/blog/next-9-1#public-directory-support
100-
# public
101-
102-
# vuepress build output
103-
.vuepress/dist
104-
105-
# vuepress v2.x temp and cache directory
106-
.temp
107-
.cache
108-
109-
# Docusaurus cache and generated files
110-
.docusaurus
111-
112-
# Serverless directories
113-
.serverless/
114-
115-
# FuseBox cache
116-
.fusebox/
117-
118-
# DynamoDB Local files
119-
.dynamodb/
120-
121-
# TernJS port file
122-
.tern-port
123-
12440
# Stores VSCode versions used for testing VSCode extensions
12541
.vscode-test
12642

127-
# yarn v2
128-
.yarn/cache
129-
.yarn/unplugged
130-
.yarn/build-state.yml
131-
.yarn/install-state.gz
132-
.pnp.*
133-
13443
.DS_Store
13544
dist/
13645

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
registry = "https://registry.npmjs.org/"
2-
manage-package-manager-versions=false

examples/client/package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@
1313
"url": "git+https://github.com/modelcontextprotocol/typescript-sdk.git"
1414
},
1515
"engines": {
16-
"node": ">=20",
17-
"pnpm": ">=10.24.0"
16+
"node": ">=20"
1817
},
19-
"packageManager": "pnpm@10.24.0",
2018
"keywords": [
2119
"modelcontextprotocol",
2220
"mcp"
@@ -25,11 +23,11 @@
2523
"typecheck": "tsgo -p tsconfig.json --noEmit",
2624
"build": "tsdown",
2725
"build:watch": "tsdown --watch",
28-
"prepack": "npm run build:esm && npm run build:cjs",
26+
"prepack": "pnpm run build:esm && pnpm run build:cjs",
2927
"lint": "eslint src/ && prettier --ignore-path ../../.prettierignore --check .",
3028
"lint:fix": "eslint src/ --fix && prettier --ignore-path ../../.prettierignore --write .",
31-
"check": "npm run typecheck && npm run lint",
32-
"start": "npm run server",
29+
"check": "pnpm run typecheck && pnpm run lint",
30+
"start": "pnpm run server",
3331
"server": "tsx watch --clear-screen=false scripts/cli.ts server",
3432
"client": "tsx scripts/cli.ts client"
3533
},

examples/server/package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@
1313
"url": "git+https://github.com/modelcontextprotocol/typescript-sdk.git"
1414
},
1515
"engines": {
16-
"node": ">=20",
17-
"pnpm": ">=10.24.0"
16+
"node": ">=20"
1817
},
19-
"packageManager": "pnpm@10.24.0",
2018
"keywords": [
2119
"modelcontextprotocol",
2220
"mcp"
@@ -25,11 +23,11 @@
2523
"typecheck": "tsgo -p tsconfig.json --noEmit",
2624
"build": "tsdown",
2725
"build:watch": "tsdown --watch",
28-
"prepack": "npm run build:esm && npm run build:cjs",
26+
"prepack": "pnpm run build:esm && pnpm run build:cjs",
2927
"lint": "eslint src/ && prettier --ignore-path ../../.prettierignore --check .",
3028
"lint:fix": "eslint src/ --fix && prettier --ignore-path ../../.prettierignore --write .",
31-
"check": "npm run typecheck && npm run lint",
32-
"start": "npm run server",
29+
"check": "pnpm run typecheck && pnpm run lint",
30+
"start": "pnpm run server",
3331
"server": "tsx watch --clear-screen=false scripts/cli.ts server",
3432
"client": "tsx scripts/cli.ts client"
3533
},

examples/shared/package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,21 @@
1313
"url": "git+https://github.com/modelcontextprotocol/typescript-sdk.git"
1414
},
1515
"engines": {
16-
"node": ">=20",
17-
"pnpm": ">=10.24.0"
16+
"node": ">=20"
1817
},
19-
"packageManager": "pnpm@10.24.0",
2018
"keywords": [
2119
"modelcontextprotocol",
2220
"mcp"
2321
],
2422
"scripts": {
2523
"typecheck": "tsgo -p tsconfig.json --noEmit",
26-
"prepack": "npm run build:esm && npm run build:cjs",
24+
"prepack": "pnpm run build:esm && pnpm run build:cjs",
2725
"lint": "eslint src/ && prettier --ignore-path ../../.prettierignore --check .",
2826
"lint:fix": "eslint src/ --fix && prettier --ignore-path ../../.prettierignore --write .",
29-
"check": "npm run typecheck && npm run lint",
27+
"check": "pnpm run typecheck && pnpm run lint",
3028
"test": "vitest run",
3129
"test:watch": "vitest",
32-
"start": "npm run server",
30+
"start": "pnpm run server",
3331
"server": "tsx watch --clear-screen=false scripts/cli.ts server",
3432
"client": "tsx scripts/cli.ts client"
3533
},

0 commit comments

Comments
 (0)