Skip to content

Continuous integration

Run OptiPrune in report-only mode and fail on the confidence level your team trusts.

Terminal window
npx optiprune ./src \
--entry src/index.ts \
--fail-on high \
--reporter sarif \
--output optiprune.sarif

Upload the SARIF file to your code-scanning provider or use the JSON reporter for custom build annotations.