From a843d393e56fea9488a1392f7ea327f44ff5123b Mon Sep 17 00:00:00 2001 From: Manas Jayanth <3097018+ManasJayanth@users.noreply.github.com> Date: Sat, 13 Jul 2024 14:04:37 +0530 Subject: [PATCH] Fix --prefix argument: should be --prefix-path --- dist/index.js | 4 +--- index.ts | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index e1d6bab..c18ae17 100644 --- a/dist/index.js +++ b/dist/index.js @@ -180456,9 +180456,7 @@ function getEsyDownloadArtifactsMeta(alternativeEsyNPMPackage) { return { name, tarballUrl, shasum, version }; } function runEsyCommand(name, args) { - if (args[0] !== "npm-release" && args[0] !== "release") { - args.push(`--prefix=${esyPrefix}`); - } + args.push(`--prefix-path=${esyPrefix}`); return run(name, "esy", manifestKey ? [`@${manifestKey}`, ...args] : args); } function computeChecksum(filePath, algo) { diff --git a/index.ts b/index.ts index 1e2846d..71974d9 100644 --- a/index.ts +++ b/index.ts @@ -99,9 +99,7 @@ function getEsyDownloadArtifactsMeta( } function runEsyCommand(name: string, args: string[]) { - if (args[0] !== "npm-release" && args[0] !== "release") { - args.push(`--prefix=${esyPrefix}`); - } + args.push(`--prefix-path=${esyPrefix}`); return run(name, "esy", manifestKey ? [`@${manifestKey}`, ...args] : args); }