diff --git a/packages/typechain/src/codegen/createBarrelFiles.ts b/packages/typechain/src/codegen/createBarrelFiles.ts index f1e764db..e2dd7131 100644 --- a/packages/typechain/src/codegen/createBarrelFiles.ts +++ b/packages/typechain/src/codegen/createBarrelFiles.ts @@ -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')