-
Notifications
You must be signed in to change notification settings - Fork 21
Replace the babel compiler with the typscript compiler #9
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
Conversation
tsconfig.json
Outdated
"allowJs": true | ||
}, | ||
"files": [ | ||
"src/textarea-autosize.js" |
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.
Thanks for moving this to a src/
directory. Many of our repositories don't have one because the code base started out as a single source file. But as modules are added projects we really need a src
directory to organize them.
Maybe we could standardize on src/index.js
as the entry point as well. I often spend a few seconds stumbling through my editor looking for the main file while bouncing between repositories.
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.
Maybe we could standardize on
src/index.js
as the entry point as well. I often spend a few seconds stumbling through my editor looking for the main file while bouncing between repositories.
Yeah I think that's fair. Having a src/
directory seems to be a typescript convention that I really like.
textarea-autosize.d.ts
Outdated
} | ||
|
||
export default function autosize(textarea: HTMLTextAreaElement): Subscription; |
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.
This file can be deleted now that tsc generates it.
Waiting to see how github/remote-input-element#19 shakes out before continuing with this work. |
Co-Authored-By: Keith Cirkel <keithamus@users.noreply.github.com>
Co-Authored-By: Keith Cirkel <keithamus@users.noreply.github.com>
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.
Nice! LGTM 👍
Instead of updating the babel compiler here, we just replace it with the typescript compiler.
Note that this change will fail in CI until we merge github/eslint-plugin-github#78