Closed
Description
Cygwin allows using Unix paths under Windows.
$ json-server --watch api-mock/data.json --port 3000
json-server
will attempt to watchapi-mock/data.json
chokidar
inchange
event will refer to a change inapi-mock\data.json
, preventingjson-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
Metadata
Metadata
Assignees
Labels
No labels