Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 4 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
"browserslist": [
"last 2 versions",
"Firefox ESR",
"> 1%",
"ie >= 11"
"> 1%"
],
"resolutions": {
"@types/react": "^18.0.38",
Expand All @@ -75,9 +74,7 @@
"@dnd-kit/modifiers": "^6.0.1",
"@dnd-kit/sortable": "^7.0.2",
"@dnd-kit/utilities": "^3.2.2",
"@emotion/cache": "^11.14.0",
"@emotion/css": "^11.13.5",
"@emotion/serialize": "^1.3.3",
"@rc-component/util": "^1.3.0",
"@umijs/route-utils": "^4.0.1",
"@umijs/use-params": "^1.0.9",
Expand All @@ -86,40 +83,29 @@
"lodash-es": "^4.17.21",
"path-to-regexp": "^6.3.0",
"rc-field-form": "^2.7.0",
"rc-footer": "^0.6.8",
"rc-resize-observer": "^1.4.3",
"rc-steps": "^6.0.1",
"rc-table": "^7.52.7",
"rc-table": "^7.53.0",
"react-draggable": "^4.5.0",
"react-layout-kit": "^1.9.2",
"react-lazy-load": "^4.0.1",
"react-markdown": "^8.0.7",
"react-syntax-highlighter": "^15.6.6",
"safe-stable-stringify": "^2.5.0",
"shiki-es": "^0.2.0",
"swr": "^2.3.6"
},
"devDependencies": {
"@ant-design/antd-theme-variable": "^1.0.0",
"@babel/core": "^7.28.4",
"@babel/eslint-plugin": "^7.27.1",
"@babel/parser": "^7.28.4",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/preset-env": "^7.28.3",
"@babel/preset-react": "^7.27.1",
"@babel/preset-typescript": "^7.27.1",
"@babel/traverse": "^7.28.4",
"@emotion/babel-plugin": "^11.13.5",
"@octokit/core": "^3.6.0",
"@octokit/rest": "^18.12.0",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.8.0",
"@testing-library/react": "^16.3.0",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^14.6.1",
"@types/glob": "^8.1.0",
"@types/history": "^4.7.11",
"@types/lodash": "^4.17.20",
"@types/lodash-es": "^4.17.12",
"@types/mockjs": "^1.0.10",
"@types/node": "^14.18.63",
Expand All @@ -137,52 +123,42 @@
"@umijs/test": "^3.5.43",
"@umijs/test-utils": "^3.5.43",
"@umijs/utils": "^4.4.12",
"@vitejs/plugin-legacy": "^6.1.1",
"@vitest/browser": "^3.2.4",
"@vitest/coverage-istanbul": "^3.2.4",
"@vitest/ui": "^3.2.4",
"animated-scroll-to": "^2.3.2",
"antd": "^5.27.3",
"chalk": "^4.1.2",
"copy-to-clipboard": "^3.3.3",
"cross-env": "^7.0.3",
"dumi": "^2.4.21",
"dumi-theme-antd-style": "^0.31.1",
"esbuild": "^0.15.18",
"esbuild": "^0.25.9",
"eslint": "^8.57.1",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-unicorn": "^47.0.0",
"execa": "^5.1.1",
"express": "^4.21.2",
"fast-deep-equal": "^3.1.3",
"father": "^4.6.3",
"gh-pages": "^5.0.0",
"glob": "^8.1.0",
"happy-dom": "^14.12.3",
"identity-obj-proxy": "^3.0.0",
"inquirer": "^8.2.7",
"jest-canvas-mock": "^2.5.2",
"lint-staged": "^10.5.4",
"mockdate": "^3.0.5",
"mockjs": "^1.1.0",
"np": "^6.5.0",
"nprogress": "^0.2.0",
"nwsapi": "2.2.13",
"octokit": "^3.2.2",
"playwright": "^1.55.0",
"polished": "^4.3.1",
"prettier": "^3.6.2",
"prettier-plugin-organize-imports": "^4.2.0",
"prettier-plugin-packagejson": "^2.5.19",
"pretty-quick": "^3.3.1",
"query-string": "^6.14.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"remark": "^15.0.1",
"remark-gfm": "^4.0.1",
"remark-parse": "^11.0.0",
"slash2": "^2.0.0",
"style-loader": "^2.0.0",
"stylelint": "^13.13.1",
"timezone-mock": "^1.3.6",
Expand All @@ -197,8 +173,7 @@
"vitest": "^3.2.4",
"write-pkg": "^4.0.0",
"xhr-mock": "^2.5.1",
"yorkie": "^2.0.0",
"zustand": "^4.5.7"
"yorkie": "^2.0.0"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

yorkie 升级到 ^2.0.0:确认 git hooks 安装流程仍然有效

请确认团队环境中 hooks 会被自动安装;若无额外安装步骤,建议在 scripts 增加一次性的安装钩子,或在贡献指南注明首次安装命令。

  • 方案 A(推荐):在 package.json 的 scripts 中新增
{
  "scripts": {
    "prepare": "yorkie install"
  }
}
  • 自检脚本(本地执行,确认钩子已落盘):

🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail
test -f .git/hooks/pre-commit && sed -n '1,5p' .git/hooks/pre-commit || echo "pre-commit hook 未安装"

Length of output: 19


确保 Git Hooks 自动安装

验证升级至 ^2.0.0 后,执行验证脚本发现 .git/hooks/pre-commit 未安装;请在 package.jsonscripts 中新增:

// package.json
{
  "scripts": {
    "prepare": "yorkie install"
  }
}
🤖 Prompt for AI Agents
package.json lines 176–176: 验证发现升级 yorkie 到 ^2.0.0 后没有自动安装 Git hooks;请在
package.json 的 scripts 节点中新增 prepare 脚本来调用 yorkie install,确保如果已有 prepare
脚本则将其合并或串联(例如用 &&),保存后执行 npm/yarn install 或 npm run prepare 来验证
.git/hooks/pre-commit 已被正确安装。

},
"peerDependencies": {
"antd": "^5.11.2",
Expand Down
Loading