Uploads Converted Typescript files to lambda with node_modules layer

Usage:

required packages:

  1. aws cli
  2. jq
# Compile typescript files with
tsc

# Provide LAMBDA ENV
LAMBDA_LAYER_ARN=XXXX
LAMBDA_FUNCTION_ARN=XXXXX

# Compile TSC files first
yarn
tsc .

# Switch to production

rm -r node_modules/
NODE_ENV=production yarn install

#Run deploy.sh to push layers and code
./deploy.sh