{"by":"kazushisan","descendants":66,"id":41554014,"kids":[41592092,41589313,41590377,41591677,41592853,41589648,41590504,41589150,41591336,41583894,41602668,41591594,41590532,41591131,41591153,41591235,41591155,41591618,41592508,41591623,41589612,41589494,41593041,41595632],"score":141,"text":"ts-remove-unused is a command line tool for TypeScript projects that auto-fixes unused `export`s. It removes the export keyword from the declaration or the whole declaration based on its usage in the project.<p>There are some similar tools but they are focused on &quot;detecting&quot; rather than &quot;removing&quot; so I&#x27;ve built one myself. I wanted a solution that&#x27;s as minimal as possible; config files to specify the files in your project shouldn&#x27;t be necessary because that info should be already configured in tsconfig.json. All you need to do is to specify your entrypoint file.<p>Feedback is much appreciated!","time":1726475973,"title":"Show HN: ts-remove-unused – Remove unused code from your TypeScript project","type":"story","url":"https://github.com/line/ts-remove-unused"}