更新dev脚本
This commit is contained in:
parent
9c888dde48
commit
ad5aeb4f98
6
dev.sh
6
dev.sh
@ -127,6 +127,12 @@ check_deps() {
|
|||||||
cd apps/jingrow/frontend && npm install && cd ../..
|
cd apps/jingrow/frontend && npm install && cd ../..
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# 即使 node_modules 存在,也校验 vite 是否可用(可能之前安装不完整)
|
||||||
|
if [ ! -x "apps/jingrow/frontend/node_modules/.bin/vite" ]; then
|
||||||
|
warn "未检测到 vite,可执行文件缺失,重新安装前端依赖..."
|
||||||
|
(cd apps/jingrow/frontend && npm install)
|
||||||
|
fi
|
||||||
|
|
||||||
# 检查后端依赖(优先使用 uv)
|
# 检查后端依赖(优先使用 uv)
|
||||||
info "同步后端依赖 (uv)..."
|
info "同步后端依赖 (uv)..."
|
||||||
if [ -f "apps/jingrow/pyproject.toml" ]; then
|
if [ -f "apps/jingrow/pyproject.toml" ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user