Quantcast
Channel: Recent Questions - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 7925

Why is typescript added as a Peer Dependency in solana web3js repos?

$
0
0

A lot if not all the repos in https://github.com/solana-labs/solana-web3.js/tree/master/packages have this in their package.js

"peerDependencies": {"typescript": ">=5"},

Is there a reason why it as to be a peerDependency and not a devDependency, peer dependencies seems to not be affected by the --prod flag in yarn and npm prune so it ends up bloating the production build. Am I missing something?, thanks!


Viewing all articles
Browse latest Browse all 7925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>