Skip to content

How to determine which package(s) where installed in afterAllInstalled hook? #2495

Answered by arcanis
Strandedpirate asked this question in Q&A
Discussion options

You must be logged in to vote

You might be looking for those hooks instead. They however only trigger on yarn add (ie not if you add something directly into your package.json), so YMMV. Apart from that, Yarn doesn't keep track of the previous dependency tree (it always just regenerates it and compare with what's on the disk), so you would have to make your own bookkeeping.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Strandedpirate
Comment options

Answer selected by merceyz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants