更新dev脚本

This commit is contained in:
jingrow 2025-11-03 21:56:34 +08:00
parent 9c888dde48
commit ad5aeb4f98

6
dev.sh
View File

@ -127,6 +127,12 @@ check_deps() {
cd apps/jingrow/frontend && npm install && cd ../..
fi
# 即使 node_modules 存在,也校验 vite 是否可用(可能之前安装不完整)
if [ ! -x "apps/jingrow/frontend/node_modules/.bin/vite" ]; then
warn "未检测到 vite可执行文件缺失重新安装前端依赖..."
(cd apps/jingrow/frontend && npm install)
fi
# 检查后端依赖(优先使用 uv
info "同步后端依赖 (uv)..."
if [ -f "apps/jingrow/pyproject.toml" ]; then