Closed jimmywarting closed 10 months ago
I'm willing to switch it to https://github.com/sindresorhus/find-up, but I think the best solution is just bundling dependencies and treeshaking (there's another issue for that).
Bundling was done and the read-package-up
dependency is now much smaller.
Regarding this function and
read-pkg-up
https://github.com/sindresorhus/meow/blob/e1f0e24840634ae58664a70ee9e19ab80166b3f3/index.js#L112-L115
It felt very unnecessary to install 39 packages and 674 KB of data for just trying to read the closest package.json file
Tried to come up with a pure js solution...
This is all the sub dependencies it have to install https://npmgraph.js.org/?q=read-pkg-up