opral / inlang-message-sdk

0 stars 0 forks source link

v2 persistence experiment: fs.watch project directory instead of files #80

Closed jldec closed 5 days ago

jldec commented 3 weeks ago

Context

The fs.watcher as currently used appears to be flakey, and does not track renames. Hopefully watching the parent directory will simplify and improve the reliability of detecting on-disk file changes.

Proposal

Implement fs.watch for v2 persistence by watching the inlang project directory

Related to MESDK-126

jldec commented 3 weeks ago

Confirmed

  1. fs.watch for directories (recursive: true) already works in lix memoryFs 🎉
  2. directory watches handle renames