This is a template repository for a TypeScript library for Omni projects.
- π Modern Stack: Built with Bun and TypeScript for fast development and runtime performance
- π¦ ESM Output: Fast builds via Bun bundler with TypeScript declarations
- π§ͺ Testing: Bun test runner for fast, native TypeScript testing
- π οΈ Developer Experience:
- π’ Production Ready:
- Changesets for versioning and changelog generation
- GitHub Actions for CI/CD (testing, preview publishing, releases)
- Automatic type declaration generation
bun installRun tilt up, or:
bun dev # watch mode
bun build # build the library
bun test # run tests
bun check # lint and format check
bun knip # check for unused dependenciesbun run buildOutputs to build/ with ESM format and TypeScript declarations.
bun test-
Replace
@omnidotdev/template-typescript-librarywith your package name in:package.json.changeset/config.json
-
Update repository URLs in
package.json -
Add your source code to
src/ -
Add tests to
test/
| Script | Description |
|---|---|
bun dev |
Watch mode for development |
bun build |
Build the library |
bun test |
Run tests |
bun check |
Run biome check |
bun lint |
Run biome lint with fixes |
bun format |
Run biome format with fixes |
bun knip |
Check for unused dependencies |
bun clean |
Remove build artifacts and node_modules |
bun release |
Build and publish via changesets |
The code in this repository is licensed under MIT, Β© Omni LLC. See LICENSE.md for more information.