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

Convert to typescript #287

Merged
merged 22 commits into from
Jun 11, 2024
Merged

Convert to typescript #287

merged 22 commits into from
Jun 11, 2024

Conversation

thecrypticace
Copy link
Contributor

Still a lot of types and stuff to improve but I've wanted to land this change for quite some time. Now seems like a good time to do it 😄

A few notes:

  • Jest has been replaced with Vitest
  • Fixture tests now run concurrently (yay)
  • Tests now complete in like 4s on my machine — making me fairly happy
  • The package has been switched to type: module — it was already ESM only but some internal scripts used CJS. I think this is a good time to change all of that over
  • We use tsup to generate types — but not for bundling. I need to do a split bundling thing where the built-in version of tailwind is required through a CJS module but that will be a separate improvement.

src/expiring-map.ts Outdated Show resolved Hide resolved
src/options.ts Outdated Show resolved Hide resolved
src/sorting.ts Outdated Show resolved Hide resolved
tests/fixtures.test.js Show resolved Hide resolved
@thecrypticace thecrypticace merged commit 5e7b8b5 into main Jun 11, 2024
1 check passed
@thecrypticace thecrypticace deleted the feat/convert-to-typescript branch June 11, 2024 13:02
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.

2 participants