diff --git a/src/package-managers/npm.ts b/src/package-managers/npm.ts index 853e1225..45fe5c24 100644 --- a/src/package-managers/npm.ts +++ b/src/package-managers/npm.ts @@ -545,7 +545,8 @@ async function spawnNpm( '--json', ...(Array.isArray(args) ? args : [args]), ] - return spawn(cmd, fullArgs, spawnPleaseOptions, spawnOptions) + const { stdout } = await spawn(cmd, fullArgs, spawnPleaseOptions, spawnOptions) + return stdout } /** @@ -663,9 +664,11 @@ export const list = async (options: Options = {}): Promise