mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 09:02:10 +00:00
fix: install node modules if package.json exists
This commit is contained in:
parent
9f7a8293cf
commit
67fb0a4042
@ -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 ""
|
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("{pip} install {quiet} -U -e {app} {no_cache}".format(pip=pip_path, quiet=quiet_flag, app=app_path, no_cache=cache_flag))
|
||||||
|
|
||||||
|
if os.path.exists(os.path.join(app_path, 'package.json')):
|
||||||
exec_cmd("yarn install", cwd=app_path)
|
exec_cmd("yarn install", cwd=app_path)
|
||||||
|
|
||||||
add_to_appstxt(app, bench_path=bench_path)
|
add_to_appstxt(app, bench_path=bench_path)
|
||||||
|
|
||||||
if postprocess:
|
if postprocess:
|
||||||
|
Loading…
Reference in New Issue
Block a user