Skip to content

Commit 57cea14

Browse files
Krinkletrentmwillis
authored andcommitted
CLI: Update node-watch to 0.6.0
* Added 'ready' event. * Improved Linux support for recursive watching (changes from new directories during the debounce are now reported as well). * Fixed various bugs.
1 parent 08f1c69 commit 57cea14

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"commander": "2.12.2",
3939
"js-reporters": "1.2.1",
4040
"resolve": "1.5.0",
41-
"node-watch": "0.5.9",
41+
"node-watch": "0.6.0",
4242
"minimatch": "3.0.4"
4343
},
4444
"devDependencies": {

src/cli/run.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ run.watch = function watch() {
159159
run.restart( args );
160160
} );
161161

162+
watcher.on( "ready", () => {
163+
run.apply( null, args );
164+
} );
165+
162166
function stop() {
163167
console.log( "Stopping QUnit..." );
164168

@@ -170,12 +174,6 @@ run.watch = function watch() {
170174

171175
process.on( "SIGTERM", stop );
172176
process.on( "SIGINT", stop );
173-
174-
// initial run must be delayed by at least 200ms
175-
// https://github.com/yuanchuan/node-watch/issues/71
176-
setTimeout( () => {
177-
run.apply( null, args );
178-
}, 210 );
179177
};
180178

181179
module.exports = run;

0 commit comments

Comments
 (0)