If I have the following file hierarchy:
packages/project1
packages/project2
and the workspace is packages/*
What is the best way to install an npm package for only project1 and not project2, while ensuring the yarn lock file includes the dependency?
Is there a specific functionality in yarn that allows for this? I haven't found any information about it in the documentation.