From 760138ac2c64ea4d8337a36f2476be2d753b6d63 Mon Sep 17 00:00:00 2001 From: imccyu Date: Thu, 6 Aug 2026 21:14:59 +0800 Subject: [PATCH] fix: dep --- knip.json | 16 ++++++++++++++++ packages/client/ui-settings/package.json | 7 +++++-- pnpm-lock.yaml | 6 ++++++ 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/knip.json b/knip.json index 1d6a46a01e..40b31ade54 100644 --- a/knip.json +++ b/knip.json @@ -597,6 +597,22 @@ "@deepseek-ai/dsh-client-ui-theme" ] }, + "packages/client/ui-settings": { + "entry": [ + "tests/**/*.spec.ts", + "tests/**/*.spec.tsx" + ], + "project": [ + "src/**/*.ts", + "src/**/*.tsx", + "tests/**/*.ts", + "tests/**/*.tsx" + ], + "ignoreDependencies": [ + "@types/react-dom", + "react-dom" + ] + }, "apps/web": { "entry": [ "tests/**/*.e2e.ts", diff --git a/packages/client/ui-settings/package.json b/packages/client/ui-settings/package.json index 02f1c74fbc..6fa2fdc8cb 100644 --- a/packages/client/ui-settings/package.json +++ b/packages/client/ui-settings/package.json @@ -43,7 +43,8 @@ "@deepseek-ai/dsh-client-ui-slots": "^0.0.1", "@deepseek-ai/dsh-invariants": "^0.0.1", "cordis": "^4.0.0-rc.7", - "react": "^18.2.0" + "react": "^18.2.0", + "react-dom": "^18.2.0" }, "devDependencies": { "@deepseek-ai/dsh-client-locale": "workspace:^", @@ -52,9 +53,11 @@ "@deepseek-ai/dsh-client-ui-sidebar": "workspace:^", "@deepseek-ai/dsh-client-ui-slots": "workspace:^", "@deepseek-ai/dsh-invariants": "workspace:^", + "@types/react-dom": "~18.3.0", "@types/react": "~18.3.1", "cordis": "^4.0.0-rc.7", - "react": "^18.2.0" + "react": "^18.2.0", + "react-dom": "^18.2.0" }, "files": [ "lib/index.js", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 83d8e0a0fe..aaaed3c423 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1922,12 +1922,18 @@ importers: '@types/react': specifier: ~18.3.1 version: 18.3.31 + '@types/react-dom': + specifier: ~18.3.0 + version: 18.3.7(@types/react@18.3.31) cordis: specifier: ^4.0.0-rc.7 version: link:../../../vendor/cordis react: specifier: ^18.2.0 version: 18.3.1 + react-dom: + specifier: ^18.2.0 + version: 18.3.1(react@18.3.1) packages/client/ui-settings-general: dependencies: