diff --git a/scripts/npm_update.sh b/scripts/npm_update.sh new file mode 100644 index 00000000..f0ba9116 --- /dev/null +++ b/scripts/npm_update.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +# This script updates npm dependencies for the project. + +cd /projects/Charon || exit + +echo "Updating root npm dependencies..." + +npm update +npm dedup +npm audit --audit-level=high +npm audit fix +npm outdated +npm install + +echo "Root npm dependencies updated successfully." + +cd /projects/Charon/frontend || exit + +echo "Updating frontend npm dependencies..." + +npm update +npm dedup +npm audit --audit-level=high +npm audit fix +npm outdated +npm install + +echo "Frontend npm dependencies updated successfully."