bugsnag-build-reporter is a utility designed for reporting application build information to Bugsnag. Currently at version 2.0.0, this package provides both a JavaScript API for integration into custom Node.js build environments and a command-line interface (CLI) for use in npm scripts or CI/CD pipelines. It differentiates itself by offering automatic detection of source control information (from .git, .hg, or package.json) and allowing builds to be associated with specific release stages. While Bugsnag provides higher-level integrations for Webpack, Gulp, and Grunt, this reporter is ideal for bespoke build systems or command-line driven workflows, ensuring comprehensive error monitoring setup across diverse development practices. The release cadence appears to be driven by dependency updates and minor feature enhancements.
npm install bugsnag-build-reporterVerified import paths — ran on the pinned version, not inferred.
This script demonstrates reporting a build to Bugsnag using the JS API, including required parameters and basic error handling.
Upgrade your Node.js runtime to version 8 or newer before upgrading to bugsnag-build-reporter v2.0.0.
Always provide `apiKey` and `appVersion` in the build configuration object or as CLI arguments. Example: `{ apiKey: 'YOUR_API_KEY', appVersion: '1.2.3' }`.Manually specify the `sourceControl` object in your build configuration: `{ sourceControl: { provider: 'github', repository: 'https://github.com/org/repo', revision: 'SHA' } }`.Update to the latest `bugsnag-build-reporter@2.x.x` using `npm install bugsnag-build-reporter@latest` to ensure all transitive dependencies are up-to-date.
Ensure the `apiKey` property is set in the build object: `reportBuild({ apiKey: 'YOUR_API_KEY', appVersion: '...' })`.Ensure the `appVersion` property is set in the build object: `reportBuild({ apiKey: '...', appVersion: '1.2.3' })`.If installed locally, run with `npx bugsnag-build-reporter ...` or add `$(npm bin)` to your PATH. For global access, install via `npm install -g bugsnag-build-reporter`.
Verify that your `apiKey` is correct and has the necessary permissions in your Bugsnag project settings.
No dependency data recorded yet.