Skip to content

Commit

Permalink
Fix --watch option with node on Mac OS (#402)
Browse files Browse the repository at this point in the history
Closes #399
  • Loading branch information
Jenny Messerly authored and nex3 committed Jul 11, 2018
1 parent 8801279 commit 6d3cd8d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/src/io/node.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sass
version: 1.9.1-dev
version: 1.9.1
description: A Sass implementation in Dart.
author: Dart Team <[email protected]>
homepage: https://github.com/sass/dart-sass
Expand Down

0 comments on commit 6d3cd8d

Please sign in to comment.