-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Fix: typescript build cleaning and type generation #18775
Conversation
Size Change: 0 B Total Size: 645 kB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Ben ⭐
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Hello, when does version 4.15.5 come out with the fixes? |
@edgardoll4 it has been released last Wednesday |
should I add |
What does it do?
develop
command builds ignoring errors to allow types to generateNote: This PR does not change types generation on startup, meaning that manual schema changes still require a
yarn strapi ts:generate-types
before starting the serverWhy is it needed?
Currently using the CTB with a typescript project, creating a new content type causes the server to become unable to start up again without manually running ts:generate-types
Additionally, the dist dir was not being cleaned, meaning that old content types would appear in the CTB until the dist folder was cleaned manually.
How to test it?
Create and delete new content types with the CTB. Now it should work and the server should restart, new content types should appear, and old deleted content types should no longer appear.
Related issue(s)/PR(s)
Fixes #18738