{"id":25590674,"url":"https://github.com/thomaschaaf/esbuild-plugin-tsc","last_synced_at":"2025-10-09T17:37:25.746Z","repository":{"id":37418253,"uuid":"345188616","full_name":"thomaschaaf/esbuild-plugin-tsc","owner":"thomaschaaf","description":"An esbuild plugin which uses tsc to compile typescript files.","archived":false,"fork":false,"pushed_at":"2025-02-24T19:14:06.000Z","size":232,"stargazers_count":134,"open_issues_count":8,"forks_count":11,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-05T17:41:50.047Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/thomaschaaf.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":"2021-03-06T20:29:00.000Z","updated_at":"2025-07-25T10:09:23.000Z","dependencies_parsed_at":"2025-04-11T23:14:52.996Z","dependency_job_id":"f441e855-a5da-4eaf-9a77-2aad75bc8daf","html_url":"https://github.com/thomaschaaf/esbuild-plugin-tsc","commit_stats":{"total_commits":18,"total_committers":11,"mean_commits":"1.6363636363636365","dds":0.6111111111111112,"last_synced_commit":"39cd299fccf70a51a12a954ed8c8170ae4b30d3a"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/thomaschaaf/esbuild-plugin-tsc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaschaaf%2Fesbuild-plugin-tsc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaschaaf%2Fesbuild-plugin-tsc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaschaaf%2Fesbuild-plugin-tsc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaschaaf%2Fesbuild-plugin-tsc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomaschaaf","download_url":"https://codeload.github.com/thomaschaaf/esbuild-plugin-tsc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomaschaaf%2Fesbuild-plugin-tsc/sbom","scorecard":{"id":882293,"data":{"date":"2025-08-11","repo":{"name":"github.com/thomaschaaf/esbuild-plugin-tsc","commit":"93fa3dd37169cea2ff80f4b1054f36c316cb04f3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":5,"reason":"Found 9/18 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T08:39:58.637Z","repository_id":37418253,"created_at":"2025-08-24T08:39:58.637Z","updated_at":"2025-08-24T08:39:58.637Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001868,"owners_count":26083197,"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-10-09T02:00:07.460Z","response_time":59,"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":[],"created_at":"2025-02-21T09:22:52.738Z","updated_at":"2025-10-09T17:37:25.730Z","avatar_url":"https://github.com/thomaschaaf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esbuild-plugin-tsc\n\nAn esbuild plugin which uses tsc to compile typescript files.\n\n## Why?\n\nEsbuild natively supports typescript files - so if you are not using exotic typescript features this plugin is not meant for you!\n\nI wanted to use [`typescripts emitDecoratorMetadata`](https://www.typescriptlang.org/tsconfig#emitDecoratorMetadata) feature, which is [not supported by esbuild](https://github.com/evanw/esbuild/issues/257). If you are only using typescript decorators in some files, this plugin allows you to convert only the files containing decorators and lets esbuild handle all other files.\nIf for some reason you want to use typescripts compiler for all files you can simple set the `force` option.\n\n## Basic Usage\n\n1. Install this plugin in your project:\n\n   ```sh\n   npm install --save-dev esbuild-plugin-tsc typescript\n   ```\n\n2. Add this plugin to your esbuild build script:\n\n   Javascript:\n   ```diff\n   +const esbuildPluginTsc = require('esbuild-plugin-tsc');\n    ...\n    esbuild.build({\n      ...\n      plugins: [\n   +    esbuildPluginTsc(),\n      ],\n    })\n   ```\n\n   Typescript:\n   ```diff\n   +import esbuildPluginTsc from 'esbuild-plugin-tsc';\n    ...\n    esbuild.build({\n      ...\n      plugins: [\n   +    esbuildPluginTsc(),\n      ],\n    })\n   ```\n\n## Config\n\n```typescript\nesbuildPluginTsc({\n    // If empty, uses tsconfig.json\n    tsconfigPath?: string,\n    // If true, force compilation with tsc\n    force?: boolean,\n    // If true, force TypeScript to treat files without the `.mts` extension as ESM\n    forceEsm?: boolean,\n    // If true, enables tsx file support\n    tsx?: boolean\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomaschaaf%2Fesbuild-plugin-tsc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomaschaaf%2Fesbuild-plugin-tsc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomaschaaf%2Fesbuild-plugin-tsc/lists"}