From 0f49c91fde20f3de91d1104ff17707407f6aac5d Mon Sep 17 00:00:00 2001 From: v-zhangjc9 Date: Thu, 29 May 2025 11:15:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(bin):=20=E4=BC=98=E5=8C=96=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/library.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/library.js b/bin/library.js index a677f4a..e06be2b 100644 --- a/bin/library.js +++ b/bin/library.js @@ -71,6 +71,7 @@ export const run_package_batch = async (projects) => { } const upload = async (file_path) => { + let start = new Date().getTime() let response = await spinner( `Uploading project ${file_path}`, () => fetch(`${upload_url}/file/upload/${path.basename(file_path)}`, { @@ -87,7 +88,7 @@ const upload = async (file_path) => { if (!isEqual(response.status, 200)) { throw response } - console.log(`✅ Finish upload ${file_path}`) + console.log(`✅ Finish upload ${file_path} (${millisecondToString((new Date().getTime()) - start)})`) fs.rmSync(file_path) }