Fix --watch option with node on Mac OS (#402)

Closes #399
This commit is contained in:
Jenny Messerly 2018-07-11 13:15:55 -07:00 committed by Natalie Weizenbaum
parent 8801279796
commit 6d3cd8dd06
3 changed files with 5 additions and 3 deletions

View File

@ -2,6 +2,8 @@
* Don't emit ANSI codes to Windows terminals that don't support them.
* Fix a bug where `--watch` crashed on Mac OS.
## 1.9.0
### Node API

View File

@ -252,11 +252,11 @@ Future<Stream<WatchEvent>> watchDir(String path, {bool poll: false}) {
watcher
..on(
'add',
allowInterop((String path, _) =>
allowInterop((String path, [_]) =>
controller?.add(new WatchEvent(ChangeType.ADD, path))))
..on(
'change',
allowInterop((String path, _) =>
allowInterop((String path, [_]) =>
controller?.add(new WatchEvent(ChangeType.MODIFY, path))))
..on(
'unlink',

View File

@ -1,5 +1,5 @@
name: sass
version: 1.9.1-dev
version: 1.9.1
description: A Sass implementation in Dart.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/sass/dart-sass