/opt/canhelp/node_modules/next/dist/esm/lib/helpers
NameSizeModeActions
get-cache-directory.js23180644editdlrm
get-cache-directory.js.map34970644editdlrm
get-npx-command.js5390644editdlrm
get-npx-command.js.map9490644editdlrm
get-online.js8620644editdlrm
get-online.js.map15990644editdlrm
get-pkg-manager.js13010644editdlrm
get-pkg-manager.js.map20290644editdlrm
get-registry.js17120644editdlrm
get-registry.js.map26170644editdlrm
get-reserved-port.js19070644editdlrm
get-reserved-port.js.map31580644editdlrm
install.js22600644editdlrm
install.js.map38500644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/esm/lib/helpers/get-npx-command.js (539B)
import { execSync } from 'child_process'; import { getPkgManager } from './get-pkg-manager'; export function getNpxCommand(baseDir) { const pkgManager = getPkgManager(baseDir); let command = 'npx'; if (pkgManager === 'pnpm') { command = 'pnpm dlx'; } else if (pkgManager === 'yarn') { try { execSync('yarn dlx --help', { stdio: 'ignore' }); command = 'yarn dlx'; } catch {} } return command; } //# sourceMappingURL=get-npx-command.js.map