Refactor directory creation logic in build script

Fix build crash on windows devices due to `.` dir name
This commit is contained in:
DivByZero authored and GitHub committed 2026-04-01 19:56:55 +04:00
1 parent f66f3ab7b5
commit 5a5645d2b5
1 file changed
+4 -1
+4 -1
View File
@@ -119,7 +119,10 @@ const outfile = compile
const buildTime = new Date().toISOString()
const version = dev ? getDevVersion(pkg.version) : pkg.version
mkdirSync(dirname(outfile), { recursive: true })
const outDir = dirname(outfile)
if (outDir !== '.') {
mkdirSync(outDir, { recursive: true })
}
const externals = [
'@ant/*',