fix(cli): recognize branch-specific folder files in getTypeStrFromPath

The function only matched `folder.meta` but not branch-specific variants
like `folder.main.meta` or `folder.dev.meta`. This caused branch-specific
folder files to be skipped during sync operations with --branch flag.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-01-20 19:08:15 +00:00
co-authored by Claude Opus 4.5
parent cd061356f8
commit 5f4b4eb845
+2 -1
View File
@@ -289,7 +289,8 @@ export function getTypeStrFromPath(
) {
return "script";
}
if (parsed.name === "folder.meta") {
// Match folder.meta (base) or folder.<branch>.meta (branch-specific)
if (parsed.name === "folder.meta" || /^folder\.[^.]+\.meta$/.test(parsed.name)) {
return "folder";
}