Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"scripts": {
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch",
"build:types": "tsc --emitDeclarationOnly",
"build": "rimraf ./dist && npm run build:js && build:types",
"build:types": "tsc -p tsconfig.build.json",
"build": "rimraf ./dist && npm run build:js && npm run build:types",
"build:js": "webpack --mode=production --node-env=production",
"build:dev": "webpack --mode=development",
"build:prod": "webpack --mode=production --node-env=production",
Expand All @@ -26,6 +26,8 @@
"web3": "^1.7.5"
},
"devDependencies": {
"@sentry/types": "^7.12.1",
"@types/elliptic": "^6.4.14",
"@types/jest": "^28.1.6",
"@types/node": "^18.7.6",
"@types/webpack": "^5.28.0",
Expand Down
8 changes: 8 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
export { Client as THXClient } from './client';
export { default as TorusManager } from './managers/TorusManager';
export { default as CredentialManager } from './managers/CredentialManager';
export { default as ERC20Manager } from './managers/ERC20Manager';
export { default as ERC721Manager } from './managers/ERC721Manager';
export { default as RequestManager } from './managers/RequestManager';
export { default as AccountManager } from './managers/AccountManager';
export { default as SessionManager } from './managers/SessionManager';
export { default as UserManager } from './managers/UserManager';
3 changes: 2 additions & 1 deletion src/managers/UserManager.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import THXClient from '../client/Client';
import { UserManager as BaseUserManager } from 'oidc-client-ts';

import THXClient from '../client/Client';
import CacheManager from './CacheManager';

export default class UserManager extends CacheManager<BaseUserManager> {
Expand Down
16 changes: 16 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
// match output dir to input dir. e.g. dist/index instead of dist/src/index
"rootDir": "./src",
// "outDir": "./lib",
// output .d.ts declaration files for consumers
"declaration": true,
"declarationMap": true,
"noEmit": false,
"emitDeclarationOnly": true,
"tsBuildInfoFile": "tsconfig.build.tsbuildinfo"
},
"files": ["src/index.ts"],
"include": []
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* Visit https://aka.ms/tsconfig to read more about this file */

/* Projects */
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
"incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
Expand Down