From 82e628a11185b2af27d2cd53aa4619b413ee0e6a Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sun, 28 Apr 2024 16:10:16 +0200 Subject: [PATCH] fix(cli): improve support for frontend scripts cli sync --- cli/sync.ts | 1 + cli/types.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/sync.ts b/cli/sync.ts index 32e87cead8..43e11ebcd8 100644 --- a/cli/sync.ts +++ b/cli/sync.ts @@ -470,6 +470,7 @@ export async function elementsToMap( "sql", "gql", "ps1", + "js", "lock", ].includes(path.split(".").pop() ?? "") ) diff --git a/cli/types.ts b/cli/types.ts index ef547668c8..34e77d5e61 100644 --- a/cli/types.ts +++ b/cli/types.ts @@ -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"; }