Re-org packages.

This commit is contained in:
ricmoo 2017-03-08 01:50:12 -05:00
parent 30cf4a1702
commit 33a1459505
3 changed files with 12 additions and 9 deletions

@ -128,7 +128,7 @@ module.exports = function(grunt) {
files: {
'dist/ethers.js': './index.js',
'dist/ethers-contracts.js': './contracts/index.js',
'dist/ethers-hdnode.js': './hdnode/index.js',
// 'dist/ethers-hdnode.js': './hdnode/index.js',
'dist/ethers-providers.js': './providers/index.js',
'dist/ethers-utils.js': './utils/index.js',
'dist/ethers-wallet.js': './wallet/index.js',
@ -150,7 +150,7 @@ module.exports = function(grunt) {
files: {
'dist/ethers.min.js' : [ './dist/ethers.js' ],
'dist/ethers-contracts.min.js' : [ './dist/ethers-contracts.js' ],
'dist/ethers-hdnode.min.js' : [ './dist/ethers-hdnode.js' ],
// 'dist/ethers-hdnode.min.js' : [ './dist/ethers-hdnode.js' ],
'dist/ethers-providers.min.js' : [ './dist/ethers-providers.js' ],
'dist/ethers-utils.min.js' : [ './dist/ethers-utils.js' ],
'dist/ethers-wallet.min.js' : [ './dist/ethers-wallet.js' ],

@ -9,15 +9,15 @@ var Wallet = require('ethers-wallet');
*/
var contracts = require('./contracts/index.js');
var HDNode = require('./hdnode/index.js');
//var HDNode = require('./hdnode/index.js');
var providers = require('./providers/index.js');
var utils = require('./utils/index.js');
var Wallet = require('./wallet/index.js');
var wallet = require('./wallet/index.js');
module.exports = {
Wallet: Wallet,
Wallet: wallet.Wallet,
HDNode: HDNode,
HDNode: wallet.HDNode,
Contract: contracts.Contract,
Interface: contracts.Interface,
@ -35,6 +35,9 @@ module.exports = {
getAddress: utils.getAddress,
getContractAddress: utils.getContractAddress,
toUtf8Bytes: utils.toUtf8Bytes,
toUtf8String: utils.toUtf8String,
keccak256: utils.keccak256,
sha256: utils.sha256,
@ -42,7 +45,7 @@ module.exports = {
},
_utils: utils,
_SigningKey: Wallet._SigningKey,
_SigningKey: wallet._SigningKey,
};
require('ethers-utils/standalone.js')(module.exports);

@ -1,6 +1,6 @@
{
"name": "ethers-wallet",
"version": "1.0.11",
"name": "ethers",
"version": "2.0.0",
"description": "Ethereum wallet library.",
"main": "index.js",
"scripts": {