Merge pull request #17 from MrOplus/patch-1

Refactor directory creation logic in build script
This commit is contained in:
Paolo Anzani authored and GitHub committed 2026-04-01 18:24:22 +02:00
commit 7dc15d6c8f
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/*',