Skip to content

Commit af18275

Browse files
authored
Merge pull request #232 from jonfairbanks/fix/missing-dependencies
Fix Lambda Layer zip directory structure
2 parents 5d819a3 + 0a320e5 commit af18275

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.tf/deploy.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ function deploy {
2929

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

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

0 commit comments

Comments
 (0)