Skip to content

Commit e5f0315

Browse files
authored
[mcp] Fix package.json (#33101)
Since we use esbuild we need to correctly move dependencies that are required at runtime into `dependencies` and other packages that are only used in development in to `devDependencies`. This ensures the correct packages are included in the build. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/33101). * #33085 * #33084 * #33083 * #33082 * __->__ #33101
1 parent f739642 commit e5f0315

File tree

2 files changed

+270
-88
lines changed

2 files changed

+270
-88
lines changed

compiler/packages/react-mcp-server/package.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,22 @@
1515
"dependencies": {
1616
"@babel/core": "^7.26.0",
1717
"@babel/parser": "^7.26",
18-
"@babel/plugin-syntax-typescript": "^7.25.9",
18+
"@babel/preset-env": "^7.26.9",
19+
"@babel/preset-react": "^7.18.6",
20+
"@babel/preset-typescript": "^7.27.1",
1921
"@modelcontextprotocol/sdk": "^1.9.0",
20-
"@types/jest": "^29.5.14",
2122
"algoliasearch": "^5.23.3",
2223
"cheerio": "^1.0.0",
2324
"html-to-text": "^9.0.5",
24-
"jest": "^29.7.0",
2525
"prettier": "^3.3.3",
2626
"puppeteer": "^24.7.2",
27-
"ts-jest": "^29.3.2",
2827
"zod": "^3.23.8"
2928
},
3029
"devDependencies": {
31-
"@babel/plugin-proposal-class-properties": "^7.18.6",
32-
"@babel/plugin-transform-runtime": "^7.26.10",
33-
"@babel/preset-env": "^7.26.9",
34-
"@babel/preset-react": "^7.26.3",
35-
"@babel/preset-typescript": "^7.27.0",
36-
"@types/html-to-text": "^9.0.4"
30+
"@types/html-to-text": "^9.0.4",
31+
"@types/jest": "^29.5.14",
32+
"jest": "^29.7.0",
33+
"ts-jest": "^29.3.2"
3734
},
3835
"license": "MIT",
3936
"repository": {

0 commit comments

Comments
 (0)