From 6beddcc572c74842e5fddde507b2af44d0df9f3c Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Tue, 30 Aug 2022 17:35:39 +0800 Subject: [PATCH] chore: update `scripts/dash.mjs` (#412) --- scripts/dash.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/dash.mjs b/scripts/dash.mjs index 5c41ec183f5..fc518caa074 100644 --- a/scripts/dash.mjs +++ b/scripts/dash.mjs @@ -119,9 +119,8 @@ async function build() { console.info('compressing tgz'); // https://github.com/node-modules/compressing/issues/42 建议最好休眠15s,等待其余资源复制完毕 spawn("sleep", ['15']) - const tgzPath = pathJoin(process.cwd(), '.deploy', 'linux-command.docset'); const outputPath = pathJoin(process.cwd(), '.deploy', 'linux-command.docset.tgz'); - await tgz.compressDir(tgzPath, outputPath); + await tgz.compressDir(DOCSET_DIR, outputPath); } build()