-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tooling to support ts files #358
base: master
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 1917513354
💛 - Coveralls |
packages/react-api/package.json
Outdated
@@ -18,15 +18,15 @@ | |||
"lib": "src", | |||
"test": "__tests__" | |||
}, | |||
"types": "src/index.d.ts", | |||
"types": "src/index.ts", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is in general discouraged to publish 'ts' files as typings
By publishing ts sources, you're forcing user to rely on "our" subset of typescript settings which arenot necessarily compatible with that of user project (like noImplicitAny, strictNullChecks...)
most configurations of typescript will not even compile them as they specifically exclude node_modules
thus, we still should publish .d.ts
files, but generated using tsc
No description provided.