From 9ab2b57f6db19631d230fab6f344b06a2d673084 Mon Sep 17 00:00:00 2001 From: Manas Jayanth <3097018+ManasJayanth@users.noreply.github.com> Date: Tue, 25 Jun 2024 19:27:33 +0530 Subject: [PATCH] Prepend --prefix-path. Not append --- dist/index.js | 2 +- index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index ff8a9e6..1430bcc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -176081,7 +176081,7 @@ function run(name, command, args) { }); } function runEsyCommand(name, args) { - args.push(`--prefix=${esyPrefix}`); + args.unshift(`--prefix=${esyPrefix}`); return run(name, "esy", manifestKey ? [`@${manifestKey}`, ...args] : args); } const index_platform = external_os_.platform(); diff --git a/index.ts b/index.ts index 96ac7fb..59f40fa 100644 --- a/index.ts +++ b/index.ts @@ -26,7 +26,7 @@ async function run(name: string, command: string, args: string[]) { } function runEsyCommand(name: string, args: string[]) { - args.push(`--prefix=${esyPrefix}`); + args.unshift(`--prefix=${esyPrefix}`); return run(name, "esy", manifestKey ? [`@${manifestKey}`, ...args] : args); }