pnpm build, npm run build, or make build will first verify that all files in your workspace meet your configured threshold — builds that fail are stopped before compilation begins.
The build gate requires Iris Pro.
Installing
Run Iris: Install Build Hook from the command palette. Iris detects your project type and writes the hook automatically — no manual edits to config files are required.What the hook does
Detect the project type
Iris looks for
package.json (Node), go.mod (Go), or pyproject.toml / requirements.txt (Python) to determine how to install the hook.Write the hook
- Node — appends an Iris
prebuildentry topackage.json. Chains safely before any existingprebuildcommand. - Go / Python — writes an
iris-checkMakefile target and wires it as a prerequisite of thebuildoralltarget.
✗ and the primary finding is shown beneath them. The build fails after all files are checked so the full list is always shown before exit.
Configuring the threshold
Set"minHealthScore" in your .irisconfig.json to control the minimum acceptable score. The default is 70 if the key is absent.
Insights tracking
Every build hook run is logged in your account Insights as a pass or fail, so you can track enforcement activity over time without digging through build logs. View the breakdown at iriscode.co/account/insights.Uninstalling
Run Iris: Uninstall Build Hook from the command palette. Iris removes only its own entry. For Node projects, if no otherprebuild commands remain after removal, the prebuild key is deleted from package.json entirely.