You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
409 B

#!/bin/sh
# Create the exported directory
mkdir -p build
if [ "$1" = "alpine" ]; then
REGEX='\./\(\(api\|packages\)/[^/]\+/dist/lib\|services/[^/]\+/dist\)'
else
REGEX='\./\(\(api\|packages\)/[^/]+/dist/lib\|services/[^/]+/dist\)'
fi
# Locate services/packages and grab only the built files (excluding types if any)
for file in $(find . -regex $REGEX); do
echo $file;
cp --parents -R $file build;
done