Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use ts files for type imports, fixes vscode typing #898

Merged
merged 1 commit into from
Dec 22, 2023
Merged
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
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": "git@github.com:graphprotocol/sdk.git",
"author": "tomas@edgeandnode.com",
Expand Down