File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
examples/ethers-v5-nodenext/types/ethers-contracts
packages/typechain/src/codegen Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' typechain ' : patch
3
+ ---
4
+
5
+ Add the node16 moduleSuffix also to directories (including the ` index ` filename) as in ESM directory root files have to
6
+ be explicitly stated (including their file extension).
Original file line number Diff line number Diff line change 2
2
/* tslint:disable */
3
3
/* eslint-disable */
4
4
export type { Dai } from "./Dai.js" ;
5
- export * as factories from "./factories" ;
5
+ export * as factories from "./factories/index.js " ;
6
6
export { Dai__factory } from "./factories/Dai__factory.js" ;
Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ export function createBarrelFiles(
59
59
`export type { ${ namespaceIdentifier } };` ,
60
60
] . join ( '\n' )
61
61
62
+ if ( moduleSuffix ) {
63
+ return `export * as ${ namespaceIdentifier } from './${ p } /index${ moduleSuffix } ';`
64
+ }
62
65
return `export * as ${ namespaceIdentifier } from './${ p } ';`
63
66
} )
64
67
. join ( '\n' )
You can’t perform that action at this time.
0 commit comments