diff --git a/scripts/build.sh b/scripts/build.sh index a274c8fa42..6100e99900 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -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