Skip to content

Fix ESM build issues with TSC#146

Merged
Mrtenz merged 3 commits intomainfrom
mrtenz/fix-build-tsc
Mar 9, 2024
Merged

Fix ESM build issues with TSC#146
Mrtenz merged 3 commits intomainfrom
mrtenz/fix-build-tsc

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
@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.

2 participants