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"], }, };