Skip to content

Commit a113f2d

Browse files
authored
fix(types): Proper 2.0 Types (#215)
* Fix Type Declarations * Formattooorrr
1 parent 933a518 commit a113f2d

File tree

3 files changed

+63
-15
lines changed

3 files changed

+63
-15
lines changed

package.json

Lines changed: 48 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,63 @@
33
"version": "2.0.0",
44
"description": "A Helius Node.js SDK for building the future of Solana",
55
"type": "module",
6-
"main": "./dist/src/index.js",
7-
"types": "./dist/src/index.d.ts",
86
"exports": {
97
".": {
10-
"import": "./dist/rpc/index.js"
8+
"types": "./dist/src/rpc/index.d.ts",
9+
"import": "./dist/src/rpc/index.js"
10+
},
11+
"./rpc": {
12+
"types": "./dist/src/rpc/index.d.ts",
13+
"import": "./dist/src/rpc/index.js"
14+
},
15+
"./rpc/eager": {
16+
"types": "./dist/src/rpc/createHelius.eager.d.ts",
17+
"import": "./dist/src/rpc/createHelius.eager.js"
18+
},
19+
"./rpc/methods/*": {
20+
"types": "./dist/src/rpc/methods/*.d.ts",
21+
"import": "./dist/src/rpc/methods/*.js"
22+
},
23+
"./transactions/*": {
24+
"types": "./dist/src/transactions/*.d.ts",
25+
"import": "./dist/src/transactions/*.js"
26+
},
27+
"./rpc/wrapAutoSend": {
28+
"types": "./dist/src/rpc/wrapAutoSend.d.ts",
29+
"import": "./dist/src/rpc/wrapAutoSend.js"
30+
},
31+
"./webhooks/*": {
32+
"types": "./dist/src/webhooks/*.d.ts",
33+
"import": "./dist/src/webhooks/*.js"
34+
},
35+
"./enhanced/*": {
36+
"types": "./dist/src/enhanced/*.d.ts",
37+
"import": "./dist/src/enhanced/*.js"
38+
},
39+
"./staking/*": {
40+
"types": "./dist/src/staking/*.d.ts",
41+
"import": "./dist/src/staking/*.js"
42+
},
43+
"./websockets/*": {
44+
"types": "./dist/src/websockets/*.d.ts",
45+
"import": "./dist/src/websockets/*.js"
46+
},
47+
"./zk/*": {
48+
"types": "./dist/src/zk/*.d.ts",
49+
"import": "./dist/src/zk/*.js"
50+
},
51+
"./types/*": {
52+
"types": "./dist/src/types/*.d.ts",
53+
"import": "./dist/src/types/*.js"
1154
},
12-
"./rpc": "./dist/rpc/index.js",
13-
"./rpc/eager": "./dist/rpc/createHelius.eager.js",
14-
"./rpc/methods/*": "./dist/rpc/methods/*.js",
15-
"./transactions/*": "./dist/transactions/*.js",
16-
"./rpc/wrapAutoSend": "./dist/rpc/wrapAutoSend.js",
17-
"./webhooks/*": "./dist/webhooks/*.js",
18-
"./enhanced/*": "./dist/enhanced/*.js",
19-
"./staking/*": "./dist/staking/*.js",
20-
"./websockets/*": "./dist/websockets/*.js",
21-
"./zk/*": "./dist/zk/*.js",
22-
"./types/*": "./dist/types/*.js",
2355
"./package.json": "./package.json"
2456
},
2557
"sideEffects": false,
2658
"scripts": {
2759
"test": "jest",
2860
"test:watch": "jest --watch",
2961
"test:coverage": "jest --coverage",
30-
"build": "rollup -c",
62+
"build": "rimraf dist && rollup -c",
3163
"prepare": "pnpm run build",
3264
"lint": "eslint --ext .ts,.tsx src",
3365
"format": "prettier --write 'src/**/*.{js,ts,json,md}'",
@@ -71,6 +103,7 @@
71103
"glob": "^11.0.3",
72104
"jest": "^30.0.4",
73105
"prettier": "^3.6.2",
106+
"rimraf": "^6.0.1",
74107
"rollup": "^4.44.2",
75108
"ts-jest": "^29.4.0",
76109
"ts-node": "^10.9.2",

pnpm-lock.yaml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/types/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
export * from "./enums";
22
export * from "./types";
3+
export * from "./das";
4+
export * from "./webhooks";

0 commit comments

Comments
 (0)