Packages

Conventional-Commits-driven semantic releases for Gleam: analyse commits, compute the next version, generate release notes, and publish to Hex/npm and GitHub. A native Gleam port of semantic-release.

Current section

Files

Jump to
version_bump src version_bump_ffi.mjs
Raw

src/version_bump_ffi.mjs

// JavaScript FFI for the bump entrypoint, mirroring
// version_bump_ffi.erl. Used when compiling to the JavaScript target.
// Terminate the process with the given exit code (Node). Returns Nil
// (undefined) for non-Node environments where there is nothing to halt.
export function halt(code) {
if (globalThis.process && typeof globalThis.process.exit === "function") {
globalThis.process.exit(code);
}
return undefined;
}