Skip to content

Commit

Permalink
improve contract-types package
Browse files Browse the repository at this point in the history
  • Loading branch information
vgeddes committed Jul 28, 2023
1 parent 523fef9 commit 21ecbc1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion core/packages/contract-types/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
dist
types/
src/
tsconfig.tsbuildinfo
4 changes: 2 additions & 2 deletions core/packages/contract-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"directory": "core/packages/contract-types"
},
"main": "dist/index.js",
"types": "types/index.ts",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"typechain": "rm -rf types && npx typechain --target ethers-v5 '../contracts/out/**/!(*.t|test).sol/!(*.abi).json' --out-dir types"
"typechain": "typechain --target ethers-v5 '../../../contracts/out/?(IGateway.sol|BeefyClient.sol)/!(*.abi).json' --out-dir src"
},
"devDependencies": {
"@types/node": "^18.13.0",
Expand Down
4 changes: 2 additions & 2 deletions core/packages/contract-types/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"declaration": true,
"declarationMap": true,
"baseUrl": ".",
"rootDir": "types",
"rootDir": "src",
"noEmitOnError": true,
"skipLibCheck": true,
"allowJs": true
Expand All @@ -21,6 +21,6 @@
"require": ["tsconfig-paths/register"]
},
"exclude": ["node_modules", "dist"],
"include": ["types/**/*.ts"],
"include": ["src/**/*.ts"],
"references": []
}

0 comments on commit 21ecbc1

Please sign in to comment.