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

[Pack up] Prompt validations are not typed #3

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

[Pack up] Prompt validations are not typed #3

joshuaellis opened this issue May 7, 2024 · 0 comments

Comments

@joshuaellis
Copy link
Contributor

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
@hanpaine hanpaine changed the title [bug]: prompt validations are not typed [Pack up] Prompt validations are not typed Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To be reviewed (Open)
Development

No branches or pull requests

2 participants