#!/usr/bin/env bash
# Update Script for NPM Modules.
# Run this to install the latest modules and update package.json
# package.json.t is the template file, make changes there!

cp package.json.t package.json
rm -f pnpm-lock.yaml package-lock.json yarn.lock
rm -rf node_modules
pnpm i -D browser-sync gazeall npm-run-all sass shx
pnpm i -S bootstrap dm-css

if [ "$1" = "-" ]; then
  rm -rf node_modules
  # rm -f package-lock.json yarn.lock pnpm-lock.yaml
fi
