ensure cli always has packages installed

This commit is contained in:
Thomas Hobson 2021-06-13 19:12:14 +12:00
parent 0598c5c9be
commit 5a82e0308b
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 6 additions and 1 deletions

7
piston
View File

@ -68,5 +68,10 @@ case $1 in
docker build repo -t piston-repo-builder
docker run -v "$(realpath $(dirname "$0")):/piston" piston-repo-builder --no-server $PKGSLUG
;;
*) node cli/index.js "$@" ;;
*)
cd cli
npm i > /dev/null
cd ../
node cli/index.js "$@"
;;
esac