Skip to content

Commit

Permalink
fix: tsconfig declaration file for types package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
gitpusha committed Sep 7, 2022
1 parent 40d8e0b commit 5ef9816
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.4",
"description": "Solidity and test helpers for implementing GelatoRelayContext",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"files": [
"contracts/GelatoRelayContext.sol",
"contracts/constants",
Expand Down
7 changes: 5 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
"moduleResolution": "node",
"resolveJsonModule": true,
"typeRoots": ["./node_modules/@types"],
"outDir": "dist"
"outDir": "dist",

// generate .d.ts files for package.json types field
"declaration": true
},
"files": ["hardhat.config.ts"],
"include": ["deploy", "test", "typechain", "src", "src/index.ts"],
"include": ["deploy", "test", "typechain", "src"],
"exclude": ["node_modules"]
}

0 comments on commit 5ef9816

Please sign in to comment.