Skip to content

Commit 5702bb3

Browse files
Update packing script
1 parent 355e7f7 commit 5702bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

function/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"pack": "zip -r code.zip *",
8+
"pack": "rm -Rf node_modules && npm install --production && zip -rq code.zip *",
99
"dev": "sam local invoke -e ./dev/event.json -t ../template.yaml",
1010
"local": "LOCAL=true node index.js"
1111
},

0 commit comments

Comments
 (0)