Came up with an idea when walking back home, so I stopped to sit in a cafè to verify it.
So here it is. It turns out to be quite simple, but I found it super helpful when authoring libraries. To explicitly aware the public APIs we exposed. Wish I could have it early on.
github.com/antfu/vitest...GitHub - antfu/vitest-package-exports: An Vitest util to get all exported APIs of a package and prevent unintended breaking changes.
An Vitest util to get all exported APIs of a package and prevent unintended breaking changes. - antfu/vitest-package-exports