{"id":23021672,"url":"https://github.com/vinothpandian/tsc-committed","last_synced_at":"2026-06-14T21:34:06.683Z","repository":{"id":141360088,"uuid":"612715146","full_name":"vinothpandian/tsc-committed","owner":"vinothpandian","description":"A CLI tool to report tsc errors on committed files between base branch and feature branch in a git repo","archived":false,"fork":false,"pushed_at":"2023-10-07T16:56:47.000Z","size":333,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-19T19:14:15.300Z","etag":null,"topics":["commit","git-hooks","hook","husky","husky-hooks","pre-commit","pre-commit-hook","pre-push","pre-push-hook","tsc","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/tsc-committed","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/vinothpandian.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-03-11T19:02:52.000Z","updated_at":"2025-09-05T18:08:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"464a66f5-c143-483e-b393-0ccfdc4dcf62","html_url":"https://github.com/vinothpandian/tsc-committed","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/vinothpandian/tsc-committed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinothpandian%2Ftsc-committed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinothpandian%2Ftsc-committed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinothpandian%2Ftsc-committed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinothpandian%2Ftsc-committed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinothpandian","download_url":"https://codeload.github.com/vinothpandian/tsc-committed/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinothpandian%2Ftsc-committed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34339195,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","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":["commit","git-hooks","hook","husky","husky-hooks","pre-commit","pre-commit-hook","pre-push","pre-push-hook","tsc","typescript"],"created_at":"2024-12-15T12:18:51.226Z","updated_at":"2026-06-14T21:34:06.666Z","avatar_url":"https://github.com/vinothpandian.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TSC Committed\n---\n\nTSC Committed is a CLI tool that helps identify the committed files between a base branch and a feature branch that fail the TypeScript compilation on committed files in a Git repository. \n\nThe tool is designed to be used in a continuous integration/continuous deployment (CI/CD) environment or as a Git hook to ensure that only TypeScript files that compiled successfully are committed to the codebase.\n\n## Installation\n\nTo install TSC Committed, run the following command:\n\n```bash\nnpm install -g tsc-committed\n```\n\nor using npx:\n\n```bash\nnpx tsc-committed\n```\n\n## Usage\nTSC Committed can be used as a command-line tool by passing in the project directory, root directory, file extensions\nand the base branch and feature branch to compare. The tool will output the list of files TypeScript compilation errors found on the\ncommitted files.\n\n```bash\ntsc-committed --projectDir path/to/project --rootDir src --extensions ts,tsx --baseBranch main\n```\n\n## Options\nThe following options are available:\n\n* --projectDir: The project directory to run tsc against. Default is the current directory.\n* --rootDir: The root directory for TypeScript files. Default is \"src\".\n* --extensions: The file extensions to include. Default is \"ts,tsx\".\n* --baseBranch: The base branch to compare with. Default is main.\n* --verbose: Enables verbose output.\n\n## Using as a Git Hook\nTo use TSC Committed as a Git hook, add the following to your `.git/hooks/pre-commit` file:\n\n```bash\n#!/bin/sh\n\ntsc-committed --baseBranch main  || exit 1\n```\n\nMake sure the pre-commit file is executable:\n\nbash\nCopy code\n```bash\nchmod +x .git/hooks/pre-commit\n```\n\n## Contributing\n\nIf you would like to contribute to TSC Committed, please follow the steps below:\n\n* Fork the repository.\n* Create a new branch for your feature or bug fix.\n* Make your changes and write tests for them.\n* Run the tests to ensure they pass.\n* Commit your changes and push your branch to your fork.\n* Create a pull request to the main branch of the `vinothpandian/tsc-committed` repository.\n\n\n## License\nTSC Committed is licensed under the MIT License. See the [LICENSE](./LICENSE) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinothpandian%2Ftsc-committed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinothpandian%2Ftsc-committed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinothpandian%2Ftsc-committed/lists"}