heroku / heroku-buildpack-nodejs

Heroku's buildpack for Node.js applications.
https://devcenter.heroku.com/articles/buildpacks
MIT License
1.31k stars 2.63k forks source link

Fail on conflicting package manager metadata in package.json #1317

Closed colincasey closed 2 months ago

colincasey commented 2 months ago

Along with lockfile detection, we also detect what intended package manager (and version) should be used based on metadata found in package.json. When multiple package managers are declared we should fail the build early and ask the user to correct any conflicts found.

Related to https://github.com/heroku/heroku-buildpack-nodejs/pull/1313