From 7fbeca0d2e0e065d7c2624638eb0c2e8bcadc25f Mon Sep 17 00:00:00 2001 From: hanquliu Date: Tue, 17 May 2022 10:36:25 +0800 Subject: [PATCH] Fix `deletedCount` --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 735aabe..bd6851a 100644 --- a/index.js +++ b/index.js @@ -87,8 +87,8 @@ module.exports = async (patterns, {force, dryRun, cwd = process.cwd(), onProgres onProgress({ totalCount: files.length, - deletedCount: fileIndex, - percent: fileIndex / files.length + deletedCount: fileIndex + 1, + percent: (fileIndex + 1) / files.length }); return file;