diff --git a/.aegir.js b/.aegir.js new file mode 100644 index 0000000..e3151ab --- /dev/null +++ b/.aegir.js @@ -0,0 +1,16 @@ +'use strict' + +const path = require('path') + +module.exports = { + webpack: { + resolve: { + alias: { + 'node-forge': path.resolve( + path.dirname(require.resolve('libp2p-crypto')), + '../vendor/forge.bundle.js' + ) + } + } + } +} diff --git a/package.json b/package.json index 7874d74..ab142c6 100644 --- a/package.json +++ b/package.json @@ -41,23 +41,13 @@ "bs58": "^3.0.0" }, "devDependencies": { - "aegir": "^3.0.1", + "aegir": "^3.1.0", "chai": "^3.5.0", "multiaddr": "^1.4.1", - "peer-info": "^0.6.2", + "peer-info": "^0.7.0", "pre-commit": "^1.1.2" }, "contributors": [ "David Dias " - ], - "aegir": { - "webpack": { - "resolve": { - "alias": { - "node-forge": "../../../node_modules/peer-id/vendor/forge.bundle.js" - } - }, - "externals": {} - } - } -} \ No newline at end of file + ] +}