Use `INTERNAL_DEV_DEP_NOT_STAR` to manage internal dependencies
mainIn version 0.8.0, a new check INTERNAL_DEV_DEP_NOT_STAR was introduced. This check ensures that devDependencies pointing to internal workspace packages use the * version range instead of a specific semver range.
Why use this?
Internal dependencies are always linked in a monorepo. Using * prevents unnecessary package patches that would otherwise occur if an internal dependency's version moved outside a specific semver range, as the link remains valid regardless of the version.
// Before (with specific range)
{
"name": "sunshine",
"devDependencies": {
"sun": "^1.0.0"
}
}
// After manypkg fix
{
"name": "sunshine",
"devDependencies": {
"sun": "*"
}
}