In our case, we can use our own find-up-simple package to do so beforehand to achieve the same result, and stick with find-yarn-workspace-root which seems to be the more popular solution. https://www.npmjs.com/package/find-yarn-workspace-root
The latest versions of find-yarn-workspace-root2 seems to have added a lot more dependencies, and this library had pinned a specific version of it for a while.
Move
find-yarn-workspace-root2
tofind-yarn-workspace-root
. AFAICT the only difference is thatfind-yarn-workspace-root2
usespkg-dir
to find the closestpackage.json
first, before finding the yarn workspace root. https://www.npmjs.com/package/find-yarn-workspace-root2/v/1.2.16?activeTab=codeIn our case, we can use our own
find-up-simple
package to do so beforehand to achieve the same result, and stick withfind-yarn-workspace-root
which seems to be the more popular solution. https://www.npmjs.com/package/find-yarn-workspace-rootThe latest versions of
find-yarn-workspace-root2
seems to have added a lot more dependencies, and this library had pinned a specific version of it for a while.