Skip to content

Commit

Permalink
fix: use ts files for type imports, fixes vscode typing
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás Migone <[email protected]>
  • Loading branch information
tmigone committed Dec 22, 2023
1 parent d921301 commit 6c13b51
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"postinstall": "husky install",
"clean": "yarn workspaces foreach --all --parallel --verbose run clean",
"clean:all": "yarn clean && rm -rf node_modules packages/*/node_modules",
"build": "yarn workspaces foreach --all --verbose run build",
"lint": "yarn workspaces foreach --all --parallel --verbose run lint",
"test": "yarn workspaces foreach --all --parallel --verbose --interlaced run test"
Expand Down
12 changes: 9 additions & 3 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@
"version": "0.3.0",
"description": "TypeScript based SDK to interact with The Graph protocol contracts",
"main": "build/index.js",
"types": "build/index.d.ts",
"types": "src/index.ts",
"exports": {
".": "./build/index.js",
"./gre": "./build/gre/index.js"
".": {
"default": "./build/index.js",
"types": "./src/index.ts"
},
"./gre": {
"default": "./build/gre/index.js",
"types": "./src/gre/index.ts"
}
},
"repository": "[email protected]:graphprotocol/sdk.git",
"author": "[email protected]",
Expand Down

0 comments on commit 6c13b51

Please sign in to comment.