Skip to content

chore: switch codebase to default esm #3959

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

Merged
merged 11 commits into from
May 23, 2025
Merged

Conversation

dreamorosi
Copy link
Contributor

Summary

Changes

Please provide a summary of what's being changed

This PR switches the two tsconfig.json files at the top level to use ESM first, and updates all the child configs accordingly.

The reason behind this change is explained in details in the linked issue.

Please add the issue number below, if no issue is present the PR might get blocked and not be reviewed

Issue number: closes #3958


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@dreamorosi dreamorosi self-assigned this May 21, 2025
@boring-cyborg boring-cyborg bot added dependencies Changes that touch dependencies, e.g. Dependabot, etc. internal PRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.) labels May 21, 2025
@pull-request-size pull-request-size bot added the size/XL PRs between 500-999 LOC, often PRs that grown with feedback label May 21, 2025
@dreamorosi dreamorosi marked this pull request as draft May 21, 2025 16:53
@boring-cyborg boring-cyborg bot added the automation This item relates to automation label May 21, 2025
@dreamorosi dreamorosi marked this pull request as ready for review May 22, 2025 08:54
@dreamorosi dreamorosi requested a review from am29d May 22, 2025 08:56
@dreamorosi
Copy link
Contributor Author

@am29d this is a pre-requisite to eventually move to Zod v4, the diff is kinda large but it's really the same 4 files changed over and over across packages.

I tested the build locally and it seems to work as before.

@dreamorosi dreamorosi marked this pull request as draft May 22, 2025 09:05
@dreamorosi dreamorosi removed the request for review from am29d May 22, 2025 09:05
@dreamorosi
Copy link
Contributor Author

Apologies for the notification - e2e tests are failing on the layers, will need to investigate further, but I won't be able to do it before tomorrow most likely.

@dreamorosi
Copy link
Contributor Author

Found the issue and fixed it, now the tests are passing.

I had forgot to switch one of the config files, e2e tests saved the day.

@boring-cyborg boring-cyborg bot added the tests PRs that add or change tests label May 23, 2025
Copy link

@dreamorosi dreamorosi marked this pull request as ready for review May 23, 2025 13:40
@dreamorosi dreamorosi requested a review from am29d May 23, 2025 13:40
@dreamorosi dreamorosi merged commit ab0730f into main May 23, 2025
41 checks passed
@dreamorosi dreamorosi deleted the chore/switch_esm_default branch May 23, 2025 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation This item relates to automation dependencies Changes that touch dependencies, e.g. Dependabot, etc. internal PRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.) size/XL PRs between 500-999 LOC, often PRs that grown with feedback tests PRs that add or change tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maintenance: switch tsconfig to ESM first
3 participants