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(common): Move typing dependencies to peer #477

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sebimarkgraf
Copy link

This could be a fix for #474 and the other related issues.

This ignores the type import of antd and casts it to any if antd is not installed.
Additionally, the antd dependency is downgraded to peer in common.

If ui is installed the direct dependency would lead to the correct typing being filled in.

Copy link

vercel bot commented Apr 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
pdfme-playground ⬜️ Ignored (Inspect) Visit Preview Apr 30, 2024 2:48pm
pdfme-playground-v4 ⬜️ Ignored (Inspect) Visit Preview Apr 30, 2024 2:48pm

@sebimarkgraf
Copy link
Author

Something that could be interesting, is doing the same thing with form-render, but I am unsure if form-render is a real dependency

@sebimarkgraf
Copy link
Author

The tests are passing with form-render as peer as well.

Should I do additional checks?

@sebimarkgraf sebimarkgraf changed the title fix(dep): Remove antd as direct dependency of common fix(common): Move typing dependencies to peer Apr 30, 2024
@hand-dot
Copy link
Collaborator

Hey @sebimarkgraf !

Sorry for the delayed response.
I plan to merge it if everything works fine on my end after verification.

@svivenns
Copy link

Hi @hand-dot, any update on this MR, thank you.

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

3 participants