This repository was archived by the owner on Oct 23, 2025. It is now read-only.
v0.4.0
ts-remove-unused v0.4.0 is released!
Support for re-exports
ts-remove-unused can now handle re-exports correctly. Let's say you have the following two files a.ts and a_reexport.ts
// a.ts
export const a = 'a';
export const a2 = 'a2';// a_rexport.ts
export { a, a2 } from './a.js';If a2 is not used across the whole project, ts-remove-unused will modify the files:
// a.ts
export const a = 'a';// a_reexport.ts
export { a } from "./a.js";Handling empty lines nicely
ts-remove-unused will handle empty lines with the following rules:
- removes leading empty lines from files that were edited
- removes trailing empty lines from files that were edited (limits the line break to max of 1)
- if the edit results in 3 or more consecutive line breaks, it will limit the line break to 2
What's Changed
🚀 Features
- feat: handle reexports by @kazushisan in #18
- feat: remove empty lines by @kazushisan in #19
🧹 Chores
- chore: update release note format by @kazushisan in #20
📖 Docs
- docs: add explanation about skip option by @kazushisan in #21
Full Changelog: v0.3.2...v0.4.0