bumpp
bumpp copied to clipboard
fix: tsup build esm import `ReleaseType` error
Description
This PR contains two fixes.
One is the extra ts type ReleaseType
in the build,
and the other is that when tsup
is packing, it encounters picocolors
to generate esm and builds an invalid __require
.
Dynamic require of "tty" is not supported
Linked Issues
fixes #9
Additional context
referenced from 为什么是 tsup and discussion Make require work in ESM bundle