@getpara/wagmi-v2-connector 3.19.0 → 3.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ParaEIP1193Provider.d.ts +1 -1
- package/dist/paraConnector.d.ts +4 -305
- package/dist/paraConnector.js +1 -2
- package/package.json +11 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EIP1474Methods, EIP1193Provider, EIP1193RequestFn, Transport } from 'viem';
|
|
2
2
|
import { EventEmitter } from 'eventemitter3';
|
|
3
|
-
import { Chain } from '
|
|
3
|
+
import type { Chain } from 'viem';
|
|
4
4
|
import ParaWeb from '@getpara/web-sdk';
|
|
5
5
|
interface ParaEIP1193ProviderOpts {
|
|
6
6
|
para: ParaWeb;
|
package/dist/paraConnector.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { type CreateConnectorFn, type InjectedParameters } from '@wagmi/core';
|
|
2
|
+
import type { Chain, EIP1193Provider, Transport } from 'viem';
|
|
3
3
|
import ParaWeb from '@getpara/web-sdk';
|
|
4
|
-
import { Transport } from 'viem';
|
|
5
4
|
export interface ParaConnectorOpts {
|
|
6
5
|
/**
|
|
7
6
|
* @deprecated Use `chains` in the wagmi config instead.
|
|
@@ -21,305 +20,5 @@ export declare const createParaConnector: ({ para, chains: _chains, disableModal
|
|
|
21
20
|
renderModal?: (onClose: () => void) => {
|
|
22
21
|
openModal: () => void;
|
|
23
22
|
};
|
|
24
|
-
}) =>
|
|
25
|
-
|
|
26
|
-
emitter: import("@wagmi/core/internal").Emitter<import("wagmi").ConnectorEventMap>;
|
|
27
|
-
storage?: {
|
|
28
|
-
key: string;
|
|
29
|
-
getItem: <key_1 extends string, value extends (import("@wagmi/core").StorageItemMap & Record<string, unknown>)[key_1], defaultValue_1 extends value>(key: key_1, defaultValue?: defaultValue_1) => (defaultValue_1 extends null ? value : value) | Promise<defaultValue_1 extends null ? value : value>;
|
|
30
|
-
setItem: <key_1 extends string, value_1 extends (import("@wagmi/core").StorageItemMap & Record<string, unknown>)[key_1]>(key: key_1, value: value_1) => void | Promise<void>;
|
|
31
|
-
removeItem: (key: string) => void | Promise<void>;
|
|
32
|
-
};
|
|
33
|
-
transports?: Record<number, import("wagmi").Transport> | undefined;
|
|
34
|
-
}) => {
|
|
35
|
-
type: string;
|
|
36
|
-
name: string;
|
|
37
|
-
icon: string;
|
|
38
|
-
disconnect: () => Promise<void>;
|
|
39
|
-
id: string;
|
|
40
|
-
rdns?: string | readonly string[] | undefined;
|
|
41
|
-
supportsSimulation?: boolean | undefined;
|
|
42
|
-
setup?: () => Promise<void>;
|
|
43
|
-
connect: (parameters?: {
|
|
44
|
-
chainId?: number | undefined;
|
|
45
|
-
isReconnecting?: boolean | undefined;
|
|
46
|
-
} | undefined) => Promise<{
|
|
47
|
-
accounts: readonly import("viem").Address[];
|
|
48
|
-
chainId: number;
|
|
49
|
-
}>;
|
|
50
|
-
getAccounts: () => Promise<readonly import("viem").Address[]>;
|
|
51
|
-
getChainId: () => Promise<number>;
|
|
52
|
-
getProvider: (parameters?: {
|
|
53
|
-
chainId?: number | undefined;
|
|
54
|
-
} | undefined) => Promise<{
|
|
55
|
-
on: <event extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
|
|
56
|
-
removeListener: <event extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
|
|
57
|
-
request: import("viem").EIP1193RequestFn<import("viem").EIP1474Methods>;
|
|
58
|
-
isApexWallet?: true | undefined;
|
|
59
|
-
isAvalanche?: true | undefined;
|
|
60
|
-
isBackpack?: true | undefined;
|
|
61
|
-
isBifrost?: true | undefined;
|
|
62
|
-
isBitKeep?: true | undefined;
|
|
63
|
-
isBitski?: true | undefined;
|
|
64
|
-
isBlockWallet?: true | undefined;
|
|
65
|
-
isBraveWallet?: true | undefined;
|
|
66
|
-
isCoinbaseWallet?: true | undefined;
|
|
67
|
-
isDawn?: true | undefined;
|
|
68
|
-
isEnkrypt?: true | undefined;
|
|
69
|
-
isExodus?: true | undefined;
|
|
70
|
-
isFrame?: true | undefined;
|
|
71
|
-
isFrontier?: true | undefined;
|
|
72
|
-
isGamestop?: true | undefined;
|
|
73
|
-
isHyperPay?: true | undefined;
|
|
74
|
-
isImToken?: true | undefined;
|
|
75
|
-
isKuCoinWallet?: true | undefined;
|
|
76
|
-
isMathWallet?: true | undefined;
|
|
77
|
-
isMetaMask?: true | undefined;
|
|
78
|
-
isOkxWallet?: true | undefined;
|
|
79
|
-
isOKExWallet?: true | undefined;
|
|
80
|
-
isOneInchAndroidWallet?: true | undefined;
|
|
81
|
-
isOneInchIOSWallet?: true | undefined;
|
|
82
|
-
isOpera?: true | undefined;
|
|
83
|
-
isPhantom?: true | undefined;
|
|
84
|
-
isPortal?: true | undefined;
|
|
85
|
-
isRabby?: true | undefined;
|
|
86
|
-
isRainbow?: true | undefined;
|
|
87
|
-
isStatus?: true | undefined;
|
|
88
|
-
isTally?: true | undefined;
|
|
89
|
-
isTokenPocket?: true | undefined;
|
|
90
|
-
isTokenary?: true | undefined;
|
|
91
|
-
isTrust?: true | undefined;
|
|
92
|
-
isTrustWallet?: true | undefined;
|
|
93
|
-
isUniswapWallet?: true | undefined;
|
|
94
|
-
isXDEFI?: true | undefined;
|
|
95
|
-
isZerion?: true | undefined;
|
|
96
|
-
providers?: {
|
|
97
|
-
on: <event extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
|
|
98
|
-
removeListener: <event extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
|
|
99
|
-
request: import("viem").EIP1193RequestFn<import("viem").EIP1474Methods>;
|
|
100
|
-
isApexWallet?: true;
|
|
101
|
-
isAvalanche?: true;
|
|
102
|
-
isBackpack?: true;
|
|
103
|
-
isBifrost?: true;
|
|
104
|
-
isBitKeep?: true;
|
|
105
|
-
isBitski?: true;
|
|
106
|
-
isBlockWallet?: true;
|
|
107
|
-
isBraveWallet?: true;
|
|
108
|
-
isCoinbaseWallet?: true;
|
|
109
|
-
isDawn?: true;
|
|
110
|
-
isEnkrypt?: true;
|
|
111
|
-
isExodus?: true;
|
|
112
|
-
isFrame?: true;
|
|
113
|
-
isFrontier?: true;
|
|
114
|
-
isGamestop?: true;
|
|
115
|
-
isHyperPay?: true;
|
|
116
|
-
isImToken?: true;
|
|
117
|
-
isKuCoinWallet?: true;
|
|
118
|
-
isMathWallet?: true;
|
|
119
|
-
isMetaMask?: true;
|
|
120
|
-
isOkxWallet?: true;
|
|
121
|
-
isOKExWallet?: true;
|
|
122
|
-
isOneInchAndroidWallet?: true;
|
|
123
|
-
isOneInchIOSWallet?: true;
|
|
124
|
-
isOpera?: true;
|
|
125
|
-
isPhantom?: true;
|
|
126
|
-
isPortal?: true;
|
|
127
|
-
isRabby?: true;
|
|
128
|
-
isRainbow?: true;
|
|
129
|
-
isStatus?: true;
|
|
130
|
-
isTally?: true;
|
|
131
|
-
isTokenPocket?: true;
|
|
132
|
-
isTokenary?: true;
|
|
133
|
-
isTrust?: true;
|
|
134
|
-
isTrustWallet?: true;
|
|
135
|
-
isUniswapWallet?: true;
|
|
136
|
-
isXDEFI?: true;
|
|
137
|
-
isZerion?: true;
|
|
138
|
-
providers?: /*elided*/ any[];
|
|
139
|
-
_events?: {
|
|
140
|
-
connect?: (() => void) | undefined;
|
|
141
|
-
} | undefined;
|
|
142
|
-
_state?: {
|
|
143
|
-
accounts?: string[];
|
|
144
|
-
initialized?: boolean;
|
|
145
|
-
isConnected?: boolean;
|
|
146
|
-
isPermanentlyDisconnected?: boolean;
|
|
147
|
-
isUnlocked?: boolean;
|
|
148
|
-
} | undefined;
|
|
149
|
-
}[];
|
|
150
|
-
_events?: {
|
|
151
|
-
connect?: (() => void) | undefined;
|
|
152
|
-
} | undefined;
|
|
153
|
-
_state?: {
|
|
154
|
-
accounts?: string[];
|
|
155
|
-
initialized?: boolean;
|
|
156
|
-
isConnected?: boolean;
|
|
157
|
-
isPermanentlyDisconnected?: boolean;
|
|
158
|
-
isUnlocked?: boolean;
|
|
159
|
-
} | undefined;
|
|
160
|
-
}>;
|
|
161
|
-
getClient?: (parameters?: {
|
|
162
|
-
chainId?: number | undefined;
|
|
163
|
-
} | undefined) => Promise<import("viem").Client>;
|
|
164
|
-
isAuthorized: () => Promise<boolean>;
|
|
165
|
-
switchChain?: (parameters: import("@wagmi/core/internal").Compute<{
|
|
166
|
-
addEthereumChainParameter?: import("@wagmi/core/internal").ExactPartial<import("@wagmi/core/internal").Omit<import("viem").AddEthereumChainParameter, "chainId">> | undefined;
|
|
167
|
-
chainId: number;
|
|
168
|
-
}>) => Promise<Chain>;
|
|
169
|
-
onAccountsChanged: (accounts: string[]) => void;
|
|
170
|
-
onChainChanged: (chainId: string) => void;
|
|
171
|
-
onConnect: ((connectInfo: import("viem").ProviderConnectInfo) => void) & ((connectInfo: import("viem").ProviderConnectInfo) => void);
|
|
172
|
-
onDisconnect: (error?: Error | undefined) => void;
|
|
173
|
-
onMessage?: (message: import("viem").ProviderMessage) => void;
|
|
174
|
-
};
|
|
175
|
-
export declare const paraConnector: (opts: ParaConnectorOpts) => (config: {
|
|
176
|
-
chains: readonly [Chain, ...Chain[]];
|
|
177
|
-
emitter: import("@wagmi/core/internal").Emitter<import("wagmi").ConnectorEventMap>;
|
|
178
|
-
storage?: {
|
|
179
|
-
key: string;
|
|
180
|
-
getItem: <key_1 extends string, value extends (import("@wagmi/core").StorageItemMap & Record<string, unknown>)[key_1], defaultValue_1 extends value>(key: key_1, defaultValue?: defaultValue_1) => (defaultValue_1 extends null ? value : value) | Promise<defaultValue_1 extends null ? value : value>;
|
|
181
|
-
setItem: <key_1 extends string, value_1 extends (import("@wagmi/core").StorageItemMap & Record<string, unknown>)[key_1]>(key: key_1, value: value_1) => void | Promise<void>;
|
|
182
|
-
removeItem: (key: string) => void | Promise<void>;
|
|
183
|
-
};
|
|
184
|
-
transports?: Record<number, import("wagmi").Transport> | undefined;
|
|
185
|
-
}) => {
|
|
186
|
-
type: string;
|
|
187
|
-
name: string;
|
|
188
|
-
icon: string;
|
|
189
|
-
disconnect: () => Promise<void>;
|
|
190
|
-
id: string;
|
|
191
|
-
rdns?: string | readonly string[] | undefined;
|
|
192
|
-
supportsSimulation?: boolean | undefined;
|
|
193
|
-
setup?: () => Promise<void>;
|
|
194
|
-
connect: (parameters?: {
|
|
195
|
-
chainId?: number | undefined;
|
|
196
|
-
isReconnecting?: boolean | undefined;
|
|
197
|
-
} | undefined) => Promise<{
|
|
198
|
-
accounts: readonly import("viem").Address[];
|
|
199
|
-
chainId: number;
|
|
200
|
-
}>;
|
|
201
|
-
getAccounts: () => Promise<readonly import("viem").Address[]>;
|
|
202
|
-
getChainId: () => Promise<number>;
|
|
203
|
-
getProvider: (parameters?: {
|
|
204
|
-
chainId?: number | undefined;
|
|
205
|
-
} | undefined) => Promise<{
|
|
206
|
-
on: <event extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
|
|
207
|
-
removeListener: <event extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
|
|
208
|
-
request: import("viem").EIP1193RequestFn<import("viem").EIP1474Methods>;
|
|
209
|
-
isApexWallet?: true | undefined;
|
|
210
|
-
isAvalanche?: true | undefined;
|
|
211
|
-
isBackpack?: true | undefined;
|
|
212
|
-
isBifrost?: true | undefined;
|
|
213
|
-
isBitKeep?: true | undefined;
|
|
214
|
-
isBitski?: true | undefined;
|
|
215
|
-
isBlockWallet?: true | undefined;
|
|
216
|
-
isBraveWallet?: true | undefined;
|
|
217
|
-
isCoinbaseWallet?: true | undefined;
|
|
218
|
-
isDawn?: true | undefined;
|
|
219
|
-
isEnkrypt?: true | undefined;
|
|
220
|
-
isExodus?: true | undefined;
|
|
221
|
-
isFrame?: true | undefined;
|
|
222
|
-
isFrontier?: true | undefined;
|
|
223
|
-
isGamestop?: true | undefined;
|
|
224
|
-
isHyperPay?: true | undefined;
|
|
225
|
-
isImToken?: true | undefined;
|
|
226
|
-
isKuCoinWallet?: true | undefined;
|
|
227
|
-
isMathWallet?: true | undefined;
|
|
228
|
-
isMetaMask?: true | undefined;
|
|
229
|
-
isOkxWallet?: true | undefined;
|
|
230
|
-
isOKExWallet?: true | undefined;
|
|
231
|
-
isOneInchAndroidWallet?: true | undefined;
|
|
232
|
-
isOneInchIOSWallet?: true | undefined;
|
|
233
|
-
isOpera?: true | undefined;
|
|
234
|
-
isPhantom?: true | undefined;
|
|
235
|
-
isPortal?: true | undefined;
|
|
236
|
-
isRabby?: true | undefined;
|
|
237
|
-
isRainbow?: true | undefined;
|
|
238
|
-
isStatus?: true | undefined;
|
|
239
|
-
isTally?: true | undefined;
|
|
240
|
-
isTokenPocket?: true | undefined;
|
|
241
|
-
isTokenary?: true | undefined;
|
|
242
|
-
isTrust?: true | undefined;
|
|
243
|
-
isTrustWallet?: true | undefined;
|
|
244
|
-
isUniswapWallet?: true | undefined;
|
|
245
|
-
isXDEFI?: true | undefined;
|
|
246
|
-
isZerion?: true | undefined;
|
|
247
|
-
providers?: {
|
|
248
|
-
on: <event extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
|
|
249
|
-
removeListener: <event extends keyof import("viem").EIP1193EventMap>(event: event, listener: import("viem").EIP1193EventMap[event]) => void;
|
|
250
|
-
request: import("viem").EIP1193RequestFn<import("viem").EIP1474Methods>;
|
|
251
|
-
isApexWallet?: true;
|
|
252
|
-
isAvalanche?: true;
|
|
253
|
-
isBackpack?: true;
|
|
254
|
-
isBifrost?: true;
|
|
255
|
-
isBitKeep?: true;
|
|
256
|
-
isBitski?: true;
|
|
257
|
-
isBlockWallet?: true;
|
|
258
|
-
isBraveWallet?: true;
|
|
259
|
-
isCoinbaseWallet?: true;
|
|
260
|
-
isDawn?: true;
|
|
261
|
-
isEnkrypt?: true;
|
|
262
|
-
isExodus?: true;
|
|
263
|
-
isFrame?: true;
|
|
264
|
-
isFrontier?: true;
|
|
265
|
-
isGamestop?: true;
|
|
266
|
-
isHyperPay?: true;
|
|
267
|
-
isImToken?: true;
|
|
268
|
-
isKuCoinWallet?: true;
|
|
269
|
-
isMathWallet?: true;
|
|
270
|
-
isMetaMask?: true;
|
|
271
|
-
isOkxWallet?: true;
|
|
272
|
-
isOKExWallet?: true;
|
|
273
|
-
isOneInchAndroidWallet?: true;
|
|
274
|
-
isOneInchIOSWallet?: true;
|
|
275
|
-
isOpera?: true;
|
|
276
|
-
isPhantom?: true;
|
|
277
|
-
isPortal?: true;
|
|
278
|
-
isRabby?: true;
|
|
279
|
-
isRainbow?: true;
|
|
280
|
-
isStatus?: true;
|
|
281
|
-
isTally?: true;
|
|
282
|
-
isTokenPocket?: true;
|
|
283
|
-
isTokenary?: true;
|
|
284
|
-
isTrust?: true;
|
|
285
|
-
isTrustWallet?: true;
|
|
286
|
-
isUniswapWallet?: true;
|
|
287
|
-
isXDEFI?: true;
|
|
288
|
-
isZerion?: true;
|
|
289
|
-
providers?: /*elided*/ any[];
|
|
290
|
-
_events?: {
|
|
291
|
-
connect?: (() => void) | undefined;
|
|
292
|
-
} | undefined;
|
|
293
|
-
_state?: {
|
|
294
|
-
accounts?: string[];
|
|
295
|
-
initialized?: boolean;
|
|
296
|
-
isConnected?: boolean;
|
|
297
|
-
isPermanentlyDisconnected?: boolean;
|
|
298
|
-
isUnlocked?: boolean;
|
|
299
|
-
} | undefined;
|
|
300
|
-
}[];
|
|
301
|
-
_events?: {
|
|
302
|
-
connect?: (() => void) | undefined;
|
|
303
|
-
} | undefined;
|
|
304
|
-
_state?: {
|
|
305
|
-
accounts?: string[];
|
|
306
|
-
initialized?: boolean;
|
|
307
|
-
isConnected?: boolean;
|
|
308
|
-
isPermanentlyDisconnected?: boolean;
|
|
309
|
-
isUnlocked?: boolean;
|
|
310
|
-
} | undefined;
|
|
311
|
-
}>;
|
|
312
|
-
getClient?: (parameters?: {
|
|
313
|
-
chainId?: number | undefined;
|
|
314
|
-
} | undefined) => Promise<import("viem").Client>;
|
|
315
|
-
isAuthorized: () => Promise<boolean>;
|
|
316
|
-
switchChain?: (parameters: import("@wagmi/core/internal").Compute<{
|
|
317
|
-
addEthereumChainParameter?: import("@wagmi/core/internal").ExactPartial<import("@wagmi/core/internal").Omit<import("viem").AddEthereumChainParameter, "chainId">> | undefined;
|
|
318
|
-
chainId: number;
|
|
319
|
-
}>) => Promise<Chain>;
|
|
320
|
-
onAccountsChanged: (accounts: string[]) => void;
|
|
321
|
-
onChainChanged: (chainId: string) => void;
|
|
322
|
-
onConnect: ((connectInfo: import("viem").ProviderConnectInfo) => void) & ((connectInfo: import("viem").ProviderConnectInfo) => void);
|
|
323
|
-
onDisconnect: (error?: Error | undefined) => void;
|
|
324
|
-
onMessage?: (message: import("viem").ProviderMessage) => void;
|
|
325
|
-
};
|
|
23
|
+
}) => CreateConnectorFn<EIP1193Provider>;
|
|
24
|
+
export declare const paraConnector: (opts: ParaConnectorOpts) => CreateConnectorFn<EIP1193Provider>;
|
package/dist/paraConnector.js
CHANGED
|
@@ -4,9 +4,8 @@ import {
|
|
|
4
4
|
__spreadProps,
|
|
5
5
|
__spreadValues
|
|
6
6
|
} from "./chunk-IV3L3JVM.js";
|
|
7
|
-
import { injected } from "wagmi/
|
|
7
|
+
import { createConnector, injected } from "@wagmi/core";
|
|
8
8
|
import { ParaEIP1193Provider } from "./ParaEIP1193Provider.js";
|
|
9
|
-
import { createConnector } from "wagmi";
|
|
10
9
|
const PARA_ID = "para";
|
|
11
10
|
const PARA_NAME = "Para";
|
|
12
11
|
const PARA_ICON = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjE2IiBoZWlnaHQ9IjIwNCIgdmlld0JveD0iMCAwIDIxNiAyMDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik02MCAwSDE0NEMxODMuNzY0IDAgMjE2IDMyLjIzNTUgMjE2IDcyQzIxNiAxMTEuNzY1IDE4My43NjQgMTQ0IDE0NCAxNDRIOTZDODIuNzQ1MiAxNDQgNzIgMTU0Ljc0NSA3MiAxNjhWMjA0SDBWMTMySDM2QzQ5LjI1NDggMTMyIDYwIDEyMS4yNTUgNjAgMTA4TDYwIDBaIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K";
|
package/package.json
CHANGED
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/wagmi-v2-connector",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.21.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@getpara/viem-v2-integration": "3.
|
|
6
|
-
"@getpara/web-sdk": "3.
|
|
5
|
+
"@getpara/viem-v2-integration": "3.21.0",
|
|
6
|
+
"@getpara/web-sdk": "3.21.0",
|
|
7
|
+
"eventemitter3": "^5.0.1"
|
|
7
8
|
},
|
|
8
9
|
"devDependencies": {
|
|
10
|
+
"@wagmi/core": "^2.16.7",
|
|
9
11
|
"typescript": "^5.8.3",
|
|
10
|
-
"viem": "^2.39.0"
|
|
11
|
-
"wagmi": "^2.14.16"
|
|
12
|
+
"viem": "^2.39.0"
|
|
12
13
|
},
|
|
13
14
|
"files": [
|
|
14
15
|
"dist",
|
|
15
16
|
"package.json"
|
|
16
17
|
],
|
|
17
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "e1ca81fb06f6337aaa7cc1860584b7ba5d1d9ca8",
|
|
18
19
|
"main": "dist/index.js",
|
|
19
20
|
"peerDependencies": {
|
|
20
21
|
"@wagmi/core": "^2.16.7 || ^3.0.0",
|
|
21
|
-
"
|
|
22
|
-
"react-dom": ">=18",
|
|
23
|
-
"viem": "^2.39.0",
|
|
24
|
-
"wagmi": "^2.14.16 || ^3.0.0"
|
|
22
|
+
"viem": "^2.10.0"
|
|
25
23
|
},
|
|
26
24
|
"scripts": {
|
|
27
|
-
"build": "rm -rf dist &&
|
|
28
|
-
"
|
|
25
|
+
"build": "rm -rf dist && node ./scripts/build.mjs && yarn build:types",
|
|
26
|
+
"build:types": "tsc --emitDeclarationOnly",
|
|
27
|
+
"typecheck": "tsc --noEmit"
|
|
29
28
|
},
|
|
30
29
|
"sideEffects": false,
|
|
31
30
|
"type": "module",
|