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); }