chore(audit): Refactor error handling for npm ls
Author: plthomasvaCreated Jul 30, 2026Updated Jul 30, 2026
In scripts/audit.js, a catch block swallows all errors from the pm ls brace-expansion command. This is a workaround because pm ls currently returns a non-zero exit code due to missing peer dependencies in our tree.
Once the missing peer dependencies are fixed, we should remove this error swallowing so genuine script errors are surfaced.
References:
- PR: #4022
- File: scripts/audit.js
Source: jsx-eslint/eslint-plugin-react