Skip to content

Commit 747bd88

Browse files
committed
👷 修复zip打包问题
1 parent ab5154e commit 747bd88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/pack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async function addDir(zip, localDir, toDir, filters) {
8181
const toPath = `${toDir}${file}`;
8282
const stats = await fs.stat(localPath);
8383
if (stats.isDirectory()) {
84-
sub(localPath, `${toPath}/`);
84+
await sub(localPath, `${toPath}/`);
8585
} else {
8686
zip.file(toPath, await fs.readFile(localPath));
8787
}

0 commit comments

Comments
 (0)