Buckets:
| import { execSync } from 'child_process' | |
| import { getPkgManager } from './get-pkg-manager' | |
| export function getNpxCommand(baseDir: string) { | |
| const pkgManager = getPkgManager(baseDir) | |
| let command = 'npx --yes' | |
| if (pkgManager === 'pnpm') { | |
| command = 'pnpm --silent dlx' | |
| } else if (pkgManager === 'yarn') { | |
| try { | |
| execSync('yarn dlx --help', { stdio: 'ignore' }) | |
| command = 'yarn --quiet dlx' | |
| } catch {} | |
| } | |
| return command | |
| } | |
Xet Storage Details
- Size:
- 455 Bytes
- Xet hash:
- 78f42d5203e609a7e125365e8fbd76c3979b9aa62575d05f506d88c763374724
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.