Skip to content

Commit

Permalink
SP-1135 Add exports to Node.js SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Matuszczak committed Jan 8, 2025
1 parent 6925c24 commit 67180fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"node": ">=18.0.0 <23.0.0"
},
"main": "dist/index",
"exports": {
".": "./dist/index.js",
"./client": "./dist/Client/index.js",
"./models": "./dist/Model/index.js",
"./exceptions": "./dist/Exceptions/index.js",
"./logger": "./dist/Logger/index.js"
},
"typings": "dist/index",
"bin": "./bin/index.js",
"files": [
Expand Down
5 changes: 5 additions & 0 deletions src/Logger/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { BitPayLogger } from './BitPayLogger';
import { EmptyLogger } from './EmptyLogger';
import { LoggerProvider } from './LoggerProvider';

export { BitPayLogger, EmptyLogger, LoggerProvider };

0 comments on commit 67180fb

Please sign in to comment.