{"id":15420283,"url":"https://github.com/jakebailey/every-ts","last_synced_at":"2025-11-12T22:30:36.930Z","repository":{"id":197895890,"uuid":"698776799","full_name":"jakebailey/every-ts","owner":"jakebailey","description":"A utility to build and bisect any version of TypeScript","archived":false,"fork":false,"pushed_at":"2024-10-29T08:39:30.000Z","size":347,"stargazers_count":74,"open_issues_count":14,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-29T09:55:18.470Z","etag":null,"topics":[],"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/jakebailey.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-09-30T23:50:39.000Z","updated_at":"2024-10-26T03:16:02.000Z","dependencies_parsed_at":"2023-10-23T18:29:49.662Z","dependency_job_id":"f514f88d-5d4c-4f3e-a169-b1348ea32a79","html_url":"https://github.com/jakebailey/every-ts","commit_stats":{"total_commits":163,"total_committers":3,"mean_commits":"54.333333333333336","dds":"0.17177914110429449","last_synced_commit":"52dd13a892dfd125e72065a4815ad989d4b3b7c5"},"previous_names":["jakebailey/every-ts"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakebailey%2Fevery-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakebailey%2Fevery-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakebailey%2Fevery-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakebailey%2Fevery-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakebailey","download_url":"https://codeload.github.com/jakebailey/every-ts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247543589,"owners_count":20955865,"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","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":"2024-10-01T17:28:50.962Z","updated_at":"2025-11-12T22:30:31.894Z","avatar_url":"https://github.com/jakebailey.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# every-ts\n\n[![npm](https://img.shields.io/npm/v/every-ts.svg)](https://npmjs.com/package/every-ts)\n[![node](https://img.shields.io/node/v/every-ts.svg)](https://nodejs.org)\n\n```console\n$ npm install -g every-ts\n$ every-ts\n```\n\n`every-ts` is a utility that can build _any_ version of TypeScript. Yes, that's\nright, any version, any commit, even main, v1.0.3, or in between. (If it breaks,\nlet me know!)\n\n`every-ts` can also be used to bisect TypeScript, without needing to know\nanything about TypeScript's build process.\n\nThis repo works by making a\n[\"blobless\" clone](https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/)\nof TypeScript (to save time and space), switching to the desired version, and\nbuilding it. The way to build TypeScript has changed over the years (even places\nwhich don't build with modern Node!), and `every-ts` knows how to build any of\nthem.\n\n## Switching versions\n\nTo switch versions, use `every-ts switch \u003crev\u003e`. This rev can be anything that\n`git` accepts. If `\u003crev\u003e` isn't found, `origin/\u003crev\u003e`, `origin/release-\u003crev\u003e`,\nand `v\u003crev\u003e` will also be tried. You may also pass in a `-dev` version, which\nwill be resolved to the commit that generated that nightly build.\n\n```console\n$ every-ts switch main                # Switches to `origin/main`\n$ every-ts switch release-2.7         # Switches to `origin/release-2.7`\n$ every-ts switch 1.8                 # Switches to `origin/release-1.8`\n$ every-ts switch 1.8~100             # Switches 100 commits before `origin/release-1.8`\n$ every-ts switch v1.1                # Switches the tag `v1.1`\n$ every-ts switch 5.3.0-dev.20231001  # Switches to the 20231001 nightly build\n```\n\n## Fetching new changes\n\nTo fetch the latest repo information, run `every-ts fetch`.\n\n## Running `tsc`\n\nTo invoke `tsc`, run `every-ts tsc`:\n\n```console\n$ every-ts switch main\n$ every-ts tsc\nVersion 5.3.0-dev\n$ every-ts switch 1.8~100\n$ every-ts tsc --version\nVersion 1.8.0\n$ every-ts switch v1.1\n$ every-ts tsc --version\nmessage TS6029: Version 1.1.0.0\n```\n\nAlternatively, you can use `every-ts exec` to run commands in an environment\nwith `tsc` on `PATH`:\n\n```console\n$ every-ts switch main\n$ every-ts exec tsc --version\nVersion 5.3.0-dev\n$ every-ts exec tsc -p ./path/to/tsconfig.json\n```\n\nYou can also link TypeScript into your package:\n\n```console\n$ every-ts dir\n/home/jake/every-ts/.data/TypeScript\n$ npm link $(every-ts dir)\n```\n\n## Using with VS Code\n\nTo get a working path to use with VS Code, run `every-ts tsdk` to get the option\nto add to `settings.json`:\n\n```console\n$ every-ts tsdk\n\"typescript.tsdk\": \"/home/jabaile/work/every-ts/.data/TypeScript/lib\"\n```\n\nRemember, you still need to use the \"Select TypeScript Version\" command to make\nthis active. The setting itself is not enough.\n\n## Bisecting\n\n`every-ts` wraps `git bisect`, building TypeScript automatically. To use it, run\n`every-ts bisect` just like you would `git bisect`:\n\n```console\n$ every-ts bisect start\nstatus: waiting for both good and bad commits\n$ every-ts bisect bad 5.3.0-dev.20231001\nstatus: waiting for good commit(s), bad commit known\n$ every-ts bisect good v5.1.6\nBisecting: a merge base must be tested\n[0aa49c152d37f97e16ad3d166701d0f7166a635e] Update package-lock.json\n$ every-ts tsc --version\nVersion 5.1.0-dev\n# Do something with `every-ts tsc`...\n$ every-ts bisect good\n$ every-ts bisect bad\n$ every-ts bisect bad\n# ...\n$ every-ts bisect good\n$ every-ts bisect bad\n607d96f6dfc6dc557fa370d8ae86f5191608ec91 is the first bad commit\ncommit 607d96f6dfc6dc557fa370d8ae86f5191608ec91\nAuthor: Jake Bailey \u003c5341706+jakebailey@users.noreply.github.com\u003e\nDate:   Thu Aug 3 15:53:30 2023 -0700\n\n    Improve performance of maybe stack in recursiveTypeRelatedTo (#55224)\n$ every-ts bisect reset\n```\n\n`bisect run` is also supported. The executed command will have TypeScript's bin\ndirectory prepended to the path, so you can run `tsc` directly:\n\n```console\n$ every-ts bisect start\nstatus: waiting for both good and bad commits\n$ every-ts bisect new v5.0.3\nstatus: waiting for good commit(s), bad commit known\n$ every-ts bisect old v4.9.4\nBisecting: a merge base must be tested\n[0aa49c152d37f97e16ad3d166701d0f7166a635e] Update package-lock.json\n$ every-ts bisect run tsc --version\n```\n\nFor more info on `git bisect`, see the\n[git docs](https://git-scm.com/docs/git-bisect).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakebailey%2Fevery-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakebailey%2Fevery-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakebailey%2Fevery-ts/lists"}