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