mirror of https://github.com/status-im/bip39.git
make bip39 play nice with browserify
This commit is contained in:
parent
5e82772349
commit
6fd8698af2
3
index.js
3
index.js
|
@ -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
|
||||
|
||||
|
|
15
package.json
15
package.json
|
@ -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"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue