From 3ad7df0e0a1f5517fcba9c942483b36b99ade0d7 Mon Sep 17 00:00:00 2001 From: zhangsz Date: Thu, 2 Jan 2025 10:12:19 +0800 Subject: [PATCH] update build sh to add terser dependency --- bin/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/build.sh b/bin/build.sh index 1ab05f2..1cbf453 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -64,6 +64,9 @@ build-dist(){ cd ${FEUserRootDir} git checkout src/typings/components.d.ts git pull + if ! pnpm list terser --depth 0 &> /dev/null; then + pnpm add terser --save-dev + fi pnpm i pnpm build }