{"id":24228759,"url":"https://github.com/blacha/tsbuildinfo","last_synced_at":"2025-09-22T21:30:48.858Z","repository":{"id":37796158,"uuid":"308758141","full_name":"blacha/tsbuildinfo","owner":"blacha","description":"Debug long build times using tsconfig.tsbuildinfo","archived":false,"fork":false,"pushed_at":"2023-01-10T17:07:00.000Z","size":120,"stargazers_count":14,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-09T12:48:49.243Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blacha.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-30T22:36:30.000Z","updated_at":"2024-07-18T20:31:16.000Z","dependencies_parsed_at":"2023-02-08T19:30:25.756Z","dependency_job_id":null,"html_url":"https://github.com/blacha/tsbuildinfo","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Ftsbuildinfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Ftsbuildinfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Ftsbuildinfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Ftsbuildinfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blacha","download_url":"https://codeload.github.com/blacha/tsbuildinfo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233885580,"owners_count":18745608,"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":"2025-01-14T11:32:39.150Z","updated_at":"2025-09-22T21:30:48.510Z","avatar_url":"https://github.com/blacha.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tsbuildinfo\n\nTool to debug slow build times by looking for large type definitions that may have been erroneously imported.\n\n\nIn some typescript projects AWS-SDK has been a very large source of typescript compile slowdowns.\nby switching form a base import to directly importing the s3 client the build times for one package went from 6 seconds down to 2 seconds.\n\n```typescript\n// Bad\nimport * as AWS from 'aws-sdk';\n\n// Good\nimport s3 from 'aws-sdk/clients/s3';\n```\n\n## Usage\n\n```\ntsbuildinfo \u003cPath to tsconfig.tsbuildinfo\u003e\n```\n\n\n### Example\n\nHere is a repository that has a base import `import * as AWS from 'aws-sdk'`\n\n```\ntsbuildinfo ~/basemaps/packages/linzjs-s3fs/tsconfig.tsbuildinfo\n\nProcessing /home/blacha/workspace/basemaps/packages/linzjs-s3fs/tsconfig.tsbuildinfo\n\nLargest Imported Modules: \n23.73 MB   aws-sdk\n1.13 MB    typescript\n684.81 KB  @types/node\n81.97 KB   @types/sinon\n71.46 KB   @types/aws-lambda\n\nImport Paths:\n         ./src/__tests__/file.s3.test.ts =\u003e aws-sdk\n         ./src/file.s3.ts =\u003e aws-sdk\n         ./src/index.ts =\u003e aws-sdk\n         ./src/file.local.ts =\u003e @types/node\n         ./src/file.s3.ts =\u003e @types/node\n         ./src/file.ts =\u003e @types/node\n         ./src/index.ts =\u003e @types/node\n         ./src/__tests__/file.s3.test.ts =\u003e @types/sinon\n```\n\n\nAfter switching to `import s3 from 'aws-sdk/clients/s3';`\n\n```\nProcessing /home/blacha/workspace/basemaps/packages/linzjs-s3fs/tsconfig.tsbuildinfo\n\nLargest Imported Modules: \n1.13 MB    typescript\n684.81 KB  @types/node\n581.09 KB  aws-sdk\n81.97 KB   @types/sinon\n71.46 KB   @types/aws-lambda\n\nImport Paths:\n         ./src/file.local.ts =\u003e @types/node\n         ./src/file.s3.ts =\u003e @types/node\n         ./src/file.ts =\u003e @types/node\n         ./src/index.ts =\u003e @types/node\n         ./src/__tests__/file.s3.test.ts =\u003e aws-sdk\n         ./src/file.s3.ts =\u003e aws-sdk\n         ./src/index.ts =\u003e aws-sdk\n         ./src/__tests__/file.s3.test.ts =\u003e @types/sinon\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacha%2Ftsbuildinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblacha%2Ftsbuildinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacha%2Ftsbuildinfo/lists"}