Skip to content

Commit

Permalink
fix: fix type import for ESM
Browse files Browse the repository at this point in the history
Signed-off-by: Raymond Feng <[email protected]>
  • Loading branch information
raymondfeng committed Dec 26, 2023
1 parent 9dc5a0f commit 63c99a1
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion examples/ethers-v5-nodenext/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@collabland/typechain-ethers-v5": "workspace:^11.1.2",
"@types/bn.js": "^5.1.0",
"ts-node": "^10.7.0",
"@collabland/typechain": "workspace:^8.3.2",
"@collabland/typechain": "workspace:^8.3.2",
"typescript": "^4.9.5"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/ethers-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@collabland/typechain-ethers-v5": "workspace:^11.1.2",
"@types/bn.js": "^5.1.0",
"ts-node": "^10.7.0",
"@collabland/typechain": "workspace:^8.3.2",
"@collabland/typechain": "workspace:^8.3.2",
"typescript": "^4.9.5"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/ethers-v6-nodenext/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@collabland/typechain-ethers-v6": "workspace:^0.5.1",
"@types/bn.js": "^5.1.0",
"ts-node": "^10.7.0",
"@collabland/typechain": "workspace:^8.3.2",
"@collabland/typechain": "workspace:^8.3.2",
"typescript": "^4.7"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/ethers-v6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@collabland/typechain-ethers-v6": "workspace:^0.5.1",
"@types/bn.js": "^5.1.0",
"ts-node": "^10.7.0",
"@collabland/typechain": "workspace:^8.3.2",
"@collabland/typechain": "workspace:^8.3.2",
"typescript": "^4.7"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/hardhat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@ethersproject/abi": "5.4.0",
"hardhat": "^2.9.9",
"ts-node": "^10.7.0",
"@collabland/typechain": "workspace:^8.3.2",
"@collabland/typechain": "workspace:^8.3.2",
"typescript": "^4.9.5"
},
"dependencies": {}
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"ethers": "~6.3.0",
"hardhat": "^2.9.9",
"test-utils": "1.0.0",
"@collabland/typechain": "workspace:^8.3.2"
"@collabland/typechain": "workspace:^8.3.2"
}
}
4 changes: 2 additions & 2 deletions packages/hardhat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
"ethers": "^6.1.0",
"hardhat": "^2.9.9",
"rimraf": "^3.0.2",
"@collabland/typechain": "workspace:^8.3.2",
"@collabland/typechain": "workspace:^8.3.2",
"typescript": "^4"
},
"peerDependencies": {
"hardhat": "^2.9.9",
"@collabland/typechain": "workspace:^8.3.2"
"@collabland/typechain": "workspace:^8.3.2"
}
}
2 changes: 1 addition & 1 deletion packages/target-ethers-v5-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"ganache": "^7.8.0",
"test-utils": "1.0.0",
"@collabland/typechain": "workspace:^8.3.2"
"@collabland/typechain": "workspace:^8.3.2"
},
"dependencies": {
"@ethersproject/abi": "^5.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/target-ethers-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@ethersproject/abi": "^5.0.0",
"@ethersproject/providers": "^5.0.0",
"ethers": "^5.1.3",
"@collabland/typechain": "workspace:^8.3.2",
"@collabland/typechain": "workspace:^8.3.2",
"typescript": ">=4.3.0"
},
"devDependencies": {
Expand All @@ -46,7 +46,7 @@
"@types/lodash": "^4.14.139",
"ethers": "^5.1.3",
"test-utils": "1.0.0",
"@collabland/typechain": "workspace:^8.3.2",
"@collabland/typechain": "workspace:^8.3.2",
"typescript": ">=4.3.0",
"@types/proxyquire": "^1.3.28",
"proxyquire": "^2.1.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/target-ethers-v6-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"ganache": "^7.8.0",
"test-utils": "1.0.0",
"@collabland/typechain": "workspace:^8.3.2"
"@collabland/typechain": "workspace:^8.3.2"
},
"dependencies": {
"ethers": "6.1.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/target-ethers-v6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"peerDependencies": {
"ethers": "6.x",
"@collabland/typechain": "workspace:^8.3.2",
"@collabland/typechain": "workspace:^8.3.2",
"typescript": ">=4.7.0"
},
"devDependencies": {
Expand All @@ -43,7 +43,7 @@
"ethers": "6.1.0",
"proxyquire": "^2.1.3",
"test-utils": "1.0.0",
"@collabland/typechain": "workspace:^8.3.2",
"@collabland/typechain": "workspace:^8.3.2",
"typescript": ">=4.7.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/test-e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"fs-extra": "^9.1.0",
"@types/fs-extra": "^9.0.7",
"@collabland/typechain": "workspace:^8.3.2",
"@collabland/typechain": "workspace:^8.3.2",
"@collabland/typechain-ethers-v5": "workspace:^11.1.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/typechain/src/codegen/createBarrelFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function createBarrelFiles(

if (typeOnly)
return [
`import type * as ${namespaceIdentifier} from './${p}';`,
`import type * as ${namespaceIdentifier} from './${p}/index${moduleSuffix}';`,
`export type { ${namespaceIdentifier} };`,
].join('\n')

Expand Down

0 comments on commit 63c99a1

Please sign in to comment.