Nintendo has had a good relationship with both large and small developers over the years. They even lend some of their biggest first-party franchises to other developers to make new games. The Legend of Zelda is a great example of that. Capcom has made a plethora of games in this franchise.