-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
rmSync is not a function #14
Comments
https://nodejs.org/api/fs.html#fs_fs_rmsync_path_options Looks like fs.rmSync was added in v14. I鈥檒l add a polyfill (you鈥檇 be welcome to submit a PR though if you鈥檇 like). I do this already with Promise.any This function call should be synchronous because it may run immediately before process exit, from one of the kill signals. I don鈥檛 think we can guarantee that the next tick will be invoked before the process ends. That specific function call should only happen when the tmp module doesn鈥檛 properly clean up. |
Would love to, but ENOTIME :-(
Ah, that makes sense. TBH I wouldn't even know how to provide that polyfill. However, it might be much, much easier than that: https://nodejs.org/api/fs.html#fs_fs_rmdirsync_path_options |
Fixed in |
BTW I don't see either v1.1.29 nor v1.1.28 in https://github.com/Jarred-Sumner/git-peek/releases... |
Yeah the release script broke, I'm fixing it. |
I get this stack trace on Windows:
That's with
Is it possible that
git-peek/src/index.ts
Line 99 in 885e324
await fs.promises.rm()
instead (of course,doExit()
would then have becomeasync
and all the call sites, including this one would have to be adjusted).The text was updated successfully, but these errors were encountered: