UNPKG

@shadcn/ui

Version:

Add @shadcn/ui components to your app.

18 lines (13 loc) 274 B
export function getPackageManager() { const userAgent = process.env.npm_config_user_agent if (!userAgent) { return "npm" } if (userAgent.startsWith("yarn")) { return "yarn" } if (userAgent.startsWith("pnpm")) { return "pnpm" } return "npm" }