perf(deps): move pi-coding-agent to optional peerDependencies

Reduces node_modules from 312MB to 154MB. The import is type-only
(import type { ExtensionAPI }) so the 163MB package was installed
but never executed at runtime. End users get the lean install;
contributors still get it via devDependencies during development.
This commit is contained in:
Fei Yan
2026-05-28 21:49:11 +08:00
parent 96c452eefd
commit 52ed72aa37
+8 -1
View File
@@ -47,7 +47,6 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"@earendil-works/pi-coding-agent": "0.75.5",
"@types/node": "25.6.0", "@types/node": "25.6.0",
"prettier": "^3.5.0", "prettier": "^3.5.0",
"tsx": "4.21.0", "tsx": "4.21.0",
@@ -55,5 +54,13 @@
}, },
"dependencies": { "dependencies": {
"@earendil-works/pi-ai": "0.75.5" "@earendil-works/pi-ai": "0.75.5"
},
"peerDependencies": {
"@earendil-works/pi-coding-agent": "^0.75.5"
},
"peerDependenciesMeta": {
"@earendil-works/pi-coding-agent": {
"optional": true
}
} }
} }