fix(build): fix build script (#2680)

- Replace cp command with rsync
This commit is contained in:
jeremywu 2021-07-26 12:03:27 +08:00 committed by GitHub
parent 243e2c47f8
commit a846c08a56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,8 +45,8 @@ do
;;
esac
mv "dist/$line" "tempDir/$filepath"
cp -nR "tempDir/" es
cp -nR "tempDir/" lib
rsync -a tempDir/ es/
rsync -a tempDir/ lib/
done < "$input"
@ -55,6 +55,7 @@ cp dist/element-plus/* lib
cp packages/utils/types.ts lib/utils/
cp dist/element-plus/* es
echo "Remove temp files"
# Post build cleanup
rm -rf temp