From f8b761ec1c98df166252cfea140feb05c2b8bd75 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Sun, 28 Sep 2025 01:52:19 +0800 Subject: [PATCH 1/3] perf: uninstall classnames, install clsx --- .gitignore | 1 + package.json | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 7b872ee..639a874 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ lib es yarn.lock package-lock.json +pnpm-lock.yaml coverage/ .doc # dumi diff --git a/package.json b/package.json index 34449a7..9f044fc 100644 --- a/package.json +++ b/package.json @@ -41,16 +41,18 @@ "now-build": "npm run build" }, "dependencies": { - "classnames": "^2.2.1", "@rc-component/util": "^1.2.0" }, "devDependencies": { "@rc-component/father-plugin": "^2.0.2", + "@rc-component/np": "^1.0.0", "@testing-library/react": "^12.1.5", "@types/jest": "^29.5.10", - "@types/react-dom": "^18.0.11", + "@types/node": "^24.5.2", "@types/react": "^18.0.28", + "@types/react-dom": "^18.0.11", "@umijs/fabric": "^2.0.9", + "cheerio": "1.0.0-rc.12", "coveralls": "^3.0.6", "cross-env": "^7.0.2", "dumi": "^2.0.0", @@ -61,13 +63,11 @@ "gh-pages": "^6.1.0", "glob": "^7.1.6", "less": "^4.1.3", - "@rc-component/np": "^1.0.0", "prettier": "^3.2.5", "pretty-quick": "^4.0.0", "rc-test": "^7.0.15", "react": "^16.0.0", "react-dom": "^16.0.0", - "cheerio": "1.0.0-rc.12", "regenerator-runtime": "^0.14.0" }, "peerDependencies": { From b418cfe63fe823310c6b3c4fb70a1c3ada280bb7 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Sun, 28 Sep 2025 01:55:50 +0800 Subject: [PATCH 2/3] perf: uninstall classnames, install clsx --- tsconfig.json | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 7033112..c7f0fce 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,19 +4,14 @@ "moduleResolution": "node", "baseUrl": "./", "jsx": "react", + "types": ["node"], "declaration": true, "skipLibCheck": true, "esModuleInterop": true, "paths": { - "@/*": [ - "src/*" - ], - "@@/*": [ - ".dumi/tmp/*" - ], - "rc-resize-observer": [ - "src/index.tsx" - ] + "@/*": ["src/*"], + "@@/*": [".dumi/tmp/*"], + "rc-resize-observer": ["src/index.tsx"] } } -} \ No newline at end of file +} From fb78f36ed80ae5f176410f677b8cf41b76692eab Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Sun, 28 Sep 2025 01:57:16 +0800 Subject: [PATCH 3/3] update --- package.json | 3 +++ tsconfig.json | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9f044fc..af18e07 100644 --- a/package.json +++ b/package.json @@ -74,6 +74,9 @@ "react": ">=16.9.0", "react-dom": ">=16.9.0" }, + "resolutions": { + "@types/minimatch": "5.1.2" + }, "cnpm": { "mode": "npm" }, diff --git a/tsconfig.json b/tsconfig.json index c7f0fce..b80e55f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,6 @@ "moduleResolution": "node", "baseUrl": "./", "jsx": "react", - "types": ["node"], "declaration": true, "skipLibCheck": true, "esModuleInterop": true,