diff --git a/CHANGELOG.md b/CHANGELOG.md index d64e65f125..6cdb4b06dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,12 @@ - Print patterns in warnings using rescript printer https://github.com/rescript-lang/rescript-compiler/pull/5492 +# 10.0.1 + +#### :bug: Bug Fix + +- Fix issue where watch mode would give an error on Windows https://github.com/rescript-lang/rescript-compiler/pull/5621 + # 10.0.0 **Compiler** diff --git a/rescript b/rescript index 03d6a87367..f200dc0d6b 100755 --- a/rescript +++ b/rescript @@ -204,7 +204,8 @@ function acquireBuild() { return false; } else { try { - fs.openSync(lockFileName, "wx", 0o664); + const fid = fs.openSync(lockFileName, "wx", 0o664); + fs.closeSync(fid); is_building = true; } catch (err) { if (err.code === "EEXIST") {