Skip to content

Commit

Permalink
update exports for TS support via npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
jcramer committed Feb 8, 2019
1 parent 0e709dd commit e1b3164
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ yarn.lock
lib/*.js
index.js
*.js.map
*.d.ts
# testing
/coverage

Expand Down
19 changes: 6 additions & 13 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
import { Slp } from './lib/slp';
import { Utils } from './lib/utils';
import { BitdbNetwork } from './lib/bitdbnetwork';
import { JsonRpcProxyValidator } from './lib/jsonrpcvalidator';
import { LocalValidator } from './lib/localvalidator';
import { BitboxNetwork } from './lib/bitboxnetwork';

exports.Slp = Slp;
exports.Utils = Utils;
exports.BitboxNetwork = BitboxNetwork;
exports.BitdbNetwork = BitdbNetwork;
exports.JsonRpcProxyValidator = JsonRpcProxyValidator;
exports.LocalValidator = LocalValidator;
export { Slp } from './lib/slp';
export { Utils } from './lib/utils';
export { BitdbNetwork } from './lib/bitdbnetwork';
export { JsonRpcProxyValidator } from './lib/jsonrpcvalidator';
export { LocalValidator } from './lib/localvalidator';
export { BitboxNetwork } from './lib/bitboxnetwork';
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "slpjs",
"version": "0.11.6",
"version": "0.12.2",
"description": "Simple Ledger Protocol (SLP) JavaScript Library",
"main": "index.js",
"files": [
"index.ts",
"lib/",
"dist/"
],
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
"sourceMap": true
},
"include": [
"index.ts",
"./lib",
"./test"
],
"files": [
"index.ts"
]
}

0 comments on commit e1b3164

Please sign in to comment.