Enforcing usage of catalog dependencies #8567
-
I was excited to see the release of workspace catalogs. My team has been using syncpack to accomplish syncing dependency versions throughout our monorepo, and having that functionality in the package manager seems appropriate. There's one feature I think is missing, however. We run Firstly, I just want to make sure I'm not missing functionality that might do that now. If not, I'm wondering if anyone else would be interested in either an external tool to do this, or for a command to enforce catalog usage to be added to the |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
That would be a cool addition, to enforce usage of workspace catalogs in a monorepo, and forbid usage of dependencies versions directly. |
Beta Was this translation helpful? Give feedback.
-
Hello 👋 From a read of the docs, it looks like syncpack could possibly support this if you'd like to write up an issue @rhinodavid. It already reads pnpm-workspace.yaml so it could bring the catalogs data in and try and make use of it. |
Beta Was this translation helpful? Give feedback.
-
We can probably support that but first need to add catalog support to the |
Beta Was this translation helpful? Give feedback.
-
This was implemented. You can set the catalogMode: strict setting |
Beta Was this translation helpful? Give feedback.
This was implemented. You can set the catalogMode: strict setting