fix(cli): improve support for frontend scripts cli sync

This commit is contained in:
Ruben Fiszel
2024-04-28 16:10:16 +02:00
parent c98dbb1fc4
commit 82e628a111
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -470,6 +470,7 @@ export async function elementsToMap(
"sql",
"gql",
"ps1",
"js",
"lock",
].includes(path.split(".").pop() ?? "")
)
+2 -1
View File
@@ -183,7 +183,8 @@ export function getTypeStrFromPath(
parsed.ext == ".py" ||
parsed.ext == ".sql" ||
parsed.ext == ".gql" ||
parsed.ext == ".ps1"
parsed.ext == ".ps1" ||
parsed.ext == ".js"
) {
return "script";
}