Skip to content

Ban dependency from monorepo

Ban a dependency from being used anywhere in your monorepo.

1. Add a version group

.syncpackrc
{
"versionGroups": [
{
"dependencies": ["never-gonna"],
"isBanned": true
}
]
}

2. Look for mismatches

Now when you run any syncpack command, banned dependencies will be listed:

Terminal window
syncpack list

And can be removed:

Terminal window
syncpack fix-mismatches