Skip to content

Commit 14a3753

Browse files
authored
fix schema building in watch mode
1 parent 38fd283 commit 14a3753

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/pylon-dev/src/builder/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ export {SchemaBuilder}
1818
export const build = async (options: BuildOptions) => {
1919
const bundler = new Bundler(options.sfiFilePath, options.outputFilePath)
2020

21-
const builder = new SchemaBuilder(
22-
path.join(process.cwd(), options.sfiFilePath)
23-
)
24-
2521
return await bundler.build({
2622
getBuildDefs: () => {
23+
const builder = new SchemaBuilder(
24+
path.join(process.cwd(), options.sfiFilePath)
25+
)
26+
2727
const built = builder.build()
2828

2929
const typeDefs = built.typeDefs

0 commit comments

Comments
 (0)