Skip to content

Commit

Permalink
feat: clean files and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
2214962083 committed Sep 27, 2024
1 parent 18cfcff commit 609007b
Show file tree
Hide file tree
Showing 10 changed files with 117 additions and 264 deletions.
12 changes: 10 additions & 2 deletions knip.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@ import type { KnipConfig } from 'knip'
const defineConfig = (config: KnipConfig) => config

export default defineConfig({
entry: ['src/index.tsx', '*.config.cjs', '*.config.mts'],
entry: [
'src/webview/main.tsx',
'src/webview/App.tsx',
'src/webview/pages/**/*.tsx',
'src/extension/index.ts',
'scripts/**/*.ts',
'*.config.cjs',
'*.config.mts'
],
project: ['src/**/*.{ts,tsx}', 'scripts/*.ts'],
ignore: ['**/define/**/*.ts', '**/*.d.ts'],
ignore: ['**/define/**/*.ts', '**/*.d.ts', 'website/**/*'],
ignoreDependencies: ['virtual:*', '~icons/']
})
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@
"@langchain/core": "0.3.3",
"@langchain/langgraph": "^0.2.9",
"@langchain/openai": "^0.3.2",
"@lexical/code": "^0.18.0",
"@langchain/textsplitters": "^0.1.0",
"@lexical/react": "^0.18.0",
"@radix-ui/react-accordion": "^1.2.0",
"@radix-ui/react-alert-dialog": "^1.1.1",
Expand All @@ -386,7 +386,6 @@
"@radix-ui/react-visually-hidden": "^1.1.0",
"@tanstack/react-query": "^5.56.2",
"@tomjs/vite-plugin-vscode": "^2.6.0",
"@types/diff": "^5.2.1",
"@types/fs-extra": "^11.0.4",
"@types/global-agent": "^2.1.3",
"@types/node": "^22.5.1",
Expand All @@ -412,8 +411,6 @@
"comment-json": "^4.2.5",
"commitizen": "^4.3.1",
"cpy": "10.1.0",
"diff": "^7.0.0",
"dotenv": "^16.4.5",
"es-toolkit": "^1.21.0",
"eslint": "^8.57.0",
"eslint-config-airbnb": "^19.0.4",
Expand All @@ -431,11 +428,11 @@
"execa": "^9.4.0",
"find-free-ports": "^3.1.1",
"flexsearch": "^0.7.43",
"form-data": "^4.0.0",
"framer-motion": "^11.8.0",
"fs-extra": "^11.2.0",
"glob": "^11.0.0",
"global-agent": "^3.0.0",
"html-react-parser": "^5.1.16",
"husky": "^9.1.6",
"ignore": "^6.0.2",
"immer": "^10.1.1",
Expand All @@ -448,7 +445,6 @@
"mermaid": "^11.2.1",
"minimatch": "^10.0.1",
"next-themes": "^0.3.0",
"node-fetch": "^3.3.2",
"p-limit": "^6.1.0",
"pnpm": "^9.11.0",
"postcss": "^8.4.47",
Expand All @@ -469,6 +465,7 @@
"remark-math": "^6.0.0",
"rimraf": "^6.0.1",
"shell-quote": "^1.8.1",
"shiki": "^1.20.0",
"simple-git": "^3.27.0",
"socket.io": "^4.8.0",
"socket.io-client": "^4.8.0",
Expand All @@ -483,11 +480,11 @@
"unified": "^11.0.5",
"use-immer": "^0.10.0",
"use-resize-observer": "^9.1.0",
"uuid": "^10.0.0",
"vaul": "^1.0.0",
"vectordb": "^0.10.0",
"vite": "^5.4.8",
"vite-plugin-pages": "^0.32.3",
"vite-plugin-static-copy": "^1.0.6",
"vite-plugin-svgr": "^4.2.0",
"vite-tsconfig-paths": "^5.0.1",
"vitest": "^2.1.1",
Expand All @@ -498,7 +495,8 @@
"pnpm": {
"overrides": {
"@langchain/core": "0.3.3",
"lexical": "^0.18.0"
"lexical": "^0.18.0",
"shiki": "^1.20.0"
}
},
"commitlint": {
Expand Down
Loading

0 comments on commit 609007b

Please sign in to comment.