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

Multiple Plugins with content types with the same name leads to problems #30

Open
EsGeh opened this issue Aug 28, 2023 · 0 comments
Open
Labels
bug Something isn't working enhancement New feature or request

Comments

@EsGeh
Copy link

EsGeh commented Aug 28, 2023

Description

Let's say a strapi project uses 2 different types of plugins, e.g. nav1 and nav2 which both export some content type Navigation
Generating types for the project:

$ npx t4s --reader load-strapi --delete-old --in . --out src/generated/types/

Problem

Invalid output.
src/generated/types/ contains only one file named Navigation.ts. Its content contains a mess (invalid Typescript code). Seems like it was concurrently written by 2 threads without proper synchronizisation.

Suggestion:

  • Prefix output files with the plugin names.
  • Add command line options to include / exclude plugins
@Alexnortung Alexnortung added enhancement New feature or request bug Something isn't working labels Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants