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

Commit

Permalink
Merge pull request #596 from Stuyk/master
Browse files Browse the repository at this point in the history
Resolve Copying on Multiplatform
  • Loading branch information
GreenBusDriver committed Oct 18, 2019
2 parents de76443 + a95338d commit 3cbda6f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eosjs",
"version": "20.0.1",
"version": "20.0.2",
"description": "Talk to eos API",
"main": "dist/index.js",
"scripts": {
Expand All @@ -12,7 +12,7 @@
"test": "jest src/tests/*eosjs*",
"test-node": "jest src/tests/*node*",
"test-all": "yarn test && yarn test-node && yarn cypress",
"build": "tsc -p ./tsconfig.json && cp src/ripemd.es5.js dist/ripemd.js",
"build": "tsc -p ./tsconfig.json && node scripts/copy-ripe-md.js",
"build-web": "webpack --config webpack.prod.js && webpack --config webpack.debug.js",
"build-production": "yarn build && yarn build-web && yarn test-all",
"clean": "rm -rf dist",
Expand Down
8 changes: 8 additions & 0 deletions scripts/copy-ripe-md.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var fs = require('fs');
var path = require('path');
var root = __dirname.replace('scripts', '');

if(!fs.existsSync(path.join(root + 'dist')))
fs.mkdirSync(path.join(root + 'dist'));

fs.copyFileSync(path.join(root + 'src/ripemd.es5.js'), path.join(root + 'dist/ripemd.js'));

0 comments on commit 3cbda6f

Please sign in to comment.