{"id":43688212,"url":"https://github.com/nikero41/bun-tsconfig-paths","last_synced_at":"2026-02-05T03:04:38.332Z","repository":{"id":336325691,"uuid":"1149203985","full_name":"nikero41/bun-tsconfig-paths","owner":"nikero41","description":"Resolve paths aliases from tsconfig.json","archived":false,"fork":false,"pushed_at":"2026-02-04T00:13:49.000Z","size":17,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-04T10:43:22.724Z","etag":null,"topics":["bun","bun-plugin","bundler","tsconfig","tsconfig-paths"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/bun-tsconfig-paths","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/nikero41.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2026-02-03T20:59:02.000Z","updated_at":"2026-02-04T00:41:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/nikero41/bun-tsconfig-paths","commit_stats":null,"previous_names":["nikero41/bun-tsconfig-paths"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/nikero41/bun-tsconfig-paths","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikero41%2Fbun-tsconfig-paths","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikero41%2Fbun-tsconfig-paths/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikero41%2Fbun-tsconfig-paths/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikero41%2Fbun-tsconfig-paths/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikero41","download_url":"https://codeload.github.com/nikero41/bun-tsconfig-paths/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikero41%2Fbun-tsconfig-paths/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29108351,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T02:48:39.389Z","status":"ssl_error","status_checked_at":"2026-02-05T02:48:27.400Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bun","bun-plugin","bundler","tsconfig","tsconfig-paths"],"created_at":"2026-02-05T03:04:33.234Z","updated_at":"2026-02-05T03:04:38.326Z","avatar_url":"https://github.com/nikero41.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bun-tsconfig-paths\n\n[![Licence](https://badgen.net/github/license/nikero41/bun-tsconfig-paths)](https://github.com/nikero41/bun-tsconfig-paths)\n[![CI](https://badgen.net/github/checks/nikero41/bun-tsconfig-paths)](https://github.com/nikero41/bun-tsconfig-paths/actions)\n[![Dependabot](https://badgen.net/github/dependabot/nikero41/bun-tsconfig-paths)](https://github.com/nikero41/bun-tsconfig-paths/security/dependabot)\n[![npm](https://badgen.net/npm/v/bun-tsconfig-paths)](https://www.npmjs.com/package/bun-tsconfig-paths)\n[![npm downloads](https://badgen.net/npm/dt/bun-tsconfig-paths)](https://www.npmjs.com/package/bun-tsconfig-paths)\n\nA Bun plugin that resolves TypeScript path aliases from your `tsconfig.json`.\n\n## Installation\n\n```bash\nbun add -d bun-tsconfig-paths\n```\n\n## Usage\n\n### With Bun's Bundler\n\nAdd the plugin to your `Bun.build()` configuration:\n\n```typescript\nimport tsconfigPaths from \"bun-tsconfig-paths\";\n\nawait Bun.build({\n\tentrypoints: [\"./src/index.ts\"],\n\toutdir: \"./dist\",\n\tplugins: [tsconfigPaths()],\n});\n```\n\n### With Custom tsconfig Path\n\nIf your `tsconfig.json` is in a different location:\n\n```typescript\nimport tsconfigPaths from \"bun-tsconfig-paths\";\n\nawait Bun.build({\n\tentrypoints: [\"./src/index.ts\"],\n\toutdir: \"./dist\",\n\tplugins: [tsconfigPaths({ tsConfigPath: \"./packages/app/tsconfig.json\" })],\n});\n```\n\n### Example tsconfig.json\n\nThe plugin reads path aliases from your `tsconfig.json`:\n\n```json\n{\n\t\"compilerOptions\": {\n\t\t\"paths\": {\n\t\t\t\"*\": [\"./src/*\"],\n\t\t\t\"@/*\": [\"./src/*\"],\n\t\t\t\"@components/*\": [\"./src/components/*\"],\n\t\t\t\"@utils/*\": [\"./src/utils/*\"]\n\t\t}\n\t}\n}\n```\n\nWith this configuration, you can use imports like:\n\n```typescript\nimport { Button } from \"@components/Button\";\nimport { formatDate } from \"@utils/date\";\n```\n\n## API\n\n### `tsconfigPaths(options?)`\n\nReturns a Bun plugin that resolves TypeScript path aliases.\n\n#### Options\n\n```typescript\ninterface TsConfigPathsOptions {\n\ttsConfigPath?: string; /** Path to tsconfig.json file */\n}\n```\n\n## Requirements\n\n- Bun \u003e= 1.0.0\n- TypeScript \u003e= 5.0\n\n## Contributing\n\nContributions are welcome! Here's how you can help:\n\n1. **Fork the repository**\n\n2. **Clone your fork**\n\n   ```bash\n   git clone https://github.com/your-username/bun-tsconfig-paths.git\n   cd bun-tsconfig-paths\n   ```\n\n3. **Install dependencies**\n\n   ```bash\n   bun install\n   ```\n\n4. **Make your changes**\n\n5. **Run checks before submitting**\n\n   ```bash\n   bun format      # Format code with Prettier\n   bun lint        # Type check with TypeScript\n   bun test        # Run tests\n   bun run build   # Build the project\n   ```\n\n6. **Submit a Pull Request**\n\n## Acknowledgements\n\nThis project is built upon and inspired by:\n\n- [tsconfig-paths](https://github.com/dividab/tsconfig-paths) - The core library that powers the path resolution logic\n- [bun-plugin-dts](https://github.com/AkaraChen/bun-plugin-dts) - Inspiration for the Bun plugin structure and build setup\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikero41%2Fbun-tsconfig-paths","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikero41%2Fbun-tsconfig-paths","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikero41%2Fbun-tsconfig-paths/lists"}