I'm upgrading an old typescript project. Many years ago, most packages had corresponding @types
packages. Nowadays, typings are usually included in the main package, therefore typing packages got obsolete.
A typical example is yup. Many years ago it needed @types/yup, but now it's deprecated.
I have 30+ typing packages in my project, and because I don't want to manually clean them, I'm asking:
- What if I just leave them in
pakages.json
? I guess there is a big chance they would mislead typescript and IDE, right? - Is there a command or script to list or clean deprecated packages?