{"id":22619816,"url":"https://github.com/simonkovtyk/esbuild-plugin-typescript","last_synced_at":"2025-08-17T16:16:26.410Z","repository":{"id":257067461,"uuid":"857282478","full_name":"simonkovtyk/esbuild-plugin-typescript","owner":"simonkovtyk","description":"The plugin enhances the build process by seamlessly integrating TypeScript, offering powerful features like type checking, automatic generation of .d.ts files, and ensuring robust type safety throughout.","archived":false,"fork":false,"pushed_at":"2024-11-30T16:35:48.000Z","size":27,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-06T03:40:10.312Z","etag":null,"topics":["declarations","dts","dts-generator","esbuild","esbuild-plugin","esbuild-plugins","ts","tsc","type-check","type-safe","type-safety","types","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/simonkovtyk.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}},"created_at":"2024-09-14T08:32:02.000Z","updated_at":"2024-12-28T15:31:22.000Z","dependencies_parsed_at":"2024-09-14T17:47:44.049Z","dependency_job_id":"7147bc17-5d85-473f-800c-f478e605e628","html_url":"https://github.com/simonkovtyk/esbuild-plugin-typescript","commit_stats":null,"previous_names":["simonkovtyk/esbuild-plugin-typescript"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/simonkovtyk/esbuild-plugin-typescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonkovtyk%2Fesbuild-plugin-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonkovtyk%2Fesbuild-plugin-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonkovtyk%2Fesbuild-plugin-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonkovtyk%2Fesbuild-plugin-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonkovtyk","download_url":"https://codeload.github.com/simonkovtyk/esbuild-plugin-typescript/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonkovtyk%2Fesbuild-plugin-typescript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270871527,"owners_count":24660221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"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":["declarations","dts","dts-generator","esbuild","esbuild-plugin","esbuild-plugins","ts","tsc","type-check","type-safe","type-safety","types","typescript"],"created_at":"2024-12-08T22:09:02.951Z","updated_at":"2025-08-17T16:16:26.387Z","avatar_url":"https://github.com/simonkovtyk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cimg width=\"196\" src=\"https://raw.githubusercontent.com/simonkovtyk/esbuild-plugin-typescript/611c5c4942c8460ec6247ab833418908e9213a9b/docs/esbuild-favicon.svg\" /\u003e\n\n\u003ch1\u003eTypeScript Plugin\u003c/h1\u003e\n\n\u003cp\u003eThe plugin enhances the build process by seamlessly integrating TypeScript, offering powerful features like type checking, automatic generation of .d.ts files, and ensuring robust type safety throughout.\u003c/p\u003e\n\n![NPM Downloads](https://img.shields.io/npm/dw/esbuild-plugin-typescript)\n![NPM License](https://img.shields.io/npm/l/esbuild-plugin-typescript)\n![GitHub package.json version](https://img.shields.io/npm/v/esbuild-plugin-typescript)\n![TypeScript types](https://img.shields.io/badge/TypeScript_types-included-blue)\n\n\u003cbr /\u003e\n\nAdd a ⭐ to this repository — *it motivates me a lot!*\n\n\u003c/div\u003e\n\n## ⚡️ Getting started\n\nSimply install this package with your package manager.\n\n````shell\nnpm install -D esbuild-plugin-typescript\n````\n\n\u003cdetails\u003e\n\u003csummary\u003e📦 other package manager\u003c/summary\u003e\n\nHere are examples for installing the package with other package manager.\n\n\u003e 💾 **yarn**\n\u003e ````shell\n\u003e yarn add -D esbuild-plugin-typescript\n\u003e ````\n\n\u003e 💾 **pnpm**\n\u003e ````shell\n\u003e pnpm install -D esbuild-plugin-typescript\n\u003e ````\n\n\u003c/details\u003e\n\nLooks good so far 🔥 — now you have installed the latest version!\n\n## 💡 Introduction\n\nThis esbuild plugin integrates TypeScript, generating .d.ts files and performing type checks based on the user's tsconfig.json. It uses the TypeScript compiler API to ensure strict type checks that\nesbuild alone can't provide.\n\nDuring the build, TypeScript is compiled to JavaScript while .d.ts files are created simultaneously. The plugin runs tsc in a subprocess to handle type checking\nindependently from esbuild’s fast bundling. This ensures type safety without sacrificing performance. It respects the user's configuration, ensuring compatibility with various project setups.\n\n## 🔧 Usage\n\n```typescript\ntypescriptPlugin(options);\n```\n\nThis function needs to be called inside the esbuild configuration in order to use this plugin. It will provide the plugin inside the build process of esbuild.\n\n\u003cdetails\u003e\n\u003csummary\u003eShow an example of the integration\u003c/summary\u003e\n\n````typescript\nesbuild.build({\n  // some configuration...\n  plugins: [\n    typescriptPlugin();\n    // more plugins here...\n  ]\n})\n````\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eShow an example of the configuration\u003c/summary\u003e\n\n````typescript\ntypescriptPlugin({\n  // configure here\n});\n````\n\n\u003c/details\u003e\n\n### Properties\n\n#### ``overridePathToTsconfig``\n\n\u003e Default: ``undefined`` (esbuild's tsconfig file)\n\nA ``string`` that determines the path to the tsconfig.\n\n\u003cdetails\u003e\n\u003csummary\u003eShow an example\u003c/summary\u003e\n\n````typescript\ntypescriptPlugin({\n  overridePathToTsconfig: \"libs/my-lib/tsconfig.json\" // any path allowed\n});\n````\n\n\u003c/details\u003e\n\n### Returns\n\nType: ``Plugin``\n\nAn instance of this plugin, that will be used by esbuild automatically.\n\n## License\n\nThe MIT License (MIT) - Please have a look at the [License](https://github.com/simonkovtyk/esbuild-plugin-typescript/blob/main/LICENSE) file for more details.\n\n## Contributing\n\nWant to contribute to an open-source project on GitHub but unsure where to start? Check out this comprehensive step-by-step guide on how to contribute effectively!\n\nFrom forking the repository to creating pull requests, this guide walks you through every stage of the process, helping you make a successful contribution to this GitHub project. Start collaborating,\nlearn new skills, and make an impact on this project!\n\n[See here](https://github.com/simonkovtyk/esbuild-plugin-typescript/blob/main/docs/guides/HOW_TO_CONTRIBUTE.md) for the contribute guide at GitHub.\n\n\u003chr\u003e\n\nGitHub [@simonkovtyk](https://github.com/simonkovtyk)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonkovtyk%2Fesbuild-plugin-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonkovtyk%2Fesbuild-plugin-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonkovtyk%2Fesbuild-plugin-typescript/lists"}