Skip to content

implement virtual CWD tracking and relative path resolution - #165

Merged
mavdol merged 8 commits into
mainfrom
patch/v0.8.1/enable-process-chdir
Apr 12, 2026
Merged

mavdol merged 8 commits into
mainfrom
patch/v0.8.1/enable-process-chdir

Conversation

@mavdol

@mavdol mavdol commented Apr 10, 2026 •

Copy link
Copy Markdown
Member

Improvements

  • More cwd control inside the sandbox:
process.chdir('hello-folder')   // _virtualCwd = 'hello-folder'
fs.readdirSync('.')             // '.' → 'hello-folder' → matches preopen 
fs.readFileSync('file.txt')     // 'file.txt' → 'hello-folder/file.txt' 
  • Improve compilation and polyfills resolution for typescript part
  • Improve dependencies imports

@mavdol
mavdol merged commit 7db31fd into main Apr 12, 2026
36 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant