From b104730b8cca02fbd1a9aa746ab9768e26fb7b6f Mon Sep 17 00:00:00 2001 From: Manas Jayanth <3097018+ManasJayanth@users.noreply.github.com> Date: Sat, 27 Jul 2024 07:22:03 +0530 Subject: [PATCH] Fixes workingDirectory of esy status command --- 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 edad958..00fb403 100644 --- a/dist/index.js +++ b/dist/index.js @@ -141545,7 +141545,7 @@ function prepareNPMArtifacts() { var _a; const statusCmd = manifestKey ? `esy ${manifestKey} status` : "esy status"; try { - const manifestFilePath = JSON.parse(external_child_process_.execSync(statusCmd).toString()).rootPackageConfigPath; + const manifestFilePath = JSON.parse(external_child_process_.execSync(statusCmd, { cwd: workingDirectory }).toString()).rootPackageConfigPath; const manifest = JSON.parse(external_fs_.readFileSync(manifestFilePath).toString()); if ((_a = manifest.esy) === null || _a === void 0 ? void 0 : _a.release) { yield runEsyCommand("Running esy npm-release", ["npm-release"]); diff --git a/index.ts b/index.ts index 53429f6..a41efd9 100644 --- a/index.ts +++ b/index.ts @@ -288,7 +288,7 @@ async function prepareNPMArtifacts() { const statusCmd = manifestKey ? `esy ${manifestKey} status` : "esy status"; try { const manifestFilePath = JSON.parse( - cp.execSync(statusCmd).toString() + cp.execSync(statusCmd, { cwd: workingDirectory }).toString() ).rootPackageConfigPath; const manifest = JSON.parse(fs.readFileSync(manifestFilePath).toString()); if (manifest.esy?.release) {