now supporting proper react-native-compatible browserification/babelification

This commit is contained in:
Arik Sosman 2016-01-12 12:57:26 -08:00
parent b81147aa40
commit d32aa03e66
1 changed files with 9 additions and 2 deletions

View File

@ -4,7 +4,8 @@
"description": "randomBytes for react-native",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"babelify": "mkdir -p browser && ./node_modules/.bin/browserify --exclude react-native -t [ babelify --presets [ react es2015 ] ] ./index.js | sed -e 's/require/bitgoReq/g' > ./browser/react_index.js"
},
"keywords": [
"react-component",
@ -18,5 +19,11 @@
"sjcl": "^1.0.3"
},
"author": "Mark Vayngrib <mark.vayngrib@lablz.com> (http://github.com/mvayngrib)",
"license": "ISC"
"license": "ISC",
"devDependencies": {
"babel-preset-es2015": "^6.3.13",
"babel-preset-react": "^6.3.13",
"babelify": "^7.2.0",
"browserify": "^13.0.0"
}
}