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: add type property under conditional exports in package.json #18

Closed
wants to merge 8 commits into from

Conversation

minenwerfer
Copy link
Contributor

This PR solves a tsc problem that occurs when "module": "nodenext" is set in tsconfig.json (I couldn't figure why exactly). Setting compilerOptions.paths also solves the problem, but I think it would be more convenient if this was changed in the upstream.

Without any changes:

Error: src/property.ts(1,35): error TS7016: Could not find a declaration file for module '@phosphor-icons/core'. 
'/home/runner/work/sonata-api/sonata-api/packages/types/node_modules/@phosphor-icons/core/dist/index.umd.js' implicitly has an 'any' type.

@minenwerfer
Copy link
Contributor Author

I think I messed with the previous commits, I'll open another PR if you'd prefer.

Copy link
Member

@rektdeckard rektdeckard left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for the submission!

@rektdeckard
Copy link
Member

Can't see any conflicts, but unable to rebase and merge. Would you resubmit?

@minenwerfer
Copy link
Contributor Author

Can't see any conflicts, but unable to rebase and merge. Would you resubmit?

Hey, I see you already pushed this to main, should the PR be closed now?

@rektdeckard
Copy link
Member

Yep, sorry to jump the gun on you! Thanks for the fix anyway.

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