Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Bun build fails if you can't typecheck

It has to run TSC (or expect somebody else to run it) in order to typecheck, though, right?



I am mistaken. Yeah bun does not typescheck like esbuild doesn't. It reads the tsconfig for build options. Either you add tsc or let your editor do it.


That's my understanding, too.

> Bun can run .js, .ts, .cjs, .mjs, .jsx, and .tsx files, which can replace: > > tsc — (but you can keep it for typechecking!)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: