Skip to content

chore(audit): Handle npm audit errors explicitly #4026

Description

@plthomasva

In scripts/audit.js, the final catch block silently exits the process (process.exit(1)) without properly handling the error object when
pm audit returns vulnerabilities (which causes execFileSync to throw).

We should refactor this to either properly inspect the error or remove this exclusion once we no longer need to silently exit without handling the error object.

References:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions