File tree 1 file changed +7
-6
lines changed
packages/core/src/writers
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,13 @@ export const writeSplitTagsMode = async ({
53
53
upath . relativeSafe ( dirname , getFileInfo ( output . schemas ) . dirname )
54
54
: '../' + filename + '.schemas' ;
55
55
56
- const importsForBuilder = output . schemas
57
- ? uniqBy ( imports , 'name' ) . map ( ( i ) => ( {
58
- exports : [ i ] ,
59
- dependency : upath . join ( relativeSchemasPath , camel ( i . name ) ) ,
60
- } ) )
61
- : [ { exports : imports , dependency : relativeSchemasPath } ] ;
56
+ const importsForBuilder =
57
+ output . schemas && ! output . indexFiles
58
+ ? uniqBy ( imports , 'name' ) . map ( ( i ) => ( {
59
+ exports : [ i ] ,
60
+ dependency : upath . join ( relativeSchemasPath , camel ( i . name ) ) ,
61
+ } ) )
62
+ : [ { exports : imports , dependency : relativeSchemasPath } ] ;
62
63
63
64
implementationData += builder . imports ( {
64
65
client : output . client ,
You can’t perform that action at this time.
0 commit comments