fix(build): fix build script (#2683)

* fix(build): fix build script

- Replace cp command with rsync

* update build script
This commit is contained in:
jeremywu 2021-07-26 12:47:02 +08:00 committed by GitHub
parent a846c08a56
commit 426bbf2afe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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