dev-resources.site
for different kinds of informations.
Cleaning up unused Typescript Files with `ts-prune`
Published at
7/31/2023
Categories
todayilearned
javascript
ts
Author
coreyja
Author
7 person written this
coreyja
open
TLDR: npx ts-prune
will find us-used files in your Typescript project!
Recently at work I had some extra time on Friday. Not enough that I wanted to start a big task, but enough time to do some cleanup.
I found ts-prune
which looks through a TypeScript project and finds things that are unused. It helped me find things that were completely unused and could be cleaned up, and some types there were being exported from their file but didn't need to be!
ts-prune
is in maintenance mode, but I found it to work well for my usecase!
One caveat is that it just prints the files with errors to stdout, I had to go fix the issues manually. But well worth it for a more cleaned up repo!
ts Article's
30 articles in total
How to improve the Frontend part of the project using one button as an example :))))
read article
Azure App Service doesn't returned compressed (gzip) files for Angular application?
read article
Deploying a Simple Static Website on AWS with CDK and TypeScript
read article
Understanding Next.js and TypeScript Tutorial
read article
🛠️📚 Classes with TypeScript - a cheat sheet
read article
Event Loop in 2 Minutes
read article
How Boring It Is to Write Articles or Talk to Certain Types of Developers These Days.
read article
How ts-pattern can improve your code readability?
read article
isNaN vs Number.isNaN
read article
🛠️ 📦 TypeScript Generics - a cheat sheet
read article
TypeScript Generics: How to Write Flexible and Type-Safe Code
read article
Introduction to TypeScript
read article
Dominando os Utility Types do TypeScript
read article
Nega aynan Vue.js ?
read article
TS-BoilerplateX
read article
What Are Standalone Components Angular 17 ?
read article
Navigating the JS TS Limbo
read article
Demystifying TypeScript Generics with Simple Examples
read article
Typescript enum vs. "as const"
read article
Mastering TypeScript: A Comprehensive Tutorial
read article
m3u8 to mp4 with merged audio
read article
Shouldn't an NPM package that helps hundreds of thousands of programmers increase their productivity tenfold be open-sourced?
read article
ChatGPT: how I used it to convert HTTP requests to OpenAPI document
read article
Cleaning up unused Typescript Files with `ts-prune`
currently reading
Intern's Guide Chat GPT Full Stack: Nest, React, Typescript
read article
Using LiteFS with Bun on Fly.io
read article
Know your users' location in React Ts
read article
Regex #1: Understanding Regex, Regex-Based String Methods and Regex Flags
read article
The Witcher Card Game Live
read article
Powerful File System manager for Nodejs
read article
Featured ones: