Skip to content

Commit d1ec756

Browse files
committed
fix: refine condition in generateImportsForBuilder to check for schemas
1 parent 2609ba1 commit d1ec756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/writers/generate-imports-for-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function generateImportsForBuilder(
1111
const isZodSchemaOutput =
1212
isObject(output.schemas) && output.schemas.type === 'zod';
1313

14-
if (!output.indexFiles) {
14+
if (!output.indexFiles && !output.schemas) {
1515
return uniqueBy(imports, (x) => x.name).map((i) => {
1616
const baseName = i.schemaName || i.name;
1717
const name = conventionName(baseName, output.namingConvention);

0 commit comments

Comments
 (0)