We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No response
Improve detection of the developer's chosen Node.js package manager, which applies to the following workflows:
examples:
process.env.npm_config_user_agent
Amplify CLI automatically detects the package manager of choice for JavaScript projects
// https://github.com/vercel/next.js/blob/canary/packages/create-next-app/helpers/get-pkg-manager.ts export type PackageManager = 'npm' | 'pnpm' | 'yarn' export function getPkgManager(): PackageManager { const userAgent = process.env.npm_config_user_agent if (userAgent) { if (userAgent.startsWith('yarn')) { return 'yarn' } else if (userAgent.startsWith('pnpm')) { return 'pnpm' } else { return 'npm' } } else { return 'npm' } }
n/a
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is this feature request related to a new or existing Amplify category?
No response
Is this related to another service?
No response
Describe the feature you'd like to request
Improve detection of the developer's chosen Node.js package manager, which applies to the following workflows:
examples:
process.env.npm_config_user_agent
https://github.com/vercel/next.js/blob/canary/packages/create-next-app/helpers/get-pkg-manager.tsprocess.env.npm_config_user_agent
https://github.com/vitejs/vite/blob/main/packages/create-vite/src/index.ts#L312Describe the solution you'd like
Amplify CLI automatically detects the package manager of choice for JavaScript projects
Describe alternatives you've considered
n/a
Additional context
Is this something that you'd be interested in working on?
Would this feature include a breaking change?
The text was updated successfully, but these errors were encountered: