From 426bbf2afe4fff40827f4fe2385cdd3c57c29155 Mon Sep 17 00:00:00 2001 From: jeremywu <15975785+JeremyWuuuuu@users.noreply.github.com> Date: Mon, 26 Jul 2021 12:47:02 +0800 Subject: [PATCH] fix(build): fix build script (#2683) * fix(build): fix build script - Replace cp command with rsync * update build script --- scripts/build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 6100e99900..6b5b3c3c0d 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -31,8 +31,9 @@ yarn build:helper echo "Copying types" # Post build cp type definitions touch temp -find ./dist -type d ! -name 'element-plus' -depth 1 -print0 | xargs -0 -I {} sh -c "basename {}" > temp - +cd ./dist +find . -maxdepth 1 ! -path . -type d ! -name 'element-plus' -print0 | xargs -0 -I {} sh -c "basename {}" > ../temp +cd - input="./temp" mkdir -p tempDir