diff --git a/cli/sync.ts b/cli/sync.ts index 70b1e51a13..cdf326a2e7 100644 --- a/cli/sync.ts +++ b/cli/sync.ts @@ -306,7 +306,7 @@ async function elementsToMap( if (json && entry.path.endsWith(".yaml")) continue; if (!json && entry.path.endsWith(".json")) continue; if ( - !["json", "yaml", "go", "sh", "ts", "py", "sql"].includes( + !["json", "yaml", "go", "sh", "ts", "py", "sql", "gql"].includes( entry.path.split(".").pop() ?? "" ) ) diff --git a/cli/types.ts b/cli/types.ts index 344294507a..acdf5dde76 100644 --- a/cli/types.ts +++ b/cli/types.ts @@ -159,7 +159,8 @@ export function getTypeStrFromPath( parsed.ext == ".ts" || parsed.ext == ".sh" || parsed.ext == ".py" || - parsed.ext == ".sql" + parsed.ext == ".sql" || + parsed.ext == ".gql" ) { return "script"; }