From 0a562d4e029193c4e39926d1ff220a6a37a6e049 Mon Sep 17 00:00:00 2001 From: "Max P." Date: Fri, 4 Jul 2025 11:51:37 +0200 Subject: [PATCH] fix(path): correct script directory resolution - Adjusts path resolution logic to correctly reference parent directory - Ensures accurate script execution paths across modules --- dist/main.js | 2 +- dist/post.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/main.js b/dist/main.js index cc17bef..e8f85fe 100644 --- a/dist/main.js +++ b/dist/main.js @@ -15,7 +15,7 @@ function setEnv(key, value) { } function main() { - const script = path.join(__dirname, "scripts", "detect-version-change.sh"); + const script = path.join(__dirname, "..", "scripts", "detect-version-change.sh"); run(script); diff --git a/dist/post.js b/dist/post.js index 502cb84..336a652 100644 --- a/dist/post.js +++ b/dist/post.js @@ -11,7 +11,7 @@ function run(script, args = []) { } function scriptPath(...segments) { - return path.join(__dirname, "scripts", ...segments); + return path.join(__dirname, "..", "scripts", ...segments); } function main() {