From cd10e66fbb98411a2786dd564d07030d6a103d05 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 4 Jan 2026 22:16:29 +0200 Subject: [PATCH] chore(scripts): build scripts not working properly on Windows --- scripts/build-utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build-utils.ts b/scripts/build-utils.ts index 31992bcc79..94142c300d 100644 --- a/scripts/build-utils.ts +++ b/scripts/build-utils.ts @@ -2,7 +2,7 @@ import { execSync } from "child_process"; import { build as esbuild } from "esbuild"; import { cpSync, existsSync, rmSync, writeFileSync } from "fs"; import { copySync, emptyDirSync, mkdirpSync } from "fs-extra"; -import { join } from "path"; +import { delimiter, join } from "path"; export default class BuildHelper { @@ -20,7 +20,7 @@ export default class BuildHelper { copy(projectDirPath: string, outDirPath: string) { let sourcePath: string; - if (projectDirPath.startsWith("/")) { + if (projectDirPath.startsWith("/") || projectDirPath.startsWith("\\")) { sourcePath = join(this.rootDir, projectDirPath.substring(1)); } else { sourcePath = join(this.projectDir, projectDirPath);