Skip to content

Commit

Permalink
Merge pull request #231 from jonfairbanks/fix/missing-dependencies
Browse files Browse the repository at this point in the history
Create proper directory structure for node_module layer
  • Loading branch information
jonfairbanks authored Oct 13, 2024
2 parents 1b5b1f6 + 2f20ac4 commit 5d819a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .tf/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ function deploy {

# Create a zip of node_modules
find . -name "*.zip" -type f -delete && \
zip -r ./yo-node-modules-"$TIMESTAMP".zip node_modules && \
mkdir -p layer/nodejs
cp -r node_modules layer/nodejs/
zip -r ./yo-node-modules-"$TIMESTAMP".zip -j layer/nodejs/
rm -rf layer

# Create a dist folder and copy only the js files to dist.
mkdir -p dist/ && \
Expand Down

0 comments on commit 5d819a3

Please sign in to comment.