npm is a mess.

This commit is contained in:
John 2022-04-28 18:16:33 -05:00
parent 41b3c37ed3
commit 97e54a5931

View File

@ -76,7 +76,7 @@ electronversion=""
case `code --version` in
#* Each version of VSCode has a corresponding Electron version and Node version
#* These are used when
1.66.*) electronversion="17.2.0"; nodeversion="16.13.0";;
1.66.*) electronversion="17.2.0"; nodeversion="16.14.2";;
*) ;;
esac
@ -90,6 +90,9 @@ dryrun npm install electron-rebuild yo generator-code
# use npm to acquire dependencies for Mind-Reader
dryrun npm install
# automatically update vulnerable packages, if possible
dryrun npm audit fix
# Use electron-rebuild to rebuild electron
if [ "$electronversion" != "" ]; then
dryrun electron-rebuild --version $electronversion