core
core copied to clipboard
The constraints file is difficult to maintain
This project uses Yarn's constraints feature to ensure that there is cohesion among the packages in the monorepo.
This file is challenging to maintain, however, because it is written in Prolog, a 30+-year-old language that no one uses anymore.
Recent versions of Yarn introduced a JavaScript API which is intended to replace the Prolog API.
The constraints file was converted already for the module template in https://github.com/MetaMask/metamask-module-template/pull/220. We may be able to use this as inspiration.