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

Commit 3cbda6f

Browse files
Merge pull request #596 from Stuyk/master
Resolve Copying on Multiplatform
2 parents de76443 + a95338d commit 3cbda6f

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eosjs",
3-
"version": "20.0.1",
3+
"version": "20.0.2",
44
"description": "Talk to eos API",
55
"main": "dist/index.js",
66
"scripts": {
@@ -12,7 +12,7 @@
1212
"test": "jest src/tests/*eosjs*",
1313
"test-node": "jest src/tests/*node*",
1414
"test-all": "yarn test && yarn test-node && yarn cypress",
15-
"build": "tsc -p ./tsconfig.json && cp src/ripemd.es5.js dist/ripemd.js",
15+
"build": "tsc -p ./tsconfig.json && node scripts/copy-ripe-md.js",
1616
"build-web": "webpack --config webpack.prod.js && webpack --config webpack.debug.js",
1717
"build-production": "yarn build && yarn build-web && yarn test-all",
1818
"clean": "rm -rf dist",

scripts/copy-ripe-md.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var fs = require('fs');
2+
var path = require('path');
3+
var root = __dirname.replace('scripts', '');
4+
5+
if(!fs.existsSync(path.join(root + 'dist')))
6+
fs.mkdirSync(path.join(root + 'dist'));
7+
8+
fs.copyFileSync(path.join(root + 'src/ripemd.es5.js'), path.join(root + 'dist/ripemd.js'));

0 commit comments

Comments
 (0)