I recently ran npm init -y and noticed this line in package.json:
"main": "index.js",
Why does npm init -y set this key explicitly set to the default value? Wouldn’t it be cleaner to exclude it and just use the convention of loading index.js?
I want to remove the line from my package.json but I am assuming that npm init -y put it there for a good reason. I have yet to come across such a reason. Please let me know if it included "main" for a reason or if it can be safely deleted.