Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Added dependency install for NodeJS #70

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ def dequote(value):
'--target=.',
'--requirement=requirements.txt',
)
if runtime.startswith('node'):
packageJson = os.path.join(temp_dir, 'package.json')
if os.path.exists(packageJson):
with cd(temp_dir):
run('npm','install',)
DazKins marked this conversation as resolved.
Show resolved Hide resolved

# Zip up the temporary directory and write it to the target filename.
# This will be used by the Lambda function as the source code package.
Expand Down