+4
-4
@@ -389,3 +389,3 @@ #!/usr/bin/env node | ||
| watchPathes = [] | ||
| watchPathes = {} | ||
@@ -438,3 +438,3 @@ watcher = | ||
| if link = options.link | ||
| watchPathes.push link.slice 0, -1 + link.indexOf '*' | ||
| watchPathes[link.slice 0, -1 + link.indexOf '*'] = true | ||
| linkPatt = new RegExp link.replace /\*/g, '([^\/]+)' | ||
@@ -459,3 +459,3 @@ rules[link] = rule = | ||
| rule[handler.ext] = handler | ||
| watchPathes.push from | ||
| watchPathes[from] = true | ||
| rules[from] = rule = | ||
@@ -564,3 +564,3 @@ patt: new RegExp from | ||
| when 'w', 'watch' | ||
| require('chokidar').watch( watchPathes ) | ||
| require('chokidar').watch( Object.keys watchPathes ) | ||
| .on 'add', (p, stat) -> | ||
@@ -567,0 +567,0 @@ file = addFileFromStream p, stat |
+1
-1
@@ -13,3 +13,3 @@ { | ||
| "author": "Roman Kushin", | ||
| "version": "1.0.22", | ||
| "version": "1.0.23", | ||
| "license": "MIT", | ||
@@ -16,0 +16,0 @@ "directories": { |
Sorry, the diff of this file is not supported yet
43576
0.18%