pub fn detect(manifest: &Value, project: &Path) -> RootVersion
Determines the root version like RootPackageLoader.