zkochan / packages

Zoltan Kochan's npm packages
MIT License
99 stars 26 forks source link

refactor(preferred-pm): use find-yarn-workspace-root #203

Open bluwy opened 2 months ago

bluwy commented 2 months ago

Move find-yarn-workspace-root2 to find-yarn-workspace-root. AFAICT the only difference is that find-yarn-workspace-root2 uses pkg-dir to find the closest package.json first, before finding the yarn workspace root. https://www.npmjs.com/package/find-yarn-workspace-root2/v/1.2.16?activeTab=code

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.