make bip39 play nice with browserify

This commit is contained in:
Wei Lu 2014-03-14 17:05:58 +08:00
parent 5e82772349
commit 6fd8698af2
2 changed files with 14 additions and 4 deletions

View File

@ -1,5 +1,6 @@
var Crypto = require('crypto-js')
var Wordlists = require('require-json-tree')('./wordlists')
var path = require('path')
var Wordlists = require('require-json-tree')(path.join(__dirname, 'wordlists'))
module.exports = BIP39

View File

@ -14,9 +14,18 @@
"license": "ISC",
"dependencies": {
"crypto-js": "^3.1.2-2",
"require-json-tree": "~1.0.0"
"require-json-tree": "~1.1.0"
},
"devDependencies": {
"mocha": "^1.17.1"
}
"mocha": "^1.17.1",
"brstar": "~0.1.0"
},
"browserify": {
"transform": [
"brstar"
]
},
"brstar": [
"require-json-tree"
]
}