Closed devjiwonchoi closed 7 months ago
cc @rschristian
This PR added the get package manager method, which looks for process.env of npm_config_user_agent. This method is supported for yarn, npm, and pnpm.
npm_config_user_agent
P.S. create-next-app also uses this method
create-next-app
x-ref: https://github.com/pnpm/pnpm/pull/4317 x-ref: https://github.com/npm/cli/pull/1919 x-ref: https://github.com/yarnpkg/yarn/pull/7127 x-ref: stackoverflow
cc @rschristian
This PR added the get package manager method, which looks for process.env of
npm_config_user_agent
. This method is supported for yarn, npm, and pnpm.P.S.
create-next-app
also uses this methodx-ref: https://github.com/pnpm/pnpm/pull/4317 x-ref: https://github.com/npm/cli/pull/1919 x-ref: https://github.com/yarnpkg/yarn/pull/7127 x-ref: stackoverflow