ds300 / react-native-typescript-transformer

Seamlessly use TypeScript with React Native
MIT License
657 stars 50 forks source link

Feature request: respect 'noEmitOnError' #29

Open almostintuitive opened 7 years ago

almostintuitive commented 7 years ago

Hi,

It's super nice to see this happening!

noEmitOnError is the one of the main reasons we're using TypeScript. It'd be great if the packager would fail the build if there's a type error - that's currently the expected way according to everyone who's working on this project.

We'd be happy to even submit a PR for this. Will/would it be accepted?

Thank you!

ds300 commented 7 years ago

This was already discussed in #15

I would very much like to be able to provide this as an option. If you can overcome the following problems I'd gladly accept a PR for the feature:

almostintuitive commented 7 years ago

For reference, there are quite a few issues on the TS repo documenting the difference between tsx and transpileModule https://github.com/Microsoft/TypeScript/issues/4864

henrikra commented 6 years ago

I think the workaround for this problem which is here https://github.com/ds300/react-native-typescript-transformer/issues/15#issuecomment-331355513 should be mentioned in README etc because this prevents developer to commit shit to the code base :D