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

[bug]: prompt validations are not typed #3

Open
joshuaellis opened this issue May 7, 2024 · 0 comments
Open

[bug]: prompt validations are not typed #3

joshuaellis opened this issue May 7, 2024 · 0 comments
Labels
issue: bug Issue reporting a bug

Comments

@joshuaellis
Copy link
Member

joshuaellis commented May 7, 2024

What version of @strapi/pack-up are you using?

  • version: 5.0.0

What's Wrong?

When creating a custom template and using the definePackageOption function, the validate property function is not typed, because pack-up uses a version of prompts without types, you then have to install your own @types/prompts package

Expected Behaviour

You should not need to install the package and the types should be available. To solve this, move the types package to the dependences property of the package.json

@joshuaellis joshuaellis added the issue: bug Issue reporting a bug label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug
Projects
None yet
Development

No branches or pull requests

1 participant