Skip to content

Commit 6c6fd1c

Browse files
committed
fix(hot-reload): add relativeTo setting for chokidar
1 parent 697f5c3 commit 6c6fd1c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/tasks/start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
var open = require('open');
33
var chokidar = require('chokidar-socket-emitter');
44
var server = hs.createServer({"root": process.cwd()});
5-
chokidar({app: server.server, dir: process.cwd(), path: process.cwd()});
5+
chokidar({app: server.server, relativeTo: process.cwd(), dir: process.cwd(), path: process.cwd()});
66
server.listen(8080);
77
open("http://127.0.0.1:8080");

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"url": "https://github.com/frankwallis/plugin-typescript.git"
2626
},
2727
"dependencies": {
28-
"typescript": "^1.8.2"
28+
"typescript": "^1.8.7"
2929
},
3030
"devDependencies": {
3131
"chai": "^3.4.1",
@@ -48,7 +48,7 @@
4848
"registry": "github",
4949
"name": "frankwallis/plugin-typescript",
5050
"dependencies": {
51-
"typescript": "npm:typescript@^1.8.2"
51+
"typescript": "npm:typescript@^1.8.7"
5252
},
5353
"directories": {
5454
"lib": "lib",

0 commit comments

Comments
 (0)