{"id":15765521,"url":"https://github.com/olivermking/typescript-build-check-workflow","last_synced_at":"2026-05-05T12:33:03.050Z","repository":{"id":100469452,"uuid":"432316955","full_name":"OliverMKing/typescript-build-check-workflow","owner":"OliverMKing","description":"Github workflow to guarantee TypeScript code has been built (compiled) in pull request","archived":false,"fork":false,"pushed_at":"2021-11-29T02:55:35.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-05T12:42:19.053Z","etag":null,"topics":["bash","github-workflow","javascript","typescript"],"latest_commit_sha":null,"homepage":"","language":null,"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/OliverMKing.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}},"created_at":"2021-11-26T22:38:56.000Z","updated_at":"2021-11-29T02:55:38.000Z","dependencies_parsed_at":"2023-05-14T23:00:31.187Z","dependency_job_id":null,"html_url":"https://github.com/OliverMKing/typescript-build-check-workflow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OliverMKing/typescript-build-check-workflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OliverMKing%2Ftypescript-build-check-workflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OliverMKing%2Ftypescript-build-check-workflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OliverMKing%2Ftypescript-build-check-workflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OliverMKing%2Ftypescript-build-check-workflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OliverMKing","download_url":"https://codeload.github.com/OliverMKing/typescript-build-check-workflow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OliverMKing%2Ftypescript-build-check-workflow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32649561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"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":["bash","github-workflow","javascript","typescript"],"created_at":"2024-10-04T12:42:24.091Z","updated_at":"2026-05-05T12:33:03.019Z","avatar_url":"https://github.com/OliverMKing.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# typescript-build-check-workflow\n\nGithub workflow to guarantee TypeScript code has been built in a pull request.\n\nThis has a few clear advantages:\n\n- Code doesn't have to be reviewed twice (TypeScript and compiled JavaScript)\n- Compiled JavaScript need to be completely reviewed since we know whether the TypeScript has been compiled (compiled JavaScript is often difficult to read)\n- Catches the common error of not compiling to TypeScript before a pull request\n- Prevents a malicious actor from slipping extra code into the \"compiled\" JavaScript undetected\n\n## Usage\n\nCopy the [ts-build-check.yml file](./ts-build-check.yml) to your `.github` directory. Modify the steps under to fit your project.\n\n`Clone and Build Pull Request` should install all dependencies for your project (it currently uses npm). It can be easily modified to fit your project's dependency installation process.\n\n`Compare Built Directories` checks the out of your repo's TypeScript build. Modify the `diff` command path to match your output directory. The example's TypeScript is compiled to a root-level `lib` directory in the repo.\n\nThe comment left on failed PRs can be modified under the `body` section of the `Comment Unbuilt TypeScript` step.\n\n## Planned Updates\n\n- Shorten `diff` flags (figure out which ones are key)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folivermking%2Ftypescript-build-check-workflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folivermking%2Ftypescript-build-check-workflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folivermking%2Ftypescript-build-check-workflow/lists"}