{"id":17816630,"url":"https://github.com/saurabhdaware/typescript-run","last_synced_at":"2025-03-18T03:31:01.224Z","repository":{"id":42041935,"uuid":"384543921","full_name":"saurabhdaware/typescript-run","owner":"saurabhdaware","description":"Run TypeScript files at lightning speed ⚡️ esbuild ftw! [deprecated]","archived":false,"fork":false,"pushed_at":"2023-10-01T16:24:43.000Z","size":49,"stargazers_count":51,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-28T06:54:15.067Z","etag":null,"topics":["npm-package","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/typescript-run","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saurabhdaware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-07-09T20:26:26.000Z","updated_at":"2024-02-02T08:26:23.000Z","dependencies_parsed_at":"2024-06-13T01:32:06.499Z","dependency_job_id":null,"html_url":"https://github.com/saurabhdaware/typescript-run","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saurabhdaware%2Ftypescript-run","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saurabhdaware%2Ftypescript-run/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saurabhdaware%2Ftypescript-run/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saurabhdaware%2Ftypescript-run/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saurabhdaware","download_url":"https://codeload.github.com/saurabhdaware/typescript-run/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243901836,"owners_count":20366256,"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":["npm-package","typescript"],"created_at":"2024-10-27T16:38:45.540Z","updated_at":"2025-03-18T03:31:00.958Z","avatar_url":"https://github.com/saurabhdaware.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# typescript-run\n\n\u003e **Warning**\n\u003e\n\u003e Deprecated. I started this project to-\n\u003e - Execute typescript files faster \n\u003e - have a `--watch` mode on them.\n\u003e\n\u003e [Bun](https://bun.sh/) has solved for both the cases in more performant way. So do check it out instead.\n\u003e\n\u003e You can also checkout [tsx](https://github.com/esbuild-kit/tsx) which has solved for both the cases as well.\n\n[ts-node](https://npmjs.com/package/ts-node) but extremely fast ⚡️ \n\nUses [esbuild](https://npmjs.com/package/esbuild) to compile TypeScript to JavaScript.\n\n[Run Demo on StackBlitz](https://stackblitz.com/edit/node-vhctbs?file=index.ts)\n## Install\n\nInstall globally\n```sh\nnpm i -g typescript-run\n\nts-run ./src/index.ts\n```\n\n*or*\n\nExecute with `npx`\n```sh\nnpx typescript-run ./src/index.ts\n```\n\n## Usage\n\n`ts-run` is an alias to `typescript-run`. You can use either of them.\n\n```sh\ntypescript-run \u003cfile-path\u003e # or `ts-run \u003cfile-path\u003e`\n```\n\n### Options\n\n#### Watch Mode \n\nPass `--watch` or `-w` flag to enable watch mode. This will listen to your file changes and re-run the script.\n\n```sh\nts-run src/index.ts --watch\n```\n\nBy default, watch flag will watch over the files that are going to part of your bundle (`.ts` `.js` files imported in entry file). You can also override this behavior by passing path to `--watch` flag with-\n```sh\nts-run src/index.ts --watch src\n```\n\nThis will watch over all the changes in `src` folder.\n\nYou can also pass multiple directories with `--watch src examples`. This will watch over `src` and `examples` both\n\n## When to use?\n\nUse `tsc` for builds and `typescript-run` for dev-mode.\n\n*Warning:*\n- *Not ready for serious projects*\n- *Make sure you check out [ESBuild TypeScript Caveats](https://esbuild.github.io/content-types/#typescript-caveats) first.*\n\n## Why esbuild?\n\n- Esbuild does not do type-checking which makes the TypeScript to JavaScript compilation super fast!\n- Type-checking is not a blocker for running scripts in dev-mode. IDEs can handle it as well as you can individually run `tsc` in emit mode.\n\n\nThanks! Have fun 🌻","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaurabhdaware%2Ftypescript-run","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaurabhdaware%2Ftypescript-run","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaurabhdaware%2Ftypescript-run/lists"}