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

chore(web): updates most @types/node dependencies, makes them consistent 🏃 #11319

Merged
merged 4 commits into from
May 15, 2024

Conversation

jahorton
Copy link
Contributor

@jahorton jahorton commented Apr 29, 2024

Amother notable task I identified while working on #11300 (toward resolving #10497) is that a number of our packages have considerably out-of-date @types/node dependencies. The testing framework we'll likely be transitioning to includes a dependency of its own that requires a more recent version than some of the packages currently utilize... including the one installed in our monorepo root package.

Re: @types/node updates: https://stackoverflow.com/a/52404327

  • Put simply, the type of the typings package should match that of node. As we're currently on Node 18, I updated to the latest v18 typings. If we shift to 20 (or higher) before this lands, this should be updated again.

Note: I believe I did leave a few package-specific @types/node dependencies in place. If a package used something more recent than v18, I left it untouched in case there's something v20-specific that is relevant.

Fun(?) fact: tsc loads all @types/ packages in node-modules when compiling, regardless of whether or not they're actually relevant to the code being compiled. This fact was breaking builds once I started to use the upcoming test framework.

@keymanapp-test-bot skip

@jahorton jahorton force-pushed the chore/web/consistent-npm-types branch from 508cfae to 01d0019 Compare May 7, 2024 07:40
Base automatically changed from chore/web/chai-update to master May 15, 2024 07:10
@jahorton jahorton merged commit d6ea20f into master May 15, 2024
25 checks passed
@jahorton jahorton deleted the chore/web/consistent-npm-types branch May 15, 2024 07:10
@keyman-server
Copy link
Collaborator

Changes in this pull request will be available for download in Keyman version 18.0.36-alpha

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

Successfully merging this pull request may close these issues.

4 participants