#!/usr/bin/env bash

npm -g uninstall dm-tools

npm run build
npm pack

if [ "$1" == "-g" ]; then
  npm i -g ./dm-tools-0.9.5.tgz
fi
