From 36cf6e370385ffe249d9b4ddb90722914787e558 Mon Sep 17 00:00:00 2001 From: Anshumancanrock <109489361+Anshumancanrock@users.noreply.github.com> Date: Tue, 13 Jan 2026 23:37:51 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20Yarn=20installation=20fails=20in=20windo?= =?UTF-8?q?ws=20due=20to=20mixed=20path=20separators=20=E2=80=A6=20(#26771?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: Yarn installation fails in windows due to mixed path separators in app-store-cli * fix: normalize paths for cross-platform Biome compatibility in app-store-cli --- packages/app-store-cli/src/build.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/app-store-cli/src/build.ts b/packages/app-store-cli/src/build.ts index 406d91d68e..553fe73ef2 100644 --- a/packages/app-store-cli/src/build.ts +++ b/packages/app-store-cli/src/build.ts @@ -15,12 +15,15 @@ const isInWatchMode = process.argv[2] === "--watch"; const repoRoot = path.resolve(__dirname, "../../.."); const formatFileWithBiome = (filePath: string) => { + // Normalize to forward slashes for cross-platform Biome compatibility + const normalizedPath = filePath.replace(/\\/g, "/"); const { status } = spawnSync( "yarn", - ["biome", "format", "--write", "--no-errors-on-unmatched", filePath], + ["biome", "format", "--write", "--no-errors-on-unmatched", normalizedPath], { stdio: "inherit", cwd: repoRoot, + shell: true, } ); @@ -561,7 +564,7 @@ function generateFiles() { ["video.adapters.generated.ts", videoOutput], ]; filesToGenerate.forEach(([fileName, output]) => { - const filePath = `${APP_STORE_PATH}/${fileName}`; + const filePath = path.join(APP_STORE_PATH, fileName); fs.writeFileSync(filePath, formatOutput(`${banner}${output.join("\n")}`)); formatFileWithBiome(filePath); });