Skip to content

Commit

Permalink
Skip --prefix for npm-release subcommand since esy doesn't support it
Browse files Browse the repository at this point in the history
  • Loading branch information
ManasJayanth committed Jul 13, 2024
1 parent 5bf3a3d commit 4e0066d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180449,7 +180449,9 @@ function getEsyDownloadArtifactsMeta(alternativeEsyNPMPackage) {
return { tarballUrl, shasum, version };
}
function runEsyCommand(name, args) {
args.push(`--prefix=${esyPrefix}`);
if (args[0] !== "npm-release" && args[0] !== "release") {
args.push(`--prefix=${esyPrefix}`);
}
return run(name, "esy", manifestKey ? [`@${manifestKey}`, ...args] : args);
}
function computeChecksum(filePath, algo) {
Expand Down
4 changes: 3 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ function getEsyDownloadArtifactsMeta(
}

function runEsyCommand(name: string, args: string[]) {
args.push(`--prefix=${esyPrefix}`);
if (args[0] !== "npm-release" && args[0] !== "release") {
args.push(`--prefix=${esyPrefix}`);
}
return run(name, "esy", manifestKey ? [`@${manifestKey}`, ...args] : args);
}

Expand Down

0 comments on commit 4e0066d

Please sign in to comment.