{"id":16616201,"url":"https://github.com/kidonng/typescript","last_synced_at":"2025-03-21T14:31:26.769Z","repository":{"id":58898617,"uuid":"533781546","full_name":"kidonng/typescript","owner":"kidonng","description":"A tiny redistribution of TypeScript","archived":false,"fork":false,"pushed_at":"2023-02-13T07:28:08.000Z","size":22,"stargazers_count":17,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T20:04:42.309Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npm.im/@kidonng/typescript","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kidonng.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":"2022-09-07T13:37:26.000Z","updated_at":"2024-11-09T20:07:42.000Z","dependencies_parsed_at":"2024-10-28T10:32:17.676Z","dependency_job_id":null,"html_url":"https://github.com/kidonng/typescript","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.3125,"last_synced_commit":"71b6302b3dfd992617942f50dc3e1285a1fe5ff7"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidonng%2Ftypescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidonng%2Ftypescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidonng%2Ftypescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kidonng%2Ftypescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kidonng","download_url":"https://codeload.github.com/kidonng/typescript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244141470,"owners_count":20404837,"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-12T02:12:13.452Z","updated_at":"2025-03-21T14:31:26.475Z","avatar_url":"https://github.com/kidonng.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TypeScript\n\n\u003e A tiny redistribution of [TypeScript](https://github.com/microsoft/TypeScript)\n\n- Main modules are minified (`tsc.js` in `@kidonng/tsc` \u0026 `typescript.js` in `@kidonng/typescript`)\n- Other modules are removed (including `tsserver`)\n- Localization data and diagnostics messages are removed\n\n## `@kidonng/tsc` [![install size](https://packagephobia.com/badge?p=@kidonng/tsc)](https://packagephobia.com/result?p=@kidonng/tsc)\n\n```sh\nnpm install @kidonng/tsc\n```\n\nContains only the `tsc` executable. Choose this if:\n\n- Your build process only requires `tsc`\n- Your build tools don't `import {stuff} from 'typescript'` (e.g. [`esbuild`](https://github.com/evanw/esbuild))\n- You only use `tsc` for type checking (e.g. `tsc --noEmit`)\n\n## `@kidonng/typescript` [![install size](https://packagephobia.com/badge?p=@kidonng/typescript)](https://packagephobia.com/result?p=@kidonng/typescript)\n\n\u003cdetails\u003e\n\u003csummary\u003eOverride in \u003cstrong\u003enpm/yarn 1\u003c/strong\u003e\u003c/summary\u003e\n\n```sh\nnpm install typescript@npm:@kidonng/typescript\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eOverride in \u003cstrong\u003epnpm\u003c/strong\u003e\u003c/summary\u003e\n\nAdd to `package.json`:\n\n```json\n{\n  \"pnpm\": {\n    \"overrides\": {\n      \"typescript\": \"npm:@kidonng/typescript@^4.8.3\"\n    }\n  }\n}\n```\n\n\u003c/details\u003e\n\nContains only the `typescript.js` module. Choose this if:\n\n- Your code `import {stuff} from 'typescript'`\n- Your build tools `import {stuff} from 'typescript'` (e.g. [`@rollup/plugin-typescript`](https://github.com/rollup/plugins/tree/master/packages/typescript))\n- Your dependencies `import {stuff} from 'typescript'` (e.g. [TypeScript ESLint](https://github.com/typescript-eslint/typescript-eslint))\n\n\u003e **Note**: this package does **NOT** include the `tsc` executable. Install `@kidonng/tsc` as well if you need it.\n\n## Motivation\n\n\u003e Also read [my post on r/javascript](https://www.reddit.com/r/javascript/comments/xcygcc/comment/io7xwa8/)\n\nThere's only one bad thing about TypeScript: [![install size](https://packagephobia.com/badge?p=typescript)](https://packagephobia.com/result?p=typescript). Every package/project is small until it uses/depends on `typescript`.\n\nTypeScript has been [working on modularization](https://github.com/microsoft/TypeScript/issues/27891) but it is a very slow process. Meanwhile the usage is only soaring. This is an imperfect solution to the issue, but I hope it serves well.\n\nThe biggest offender seems to be `tsserver`, which is unnecessary most of the time because your editor already comes with one. Dropping it should be harmless most of the time.\n\n## Questions\n\n**Is there any compatibility issue?**\n\nIt should be a drop-in replacement to the official package. Manual E2E test using the [Vite](https://github.com/vitejs/vite) repository has been successful.\n\nThe only compatibility issue is with Yarn 2+ (Berry), which [patches TypeScript](https://github.com/yarnpkg/berry/tree/master/packages/plugin-compat) to solve its own compatibility issues.\n\n**How can I ensure this distribution does not contain malicious code?**\n\nWhile I'm not credible enough to guarantee anything, the build and publish process is publicly available in GitHub Actions log.\n\nAs with anything open source, you can always build this thing yourself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkidonng%2Ftypescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkidonng%2Ftypescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkidonng%2Ftypescript/lists"}