From 34f42c29913a362c32259ee0d67595ce23f912f7 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Mon, 16 Jul 2018 13:24:02 -0600 Subject: [PATCH] feat: support graphql schema type compilation for watcher --- config/watcher.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/watcher.ts b/config/watcher.ts index b59928503..277ec34ec 100644 --- a/config/watcher.ts +++ b/config/watcher.ts @@ -8,7 +8,7 @@ import { const config: Config = { rootDir: path.resolve(__dirname, "../src"), watchers: { - compileGraphQLTypes: { + compileSchema: { paths: ["core/server/**/*.graphql"], executor: new CommandExecutor("npm run compile:schema", { runOnInit: true, @@ -53,7 +53,7 @@ const config: Config = { }, defaultSet: "client", sets: { - server: ["runServer"], + server: ["compileSchema", "runServer"], client: [ "runServer", "runWebpackDevServer", @@ -61,7 +61,7 @@ const config: Config = { "compileRelayStream", ], docz: ["runDocz", "compileCSSTypes"], - compile: ["compileCSSTypes", "compileRelayStream"], + compile: ["compileSchema", "compileCSSTypes", "compileRelayStream"], }, };