In Windows CMD, I get a wrong path string, because the the filepath is encoded with forward slashes, but the currentPath is encoded with backslashes.
Easy fix that worked for me, in index.js:40:
const filePath = path.join(currentPath, 'dist', path.normalize(file).replace(currentPath, '').replace('.ws', '.js'))
where I explicitly normalized the file path.
In Windows CMD, I get a wrong path string, because the the filepath is encoded with forward slashes, but the currentPath is encoded with backslashes.
Easy fix that worked for me, in index.js:40:
const filePath = path.join(currentPath, 'dist', path.normalize(file).replace(currentPath, '').replace('.ws', '.js'))
where I explicitly normalized the file path.