Skip to content

Commit 5a8ea66

Browse files
committed
fix: add Already up-to-date message reporting
1 parent 7b6963f commit 5a8ea66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/packageManager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ export const pnpmCommand = async ({
9494
const str = String(chunk).trim()
9595
if (!str) return
9696
console.log('[pnpm]', str)
97-
if (str === 'Already up-to-date') reportProgress({ message: str })
97+
const firstLine = str.split('\n')[0]!
98+
if (firstLine === 'Already up-to-date') reportProgress({ message: firstLine })
9899
})
99100

100101
// pnpm.stdout!.on('data', chunk => {

0 commit comments

Comments
 (0)