take dev-dependencies into account to determine required version