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: match type declaration dir in package.json with updated tsconfig.json #160

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

abvthecity
Copy link
Contributor

@abvthecity abvthecity commented Jan 3, 2025

What went wrong:

package.json is pointing to the wrong filepath for type declarations—upgrading this dependency to 0.17.1 causes typescript linting to break in downstream projects.

This problem began in 0.17.0, and was also modified in 0.17.1.

In this PR:

package.json should now point to the same {declarationDir}/index.d.ts as specified in tsconfig.json

@abvthecity abvthecity changed the title fix: correct esm types declaration folder in package.json fix: match declaration dir in package.json with updated tsconfig.json Jan 3, 2025
@abvthecity abvthecity changed the title fix: match declaration dir in package.json with updated tsconfig.json fix: match type declaration dir in package.json with updated tsconfig.json Jan 3, 2025
@abvthecity
Copy link
Contributor Author

@PaulAsjes no urgency here, ran into this while bootstrapping a pet project, pinned the version to 0.16.2 as a workaround for now.

Copy link
Collaborator

@PaulAsjes PaulAsjes left a comment

Choose a reason for hiding this comment

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

Thanks for this!

@PaulAsjes PaulAsjes merged commit d852bfc into workos:main Jan 3, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants