mirror of
https://github.com/freecodexyz/free-code.git
synced 2026-10-19 01:31:25 -05:00
Refactor directory creation logic in build script
Fix build crash on windows devices due to `.` dir name
This commit is contained in:
1 parent
f66f3ab7b5
commit
5a5645d2b5
1 file changed
+4
-1
+4
-1
@@ -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/*',
|
||||
|
||||
Reference in new issue
Block a user