Home>

I'm new to Node.js.

https://qiita.com/atomyah/items/aca43421ae5bf90175f3
Of the above site

"deploy": "aws lambda update-function-code --function-name arn: aws: lambda: ap-northeast-1: 012334455667: function: auto_Hoge --zip-file fileb: //Lambda-Deployment.zip",
"predeploy": "zip -r Lambda-Deployment.zip * -x * .zip * .json * .log"


Regarding the above two lines, why is "predeploy" also executed when "npm run deploy" is executed?
Why did I just use the "npm run deploy" command when I didn't run the "npm run predeploy" command?
I would like to know if it can be executed.