jeffijoe / typesync

Install missing TypeScript typings for dependencies in your package.json.
MIT License
1.51k stars 21 forks source link

Support PNPM Monorepos #118

Closed lishaduck closed 2 months ago

lishaduck commented 2 months ago

Many monorepos these days use pnpm. It uses a different format for specifying workspaces. I'd be happy to add support sometime if you'd be willing to review a PR.

Discovered while investigating #116.

jeffijoe commented 2 months ago

Sure! Will it be a big change?

lishaduck commented 2 months ago

Sure! Will it be a big change?

Ehh. It'd require reading pnpm-workspace.yaml and extracting out the projects key. Not too bad, but the way it's stored right now might need some refactoring. And we'd need a yaml parser. As this uses cosmiconfig, I figure we could use js-yaml to keep the size down, as that's what cosmiconfig uses.

lishaduck commented 2 months ago

YESITY YESITY YESITY YES!!!!

I did it 🥳

😉