Copyright ownership is not a matter of your opinion. It is settled law, mutually recognized by the 179 countries (out of the 195 in the world) who have signed the Berne Convention [1]. Copyright ownership is established as soon as a work is "fixed in a tangible medium of expresssion" [2]—in other words, as soon as the contributor wrote it on their laptop. The "author" entry in the package.json file is irrelevant.
[1]: https://en.wikipedia.org/wiki/Berne_Convention
[2]: https://www.plagiarismtoday.com/2017/10/03/with-copyright-wh...