fix(update): remove the npm logs dir even when the retry fails

This commit is contained in:
Hermes Agent
2026-09-24 23:27:29 -05:00
committed by brooklyn!
parent 625f1d8926
commit b85406d5f3

View File

@@ -64,8 +64,9 @@ function runNpmCi(node, npm, args, { source, env }) {
console.log('node-deps: npm ci hit ENOTEMPTY; removing node_modules and retrying once...')
rmSync(join(source, 'node_modules'), { recursive: true, force: true, maxRetries: 3 })
run()
} finally {
rmSync(logsDir, { recursive: true, force: true })
}
rmSync(logsDir, { recursive: true, force: true })
}
/** Install the full requested workspace union in one strict, locked operation. */