manypkg icon indicating copy to clipboard operation
manypkg copied to clipboard

`Packages` no longer serializable

Open benmccann opened this issue 1 year ago • 1 comments

In get-packages version 1 the returned Packages type was serializable. In version 2 it is not: https://github.com/Thinkmill/manypkg/blob/045f7d7dabfa8a25b9d160661184a35eb4b5eaa7/packages/tools/src/Tool.ts#L116

changesets is stuck on version 1 as a result.

changesets is responsible for more than 80% of the usage of this package: https://packages.ecosyste.ms/registries/npmjs.org/packages/@manypkg%2Fget-packages/dependent_packages?kind=runtime&latest=true&order=desc&sort=downloads

Would you accept a PR to restore the serializability of the return value?

benmccann avatar Aug 12 '24 00:08 benmccann

Would you accept a PR to restore the serializability of the return value?

I'd be interested in your take on the problem.

When v2 was released I didn't realize that this serializability was needed for Changesets 😢

Andarist avatar Aug 12 '24 07:08 Andarist