How to determine which package(s) where installed in afterAllInstalled hook? #2495
-
I'm writing a plugin that watches |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You might be looking for those hooks instead. They however only trigger on |
Beta Was this translation helpful? Give feedback.
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.