fix: powershell local sync (#2489)

* fix: graphql local sync

* fix: powershell local sync
This commit is contained in:
HugoCasa
2023-10-23 15:37:24 +02:00
committed by GitHub
parent 5163c886ca
commit ea02e3120a
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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", "gql"].includes(
!["json", "yaml", "go", "sh", "ts", "py", "sql", "gql", "ps1"].includes(
entry.path.split(".").pop() ?? ""
)
)
+2 -1
View File
@@ -160,7 +160,8 @@ export function getTypeStrFromPath(
parsed.ext == ".sh" ||
parsed.ext == ".py" ||
parsed.ext == ".sql" ||
parsed.ext == ".gql"
parsed.ext == ".gql" ||
parsed.ext == ".ps1"
) {
return "script";
}