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

Fix ESM build issues with TSC #146

Merged
merged 3 commits into from
Mar 9, 2024
Merged

Fix ESM build issues with TSC #146

merged 3 commits into from
Mar 9, 2024

Conversation

Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Mar 9, 2024

Temporary alternative for #144, which doesn't require bumping the Node.js version.

@Mrtenz Mrtenz requested a review from a team as a code owner March 9, 2024 10:24
],
"exclude": [
"node_modules",
"dist"
Copy link
Member

Choose a reason for hiding this comment

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

Why is this needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Otherwise TypeScript will try to build dist again, but that results in errors since it's also writing to dist.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not really needed now that I've added rimraf I guess, but it doesn't hurt to add it.

],
"exclude": [
"node_modules",
"dist"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"dist"
"dist",
"**/*.test.ts"

],
"exclude": [
"node_modules",
"dist"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"dist"
"dist",
"**/*.test.ts"

@Mrtenz Mrtenz merged commit 147e95b into main Mar 9, 2024
8 checks passed
@Mrtenz Mrtenz deleted the mrtenz/fix-build-tsc branch March 9, 2024 10:38
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.

None yet

2 participants