You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
The text was updated successfully, but these errors were encountered:
Description
Let's say a strapi project uses 2 different types of plugins, e.g.
nav1
andnav2
which both export some content typeNavigation
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 namedNavigation.ts
. Its content contains a mess (invalid Typescript code). Seems like it was concurrently written by 2 threads without proper synchronizisation.Suggestion:
The text was updated successfully, but these errors were encountered: