Disploy/disploy

recommended node version incompatible with linux fs.watch

Closed this issue · 1 comments

guide recommends node v18
node v14 added an error thrown when using fs.watch recursive on linux
node v19(.1) added the functionality for fs.watch recursive

const watcher = watch(root, { recursive: true });

listener = watch('./cli/assets', { recursive: true }, (eventType, filename) => {

Instead of updating to Node.js 19, I'm going to refactor all the fs.watch calls to use chokidar instead.