TypeStrong / grunt-ts

A grunt task to manage your complete typescript development to production workflow
https://www.npmjs.com/package/grunt-ts
MIT License
330 stars 121 forks source link

Add strictNullChecks option #360

Closed markvandenbrink closed 7 years ago

markvandenbrink commented 8 years ago

The strictNullChecks option is currently not available in grunt-ts, though it is possible to use the nightly TS1.9 build with grunt-ts which supports this new feature. Would be nice if it could be added so people can already start using this upcoming feature (which is very nice!).

See: https://github.com/Microsoft/TypeScript/pull/7140

nycdotnet commented 8 years ago

It's possible to pass any arguments you wish to tsc with grunt-ts. Please see the documentation for the additionalFlags feature here:

https://github.com/TypeStrong/grunt-ts#additionalflags

Native support for TypeScript flags are generally added to grunt-ts after the official release due to churn/flags getting renamed or pulled, etc.

If you'd like to assist with updating grunt-ts to support the new parameters, please see this document for instructions:

https://github.com/TypeStrong/grunt-ts/blob/master/CONTRIBUTING.md#steps-to-update-grunt-ts-to-a-new-version-of-typescript

Thanks for contributing!

nycdotnet commented 7 years ago

This is implemented in 6.0.0-beta.6 on npm. Please give it a whirl and let me know if you hit any issues.

nycdotnet commented 7 years ago

I believe this is resolved in the latest beta on npm. Please re-open if not. Thank you!