Skip to content

Commit 1ba7a98

Browse files
authored
fix: resolve ESM build and missing Types exports (#138)
* chore: add ES module support for browser compatibility * chore: apply suggestion * fix: resolve ESM build and missing Types exports in v0.9.6
1 parent c669bb8 commit 1ba7a98

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@trufnetwork/kwil-js",
3-
"version": "0.9.5",
3+
"version": "0.9.7",
44
"description": "",
55
"main": "./dist/index.js",
66
"module": "./dist-esm/index.js",

src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ import Client from './api_client/client';
3636
import { AuthSuccess as _AuthSuccess, LogoutResponse as _LogoutResponse} from './core/auth';
3737
import { AuthBody as _AuthBody } from './core/signature';
3838
import { TransferBody as _TransferBody } from './funder/funding_types';
39-
import { Config as _Config } from './api_client/config';
39+
import { Config as _Config, KwilConfig as _KwilConfig } from './api_client/config';
40+
import { EthSigner as _EthSigner } from './core/signature';
41+
import { Kwil as _Kwil } from './client/kwil';
4042

4143
namespace Types {
4244
export type TxReceipt = _TxReceipt;
@@ -57,6 +59,9 @@ namespace Types {
5759
export type LogoutResponse<T extends EnvironmentType> = _LogoutResponse<T>;
5860
export type TransferBody = _TransferBody;
5961
export type Config = _Config
62+
export type KwilConfig = _KwilConfig
63+
export type EthSigner = _EthSigner
64+
export type Kwil<T extends EnvironmentType = EnvironmentType> = _Kwil<T>
6065
export type NamedParams = _NamedParams
6166
export type PositionalParams = _PositionalParams
6267
export type ValueType = _ValueType

tsconfig.esm.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"target": "ES2021",
5-
"module": "ES2020",
6-
"moduleResolution": "node",
5+
"module": "ESNext",
6+
"moduleResolution": "NodeNext",
77
"outDir": "./dist-esm",
88
"rootDir": "./src",
99
"lib": ["DOM", "DOM.Iterable", "ES2020"],

0 commit comments

Comments
 (0)