Skip to content

Commit

Permalink
fix: install node modules if package.json exists
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed May 6, 2020
1 parent 9f7a829 commit 67fb0a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bench/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ def install_app(app, bench_path=".", verbose=False, no_cache=False, postprocess=
cache_flag = "--no-cache-dir" if no_cache else ""

exec_cmd("{pip} install {quiet} -U -e {app} {no_cache}".format(pip=pip_path, quiet=quiet_flag, app=app_path, no_cache=cache_flag))
exec_cmd("yarn install", cwd=app_path)

if os.path.exists(os.path.join(app_path, 'package.json')):
exec_cmd("yarn install", cwd=app_path)

add_to_appstxt(app, bench_path=bench_path)

if postprocess:
Expand Down

0 comments on commit 67fb0a4

Please sign in to comment.