Skip to content

Commit

Permalink
Merge pull request #217 from jonfairbanks/fix/zip-file-bundling
Browse files Browse the repository at this point in the history
Fix zip file bundling
  • Loading branch information
jonfairbanks authored Oct 12, 2024
2 parents 6cbb0c6 + 79f789a commit c4b42dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .tf/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ function deploy {
# Create a dist folder and copy only the js files to dist.
# Note: AWS Lambda does not have a use for a package.json or typescript files on runtime.
mkdir -p dist/ && \
cp -r *.js dist/ && \
rsync -av --prune-empty-dirs --exclude='node_modules' --exclude='chart' --include='*/' --include='*.js' --exclude='*' ./ dist/ && \
cd dist && \

# Zip everything in the dist folder and
find . -name "*.zip" -type f -delete && \
zip -r ./yo-api-"$TIMESTAMP".zip . --exclude "./node_modules/*" --exclude "./.DS_Store" && \
zip -r ./yo-api-"$TIMESTAMP".zip . --exclude "./.DS_Store" && \
cd ../../.tf && \

# Run Terraform
Expand Down

0 comments on commit c4b42dd

Please sign in to comment.