fix(cli): push whole raw app instead of treating frontend files as scripts (#9442)

* fix(cli): push whole raw app instead of treating frontend files as scripts

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* docs(cli): shorten raw-app handleFile comment

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-06-04 07:30:56 +00:00
committed by GitHub
co-authored by Claude Opus 4.8
parent 819ba5e150
commit b5a6a1eeab
3 changed files with 83 additions and 5 deletions
+3 -1
View File
@@ -297,7 +297,9 @@ export async function handleFile(
if (
!isAppInlineScriptPath(path) &&
!isFlowInlineScriptPath(path) &&
!isRawAppBackendPath(path) &&
// Raw-app files (frontend included) belong to the app bundle, never
// standalone scripts — pushed via pushRawApp, not here.
!isRawAppPath(path) &&
(!isScriptModulePath(path) || moduleEntryPoint) &&
exts.some((exts) => path.endsWith(exts))
) {