novu
Version:
Novu CLI. Run Novu Studio and sync workflows with Novu Cloud
17 lines (16 loc) • 431 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPkgManager = getPkgManager;
function getPkgManager() {
const userAgent = process.env.npm_config_user_agent || '';
if (userAgent.startsWith('yarn')) {
return 'yarn';
}
if (userAgent.startsWith('pnpm')) {
return 'pnpm';
}
if (userAgent.startsWith('bun')) {
return 'bun';
}
return 'npm';
}