antfu-collective / bumpp

Interactive CLI that bumps your version numbers and more
https://jstools.dev/version-bump-prompt/
MIT License
597 stars 43 forks source link

fix: tsup build esm import `ReleaseType` error #22

Closed dockfries closed 9 months ago

dockfries commented 11 months ago

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

tjx666 commented 9 months ago

@antfu very need this to make bumpp works in esm context