An example library repo demonstrating how to publish a TypeScript package as a GitHub dependency using Bun and semantic-release.
- Installable directly from GitHub (no npm publish required)
- Automated versioning and tagging via semantic-release
- Uses conventional commits to determine version bumps
Latest version:
bun add github:flying-dice/example-libPinned to a specific version tag:
bun add github:flying-dice/example-lib#v1.0.0import { greet } from "@flying-dice/example-lib";
console.log(greet("world")); // Hello, world!This repo uses semantic-release with conventional commits:
fix: ...— patch release (e.g.1.0.0->1.0.1)feat: ...— minor release (e.g.1.0.0->1.1.0)feat!: ...orBREAKING CHANGE:— major release (e.g.1.0.0->2.0.0)