Cygwin allows using Unix paths under Windows.
$ json-server --watch api-mock/data.json --port 3000
json-server will attempt to watch api-mock/data.json
chokidar in change event will refer to a change in api-mock\data.json, preventing json-server from restarting the server
Possible solution will require a change in src/cli/run.js
chokidar
.watch(path.dirname(source))
.on('change', function (file) {
if (path.resolve(file) === path.resolve(source)) { // resolve paths
Cygwin allows using Unix paths under Windows.
json-serverwill attempt to watchapi-mock/data.jsonchokidarinchangeevent will refer to a change inapi-mock\data.json, preventingjson-serverfrom restarting the serverPossible solution will require a change in src/cli/run.js