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

Improved CI package manager detection #1313

Closed colincasey closed 2 months ago

colincasey commented 2 months ago

The previous method for detecting package managers works well when yarn, pnpm, or npm binaries are installed in the traditional way but fails when corepack shims are present. This PR changes the detection logic to use package metadata when determining which package manager to use.

Fixes #1312