egoist / tsup

The simplest and fastest way to bundle your TypeScript libraries.
https://tsup.egoist.dev
MIT License
8.99k stars 217 forks source link

Silently fails to build #106

Closed talentlessguy closed 4 years ago

talentlessguy commented 4 years ago

The problem

Hello, I was trying to transfer my lib from using Rollup to Tsup, but it fails silently, both for ESM and CJS, with no any errors in stderr.

Command:

tsup src/index.ts --format cjs,esm --dts

Result:

image

Reproduction repository: https://github.com/talentlessguy/parsec

note that it builds fine with rollup + rollup-plugin-typescript2

Solution

Catch all errors and output them in the stderr

talentlessguy commented 4 years ago

the fix was changing target to lowercase, but still, the error from esbuild must be output

github-actions[bot] commented 4 years ago

:tada: This issue has been resolved in version 3.4.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: