diff --git a/index.js b/index.js index 46d7adf..41aeb51 100644 --- a/index.js +++ b/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 diff --git a/package.json b/package.json index 865762c..8aa7cf4 100644 --- a/package.json +++ b/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" + ] }