{"id":24499126,"url":"https://github.com/iamsebastiandev/bun-bake","last_synced_at":"2026-04-17T05:02:19.188Z","repository":{"id":273584022,"uuid":"920203287","full_name":"IamSebastianDev/bun-bake","owner":"IamSebastianDev","description":"Small build utility for `Bun.build` to streamline package generation","archived":false,"fork":false,"pushed_at":"2025-01-21T19:13:54.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T03:59:51.363Z","etag":null,"topics":["build","bun","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IamSebastianDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-21T18:35:58.000Z","updated_at":"2025-01-21T19:13:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"63c1bc33-af88-48e0-b741-8846abdc058c","html_url":"https://github.com/IamSebastianDev/bun-bake","commit_stats":null,"previous_names":["iamsebastiandev/bun-pkg-builder"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IamSebastianDev/bun-bake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IamSebastianDev%2Fbun-bake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IamSebastianDev%2Fbun-bake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IamSebastianDev%2Fbun-bake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IamSebastianDev%2Fbun-bake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IamSebastianDev","download_url":"https://codeload.github.com/IamSebastianDev/bun-bake/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IamSebastianDev%2Fbun-bake/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31915900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build","bun","typescript"],"created_at":"2025-01-21T22:13:14.693Z","updated_at":"2026-04-17T05:02:19.177Z","avatar_url":"https://github.com/IamSebastianDev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @iasd/bun-bake\n\nMinimal wrapper around the [`Bun.build`](https://bun.sh/docs/bundler) API to support generating bundles as well as `.d.ts` type definitions. This library solves a very specific problem for a select group of developers.\n\n\u003e See: [https://github.com/oven-sh/bun/issues/5141](https://github.com/oven-sh/bun/issues/5141)\n\n## Installing\n\n```bash\n# Install via bun\n$ bun add @iasd/bun-bake,\n```\n\n\u003e Note: You can also just copy the [./index.ts](./index.ts) file into your project.\n\n\u003e Note: This is a pure `bun` package, that is not useable with `NodeJs`.\n\n## Usage\n\nThe package exposes the `build` object as well as the `Builder` class. The `build` object can be used to bundle using minimal configuration.\n\n```ts\n// .build.ts\nimport { build } from \"@iasd/bun-bake\";\nimport pkg from \"./package.json\";\n\nawait build.for('bun').from({\n    // The provided package.json should have a \n    // main + module field that is used as output \n    // location for the bundle.\n    ...pkg, \n    entry: './src/index.ts'\n})\n```\n\nIf you need to provide more configuration, you can import the `Builder` class and configure the build object yourself.\n\n```ts\n// .build.ts\nimport { Builder } from \"@iasd/bun-bake\";\nimport pkg from \"./package.json\";\n\nconst build = new Builder({ watch: false, clean: false })\nawait build.for('bun').from({\n    ...pgk, \n    entry: './src/index.ts'\n})\n```\n\nThe library will generate `esm` and `cjs` as well as a `.d.ts` file by default.\n\nTo learn more about different ways to configure the builder, take a look at [the source](./index.ts).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamsebastiandev%2Fbun-bake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamsebastiandev%2Fbun-bake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamsebastiandev%2Fbun-bake/lists"}