pnpm
Version:
10 lines (7 loc) • 385 B
JavaScript
// Corepack's `pnpx` entry point; see ./pnpm.mjs. The native binary infers the
// `dlx` subcommand from the name it was launched under, which does not survive
// being spawned from here, so the Node entry point injects it.
import process from 'node:process'
process.argv = [...process.argv.slice(0, 2), 'dlx', ...process.argv.slice(2)]
await import('./pnpm.mjs')