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

Export base schema classes #41

Closed
wants to merge 1 commit into from
Closed

Export base schema classes #41

wants to merge 1 commit into from

Conversation

adrianNEMO
Copy link

❓ Type of change

  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

When a vine validator is exported by another package (e.g. a common package in a monorepo), which is built by tsc it cannot be compiled since tsc cant reference the schema base classes. By exporting the classes and including the path in the package.json exports this gets fixed.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@Julien-R44
Copy link
Member

Julien-R44 commented Mar 14, 2024

hey!

could you provide a minimal reproduction repo please?
i would like to see if it can be fixed without exporting these classes

Thanks

@Julien-R44
Copy link
Member

oops didn't see it was a pull request. so yeah, it could be great if you could create an issue before please

@adrianNEMO
Copy link
Author

hey!

could you provide a minimal reproduction repo please? i would like to see if it can be fixed without exporting these classes

Thanks

Sure, when you try to build the project it will fail since it cannot include the types: https://github.com/adrianNEMO/vine-package-example

@adamcikado adamcikado mentioned this pull request Apr 29, 2024
2 tasks
@RomainLanz
Copy link
Member

Merged in #48

@RomainLanz RomainLanz closed this May 20, 2024
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.

3 participants