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) }