pnpm patch: pass through cli args

This commit is contained in:
Vendicated 2025-04-02 04:55:24 +02:00
parent 1126dc6e66
commit 188fd48659
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
2 changed files with 6 additions and 3 deletions

View file

@ -118,8 +118,11 @@ const installerBin = await ensureBinary();
console.log("Now running Installer...");
const argStart = process.argv.indexOf("--");
const args = argStart === -1 ? [] : process.argv.slice(argStart + 1);
try {
execFileSync(installerBin, {
execFileSync(installerBin, args, {
stdio: "inherit",
env: {
...process.env,