Skip to content

Commit 16c4a08

Browse files
committed
fix(docset): resolve error during docset file generation. #601
1 parent 4249725 commit 16c4a08

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/dash.mjs

+3-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ async function build() {
118118

119119
console.info('compressing tgz');
120120
// https://github.com/node-modules/compressing/issues/42 建议最好休眠15s,等待其余资源复制完毕
121-
spawn("sleep", ['15'])
121+
// 确保所有操作完成后再压缩
122+
await new Promise(resolve => setTimeout(resolve, 30000)); // 增加到 30 秒
123+
122124
const outputPath = pathJoin(process.cwd(), '.deploy', 'linux-command.docset.tgz');
123125
await tgz.compressDir(DOCSET_DIR, outputPath);
124126
}

0 commit comments

Comments
 (0)