LibreChat/packages/client/package.json
Marco Beretta 882cca247a
feat: cleanup unused types from common/index.ts
- Remove 104 unused type exports from packages/client/src/common/index.ts
- Keep only 7 actually used exports (93% reduction)
- Add cleanup script with enhanced import pattern detection
- Support both named imports and namespace imports (* as t)
- Create automatic backups and comprehensive documentation
- Maintain type safety with build verification
- No breaking changes to existing code

Kept exports:
- TShowToast, Option, OptionWithIcon, DropdownValueSetter
- MentionOption, NotificationSeverity, MenuItemProps

Scripts: cleanup-common-types-safe.js, README-CLEANUP.md
2025-07-26 01:13:50 +02:00

45 lines
1.1 KiB
JSON

{
"name": "@librechat/client",
"version": "0.1.0",
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"module": "./dist/index.js"
}
},
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "rollup -c rollup.config.mjs",
"dev": "rollup -c rollup.config.mjs -w",
"clean": "rm -rf dist"
},
"peerDependencies": {
"@radix-ui/react-separator": "^1.0.0",
"@radix-ui/react-slot": "^1.0.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.0.0",
"framer-motion": "^10.0.0",
"lucide-react": "^0.263.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"tailwind-merge": "^1.14.0"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.0.0",
"@rollup/plugin-typescript": "^11.0.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"rollup": "^4.0.0",
"ts-prune": "^0.10.3",
"typescript": "^5.0.0"
},
"dependencies": {
"@ariakit/react": "^0.4.17",
"@headlessui/react": "^2.2.4",
"react-resizable-panels": "^3.0.3"
}
}