Skip to content
Snippets Groups Projects
Commit 6f0bd996 authored by Fabien's avatar Fabien Committed by GitHub
Browse files

Merge pull request #192 from steemit/update-post-install-script

Update Reactnative script
parents d30bf6c2 6dffb78d
No related branches found
No related tags found
No related merge requests found
{
"name": "steem",
"version": "0.5.19",
"version": "0.5.20",
"description": "Steem.js the JavaScript API for Steem blockchain",
"main": "lib/index.js",
"scripts": {
......
......@@ -17,5 +17,5 @@ global.crypto = {
},
};
require('./dist/steem.min.js');
require('../dist/steem.min.js');
module.exports = global.steem;
......@@ -7,7 +7,7 @@ try {
const path = require('path');
if (packageJSON.dependencies['react-native']) {
const fs = require('fs');
const index = path.join(__dirname, '..', 'index.js');
const index = path.join(__dirname, '..','lib', 'index.js');
const RNIndex = path.join(__dirname, 'index.rn.js');
const indexContent = fs.readFileSync(RNIndex, { encoding: 'utf8' })
if (indexContent) {
......@@ -20,4 +20,4 @@ try {
}
catch (e) {
console.error('Error running postinstall script', e);
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment