Skip to content

Commit f667be0

Browse files
authored
Merge pull request #77 from graphql-editor/improvingDevCommand
on command dev refresh server when .graphql file is edited
2 parents 9d5fb36 + 558a6af commit f667be0

File tree

1 file changed

+1
-1
lines changed
  • packages/cli/src/commands/common

1 file changed

+1
-1
lines changed

packages/cli/src/commands/common/dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const CommandDev = async () => {
2626
});
2727
const fileServer = fs.watch(process.cwd(), (e, f) => {
2828
if (changingFile) return;
29-
if (f === STUCCO_FILE || f.startsWith('.env')) {
29+
if (f === STUCCO_FILE || f.startsWith('.env') || f.endsWith('.graphql')) {
3030
const envFile = getEnvFile();
3131
changingFile = true;
3232
onCreateStucco({

0 commit comments

Comments
 (0)