@@ -78,18 +78,13 @@ async function processOutdated(
78
78
packageJsonPaths : PackageJsonPaths ,
79
79
) {
80
80
const pm = packageManagers [ id ] ;
81
- const { stdout, stderr } = await executeProcess ( {
81
+ const { stdout } = await executeProcess ( {
82
82
command : pm . command ,
83
83
args : pm . outdated . commandArgs ,
84
84
cwd : process . cwd ( ) ,
85
85
ignoreExitCode : true , // outdated returns exit code 1 when outdated dependencies are found
86
86
} ) ;
87
87
88
- // Successful outdated check has empty stderr
89
- if ( stderr ) {
90
- throw new Error ( `JS packages plugin: outdated error: ${ stderr } ` ) ;
91
- }
92
-
93
88
// Locate all package.json files in the repository if not provided
94
89
const finalPaths = Array . isArray ( packageJsonPaths )
95
90
? packageJsonPaths
@@ -122,16 +117,12 @@ async function processAudit(
122
117
const auditResults = await Promise . allSettled (
123
118
compatibleAuditDepGroups . map (
124
119
async ( depGroup ) : Promise < [ DependencyGroup , AuditResult ] > => {
125
- const { stdout, stderr } = await executeProcess ( {
120
+ const { stdout } = await executeProcess ( {
126
121
command : pm . command ,
127
122
args : pm . audit . getCommandArgs ( depGroup ) ,
128
123
cwd : process . cwd ( ) ,
129
124
ignoreExitCode : pm . audit . ignoreExitCode ,
130
125
} ) ;
131
- // Successful audit check has empty stderr
132
- if ( stderr ) {
133
- throw new Error ( `JS packages plugin: audit error: ${ stderr } ` ) ;
134
- }
135
126
return [ depGroup , pm . audit . unifyResult ( stdout ) ] ;
136
127
} ,
137
128
) ,
0 commit comments