fix(client): declare browser-only externals as devDependencies

react, react-dom, shiki, katex, clsx, the micromark and mdast families and nine
more reach only browser artifacts, which resolve nothing on a user's machine.
Moving 79 declarations out of dependencies and non-optional peerDependencies
drops 103 tarballs and 6.05 MB from an install of the published CLI.
This commit is contained in:
imccyu
2026-08-14 20:18:39 +08:00
parent 6e77499326
commit 93a95e838d
39 changed files with 214 additions and 263 deletions

View File

@@ -26,7 +26,11 @@
"./package.json": "./package.json"
},
"license": "MIT",
"dependencies": {
"devDependencies": {
"@deepseek-ai/dsh-invariants": "workspace:^",
"@types/react": "~18.3.1",
"@types/react-dom": "~18.3.0",
"@deepseek-ai/cordis": "workspace:^",
"@shikijs/langs": "^4.3.1",
"@types/mdast": "^4.0.4",
"anser": "^2.3.5",
@@ -48,12 +52,6 @@
"react-dom": "^18.2.0",
"shiki": "^4.3.1"
},
"devDependencies": {
"@deepseek-ai/dsh-invariants": "workspace:^",
"@types/react": "~18.3.1",
"@types/react-dom": "~18.3.0",
"@deepseek-ai/cordis": "workspace:^"
},
"files": [
"lib/index.js",
"lib/invariant.js",