/home/techb158/balavpn.abdallabala.com/node_modules/next/dist/esm/lib/helpers
NameSizeModeActions
get-cache-directory.js23180666editdlrm
get-cache-directory.js.map34970666editdlrm
get-npx-command.js5390666editdlrm
get-npx-command.js.map9490666editdlrm
get-online.js8620666editdlrm
get-online.js.map15990666editdlrm
get-pkg-manager.js13010666editdlrm
get-pkg-manager.js.map20290666editdlrm
get-registry.js17120666editdlrm
get-registry.js.map26170666editdlrm
get-reserved-port.js19070666editdlrm
get-reserved-port.js.map31580666editdlrm
install.js22600666editdlrm
install.js.map38500666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/next/dist/esm/lib/helpers/get-pkg-manager.js (1301B)
import fs from 'fs'; import path from 'path'; import { execSync } from 'child_process'; export function getPkgManager(baseDir) { try { for (const { lockFile, packageManager } of [ { lockFile: 'yarn.lock', packageManager: 'yarn' }, { lockFile: 'pnpm-lock.yaml', packageManager: 'pnpm' }, { lockFile: 'package-lock.json', packageManager: 'npm' } ]){ if (fs.existsSync(path.join(baseDir, lockFile))) { return packageManager; } } const userAgent = process.env.npm_config_user_agent; if (userAgent) { if (userAgent.startsWith('yarn')) { return 'yarn'; } else if (userAgent.startsWith('pnpm')) { return 'pnpm'; } } try { execSync('yarn --version', { stdio: 'ignore' }); return 'yarn'; } catch { execSync('pnpm --version', { stdio: 'ignore' }); return 'pnpm'; } } catch { return 'npm'; } } //# sourceMappingURL=get-pkg-manager.js.map