microsoft / just

The task library that just works
https://microsoft.github.io/just
MIT License
1.95k stars 92 forks source link

Should @types be dependencies rather than devDepdencies? #722

Closed ShuiRuTian closed 1 year ago

ShuiRuTian commented 1 year ago

Please refer this great article: https://rushjs.io/pages/advanced/phantom_deps/

If the @types packages are not one of dependencies, when using a project manager which could avoid phantom deps, the @types packages would not be found.

For example, use pnpm to download just-scripts, and you will find argv() will give you a useless "Argument" type, because it could not be found. This also implies it might use wrong version of types.