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"; }