fix(path): correct script directory resolution
All checks were successful
Auto Changelog & Release / release (push) Successful in 6s
All checks were successful
Auto Changelog & Release / release (push) Successful in 6s
- Adjusts path resolution logic to correctly reference parent directory - Ensures accurate script execution paths across modules
This commit is contained in:
2
dist/main.js
vendored
2
dist/main.js
vendored
@@ -15,7 +15,7 @@ function setEnv(key, value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
const script = path.join(__dirname, "scripts", "detect-version-change.sh");
|
const script = path.join(__dirname, "..", "scripts", "detect-version-change.sh");
|
||||||
|
|
||||||
|
|
||||||
run(script);
|
run(script);
|
||||||
|
2
dist/post.js
vendored
2
dist/post.js
vendored
@@ -11,7 +11,7 @@ function run(script, args = []) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function scriptPath(...segments) {
|
function scriptPath(...segments) {
|
||||||
return path.join(__dirname, "scripts", ...segments);
|
return path.join(__dirname, "..", "scripts", ...segments);
|
||||||
}
|
}
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
|
Reference in New Issue
Block a user