@@ -78,18 +78,13 @@ async function processOutdated(
7878 packageJsonPaths : PackageJsonPaths ,
7979) {
8080 const pm = packageManagers [ id ] ;
81- const { stdout, stderr } = await executeProcess ( {
81+ const { stdout } = await executeProcess ( {
8282 command : pm . command ,
8383 args : pm . outdated . commandArgs ,
8484 cwd : process . cwd ( ) ,
8585 ignoreExitCode : true , // outdated returns exit code 1 when outdated dependencies are found
8686 } ) ;
8787
88- // Successful outdated check has empty stderr
89- if ( stderr ) {
90- throw new Error ( `JS packages plugin: outdated error: ${ stderr } ` ) ;
91- }
92-
9388 // Locate all package.json files in the repository if not provided
9489 const finalPaths = Array . isArray ( packageJsonPaths )
9590 ? packageJsonPaths
@@ -122,16 +117,12 @@ async function processAudit(
122117 const auditResults = await Promise . allSettled (
123118 compatibleAuditDepGroups . map (
124119 async ( depGroup ) : Promise < [ DependencyGroup , AuditResult ] > => {
125- const { stdout, stderr } = await executeProcess ( {
120+ const { stdout } = await executeProcess ( {
126121 command : pm . command ,
127122 args : pm . audit . getCommandArgs ( depGroup ) ,
128123 cwd : process . cwd ( ) ,
129124 ignoreExitCode : pm . audit . ignoreExitCode ,
130125 } ) ;
131- // Successful audit check has empty stderr
132- if ( stderr ) {
133- throw new Error ( `JS packages plugin: audit error: ${ stderr } ` ) ;
134- }
135126 return [ depGroup , pm . audit . unifyResult ( stdout ) ] ;
136127 } ,
137128 ) ,
0 commit comments