Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
dai-plugin-mcd-v1.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jparklev committed May 22, 2020
1 parent add74b6 commit 07f826d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
11 changes: 3 additions & 8 deletions packages/dai-plugin-mcd/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
{
"name": "@makerdao/dai-plugin-mcd",
"description": "Plugin to add Multi-Collateral Dai support to dai.js",
"version": "1.4.4",
"version": "1.4.5",
"license": "MIT",
"files": [
"dist/**/*",
"umd/*",
"contracts/**/*"
],
"main": "dist/index.js",
"main": "dist/src/index.js",
"browser": "umd/index.js",
"unpkg": "umd/index.js",
"jsdelivr": "umd/index.js",
"scripts": {
"build": "yarn clean && yarn build:cjs && yarn build:umd",
"build:umd": "webpack --config ../../webpack.config.js",
"build:cjs": "../../scripts/build.sh",
"build:cjs": "./scripts/build.sh",
"clean": "rm -rf ./dist ./umd",
"prepublishOnly": "yarn build",
"testchain": "../../scripts/run-testchain.sh",
Expand Down
18 changes: 18 additions & 0 deletions packages/dai-plugin-mcd/scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

set -e

if [ "$1" = "dirty" ]; then
echo "Dirty mode: not removing previous build files."
else
rm -rf dist
fi

babel contracts --out-dir ./dist/contracts
babel src --out-dir ./dist/src

copyfiles \
contracts/abis/* \
contracts/abiMap.json \
contracts/addresses/* \
dist

0 comments on commit 07f826d

Please sign in to comment.