From e1b3164ced5ace7037a6127b63d4745ef4f92790 Mon Sep 17 00:00:00 2001 From: "James S. Cramer" Date: Fri, 8 Feb 2019 13:44:51 -0500 Subject: [PATCH] update exports for TS support via `npm install` --- .gitignore | 1 + index.ts | 19 ++++++------------- package.json | 3 ++- tsconfig.json | 4 +++- 4 files changed, 12 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index fd55f034..c5d7d601 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ yarn.lock lib/*.js index.js *.js.map +*.d.ts # testing /coverage diff --git a/index.ts b/index.ts index 367c35e4..75c2936b 100644 --- a/index.ts +++ b/index.ts @@ -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; \ No newline at end of file +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'; \ No newline at end of file diff --git a/package.json b/package.json index fa5e0ecf..8990d4f5 100644 --- a/package.json +++ b/package.json @@ -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/" ], diff --git a/tsconfig.json b/tsconfig.json index dd99cb36..8760034a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,8 +7,10 @@ "sourceMap": true }, "include": [ - "index.ts", "./lib", "./test" + ], + "files": [ + "index.ts" ] } \ No newline at end of file