You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What Node versions, OSs and CPU architectures are you building for?
node20-x64, node20-arm64
Describe the Bug
When executing a SEA build (like npx pkg --sea source.js) via JavaScript call (require("pkg").exec()), the current working is changed to the tmp directory, but there's no navigation back to the previous directory. This is probably unintentional and breaks build scripts that execute commands relative to the working directory after executing the SEA build. (It's only an issue using the JavaScript API, since the changed working directory doesn't matter when calling it from a terminal.)
Expected Behavior
After executing the pkg --sea build, the working directory should be the same as before.
What version of pkg are you using?
6.1.1
What version of Node.js are you using?
v20.18.1
What operating system are you using?
Windows
What CPU architecture are you using?
arm64
What Node versions, OSs and CPU architectures are you building for?
node20-x64, node20-arm64
Describe the Bug
When executing a SEA build (like
npx pkg --sea source.js
) via JavaScript call (require("pkg").exec()
), the current working is changed to the tmp directory, but there's no navigation back to the previous directory. This is probably unintentional and breaks build scripts that execute commands relative to the working directory after executing the SEA build. (It's only an issue using the JavaScript API, since the changed working directory doesn't matter when calling it from a terminal.)Expected Behavior
After executing the
pkg --sea
build, the working directory should be the same as before.To Reproduce
The text was updated successfully, but these errors were encountered: