chore(husky): 恢复提交检查并新增推送前全量校验

- pre-commit 恢复 lint-staged 校验
- 新增 pre-push 执行 check 全量检查
- .nvmrc 与 engines 固定 Node 最低版本
This commit is contained in:
Ray.Hao committed 2026-10-16 17:02:09 +08:00
1 parent 9c5f5d36fa
commit 5cb4b31173
4 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -1,2 +1,2 @@
echo "Running pre-commit hook..."
#pnpm run lint:lint-staged
pnpm run lint:lint-staged
+1
View File
@@ -0,0 +1 @@
pnpm check
+1
View File
@@ -0,0 +1 @@
22.12.0
+3
View File
@@ -1,6 +1,9 @@
{
"name": "youlai-app",
"version": "1.2.0",
"engines": {
"node": ">=18"
},
"scripts": {
"dev:app": "uni -p app",
"dev:app-android": "uni -p app-android",