#!/bin/bash

npm run build

if [ $# -eq 0 ]; then
    echo Deploying to NPM
    npm publish
  else
    echo Deploying locally to: $1/node_modules/format-si-prefix/
    cp -a dist/. $1/node_modules/format-si-prefix/dist
fi
