Skip to content

Commit

Permalink
wi
Browse files Browse the repository at this point in the history
  • Loading branch information
ManasJayanth committed Jun 12, 2024
1 parent 3515019 commit b0e360e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -180359,10 +180359,9 @@ function main() {
throw new Error(`Downloaded by checksum failed. url: ${setupEsyTarball} downloadPath: ${downloadedEsyNPMTarball} checksum expected: ${checksum} checksum computed: ${computedChecksum} checksum algorithm: ${checksumAlgo}`);
}
const extractedEsyNPM = yield tool_cache.extractTar(downloadedEsyNPMTarball);
const cachedPath = yield tool_cache.cacheDir(extractedEsyNPM, "esy", version);
core.startGroup("Running postinstall");
const postInstall = __nccwpck_require__(25387)(external_path_.join(cachedPath, "package.json")).scripts
.postinstall;
const postInstall = __nccwpck_require__(25387)(external_path_.join(extractedEsyNPM, "package.json"))
.scripts.postinstall;
const postInstallArray = postInstall.split(" ");
if (postInstallArray.length < 1) {
// noop
Expand All @@ -180374,6 +180373,7 @@ function main() {
yield (0,exec.exec)(postInstallArray[0], postInstallArray.slice(1));
}
core.endGroup();
const cachedPath = yield tool_cache.cacheDir(extractedEsyNPM, "esy", version);
core.addPath(cachedPath);
}
external_fs_.statSync(workingDirectory);
Expand Down
16 changes: 8 additions & 8 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,10 @@ async function main() {
const extractedEsyNPM = await toolCache.extractTar(
downloadedEsyNPMTarball,
);
const cachedPath = await toolCache.cacheDir(
extractedEsyNPM,
"esy",
version,
);

core.startGroup("Running postinstall");

const postInstall = require(path.join(cachedPath, "package.json")).scripts
.postinstall;
const postInstall = require(path.join(extractedEsyNPM, "package.json"))
.scripts.postinstall;
const postInstallArray = postInstall.split(" ");
if (postInstallArray.length < 1) {
// noop
Expand All @@ -123,6 +117,12 @@ async function main() {
await exec(postInstallArray[0], postInstallArray.slice(1));
}
core.endGroup();
const cachedPath = await toolCache.cacheDir(
extractedEsyNPM,
"esy",
version,
);

core.addPath(cachedPath);
}
fs.statSync(workingDirectory);
Expand Down

0 comments on commit b0e360e

Please sign in to comment.