Skip to content

Commit 7782c48

Browse files
committed
fix: support graphql-import for prepare-binding
1 parent 65f21bb commit 7782c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prepare.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class Prepare {
145145
const outputPath: string = this.determineBindingOutputPath(extension)
146146
const schema: string = this.determineInputSchema(schemaPath)
147147

148-
const schemaContents: string = fs.readFileSync(schema, 'utf-8')
148+
const schemaContents: string = importSchema(schema)
149149
const finalSchema: string = generateCode(schemaContents, generator)
150150
fs.writeFileSync(outputPath, finalSchema, { flag: 'w' })
151151

0 commit comments

Comments
 (0)