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

TypeScript: drop babel #212

Merged
merged 6 commits into from
Oct 20, 2020
Merged

TypeScript: drop babel #212

merged 6 commits into from
Oct 20, 2020

Conversation

mmkal
Copy link
Contributor

@mmkal mmkal commented Oct 20, 2020

Related: #209
Part of #195

This removes 10 (!) babel-related dev dependencies, and switches over build and test commands to use typescript only.

Some type changes were needed because inline-loops.macro has pretty loose types, and was letting us get away with more hand-waving than Array.prototype.map does.

This loses the benefit of automatically naming anonymous functions (e.g. default exports), so in a follow-up PR I'm planning on switching to named exports. Lastly, I'll audit unnecessary comment directives.

nyc worked fine for me locally with ts-node, but let's see if coveralls is still able to pick up the report.

@coveralls
Copy link

Coverage Status

Coverage increased (+4.4%) to 87.367% when pulling 8343917 on mmkal:ts/dropBabel into 7fe5c36 on gajus:typescript.

@gajus gajus merged commit 8a47ccf into gajus:typescript Oct 20, 2020
@gajus
Copy link
Owner

gajus commented Oct 20, 2020

This is great

mmkal added a commit to mmkal/slonik that referenced this pull request Oct 21, 2020
* Type tests from definitely tests

This adds tests defined for the types in https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/slonik/slonik-tests.ts

Exports some new methods to make them pass. Some modifications made for breaking changes that weren't ported over there.

Uses expect-type for testing

* token types

* Use generics for some internal types

* Make createSqlTag generic

* Switch from babel to typescript for building
@gajus
Copy link
Owner

gajus commented Oct 21, 2020

🎉 This PR is included in version 22.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@gajus gajus added the released label Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants