WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.52k stars 4.21k forks source link

Bug: @types inconsistent chaos since recent updates #50671

Open kkmuffme opened 1 year ago

kkmuffme commented 1 year ago

Description

Since a few weeks there is a major inconsistency/chaos bc some packages have a @types package while others don't. e.g. https://www.npmjs.com/package/@types/wordpress__compose does not, while there still lots of wordpress packages that do not have them.

Could this please be made consistent as it was before - either all have @types or none.

Step-by-step reproduction instructions

See above

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

kkmuffme commented 1 year ago

This is especially super annoying bc some of the packages require deprecated things. e.g. @types/wordpress__editor has a dependency on @types/wordpress__data, therefore creating TS2688 errors (Cannot find type definition file for wordpress__data) all the time.

kkmuffme commented 1 year ago

Same for @types/wordpress__jest-console now