Skip to content
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

feat: port to typescript #35

Merged
merged 8 commits into from
Jul 6, 2020
Merged

feat: port to typescript #35

merged 8 commits into from
Jul 6, 2020

Conversation

FauxFaux
Copy link
Contributor

@FauxFaux FauxFaux commented Jul 2, 2020

Fixes #34.

Nothing outrageous here. Compiler isn't apocalyptically angry about anything.. unless you turn strict on, then it is.

@FauxFaux FauxFaux requested a review from a team as a code owner July 2, 2020 16:23
@ghost ghost requested review from dkontorovskyy and gitphill July 2, 2020 16:23
"outDir": "./dist",
"target": "es2017",
"lib": [
"es2017"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

our lib template https://github.com/snyk/typescript-library uses es2018 - any reason not to do that here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is CLI, so node 8. https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping#node-8 . Your link is private, not CLI.

"eslint": "^6.8.0",
"eslint-config-prettier": "^6.11.0",
"prettier": "^2.0.5",
"typescript": "~3.8.3"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we not use latest? 3.9.5

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typescript do not follow semver, and we have an issue with 3.9 in other libraries around microsoft/TypeScript#38568 . Probably doesn't matter here, but.

Copy link

@gitphill gitphill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@FauxFaux FauxFaux merged commit d4de163 into master Jul 6, 2020
@FauxFaux FauxFaux deleted the feat/typescript branch July 6, 2020 07:34
@snyksec
Copy link

snyksec commented Jul 6, 2020

🎉 This PR is included in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add TypeScript types
3 participants