fix(build): update cpy options to use flat for output directory

This commit is contained in:
Harvey Zhao committed 2026-03-07 15:32:38 +08:00
1 parent 699bf09577
commit 3bf0707faa
95 files changed
+29 -90819

No files matched your search

+1 -1
View File
@@ -67,7 +67,7 @@ async function build(name, targetName, clean = false) {
const outFile = path.join(distDir, fileName)
const size = (fs.statSync(outFile).size / 1024).toFixed(2)
await cpy(outFile, compiledPath)
await cpy(outFile, compiledPath, { flat: true })
console.log(`✨ Built@${targetName} ${name}@${version} Time@${Date.now() - startTime}ms Size@${size}kb`)
}