#!/usr/bin/env bash
# Update Script for pnpm 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
yarn add commander shelljs
yarn add -D jest cross-env cross-var npm-run-all shx
yarn add -D typedoc typescript
yarn add -D eslint @eslint/js typescript-eslint biome
yarn add -D @types/bunyan @types/node @types/shelljs @types/jest


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