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:
- auto-installing Node.js Function dependencies on build/push
- auto-installing dependencies in the Sandbox workflow
examples:
Describe the solution you'd like
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'
}
}
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?
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_agenthttps://github.com/vercel/next.js/blob/canary/packages/create-next-app/helpers/get-pkg-manager.tsprocess.env.npm_config_user_agenthttps://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?