Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Yarn installation fails in windows due to mixed path separators … (#26771)

Anshumancanrock36cf6e370385
diff --git a/packages/app-store-cli/src/build.ts b/packages/app-store-cli/src/build.ts
index 406d91d68ea..553fe73ef27 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);
});