pref: 优化start.sh脚本

pull/199/head
Greper 2024-10-03 23:41:57 +08:00 committed by GitHub
parent aeed24e87d
commit f66e6412af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#
set -e
echo "即将删除packages下除ui之外的其他目录按y确认"
read -p "y/n: " confirm
if [ $confirm != "y" ]; then
@ -11,9 +11,9 @@ find ./packages -mindepth 1 -maxdepth 1 -type d ! -name 'ui' -exec rm -rf {} +
echo "删除成功"
echo "安装pnpm 8.15.7, 前提是已经安装了nodejs"
npm install -g pnpm@8.15.7
npm install -g pnpm@8.15.7 --registry https://registry.npmmirror.com
echo "安装依赖"
pnpm install
pnpm install --registry https://registry.npmmirror.com
echo "开始构建"
echo "构建certd-client"