Skip to content

Commit 6d3cd8d

Browse files
Jenny Messerlynex3
authored andcommitted
Fix --watch option with node on Mac OS (#402)
Closes #399
1 parent 8801279 commit 6d3cd8d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
* Don't emit ANSI codes to Windows terminals that don't support them.
44

5+
* Fix a bug where `--watch` crashed on Mac OS.
6+
57
## 1.9.0
68

79
### Node API

lib/src/io/node.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,11 @@ Future<Stream<WatchEvent>> watchDir(String path, {bool poll: false}) {
252252
watcher
253253
..on(
254254
'add',
255-
allowInterop((String path, _) =>
255+
allowInterop((String path, [_]) =>
256256
controller?.add(new WatchEvent(ChangeType.ADD, path))))
257257
..on(
258258
'change',
259-
allowInterop((String path, _) =>
259+
allowInterop((String path, [_]) =>
260260
controller?.add(new WatchEvent(ChangeType.MODIFY, path))))
261261
..on(
262262
'unlink',

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sass
2-
version: 1.9.1-dev
2+
version: 1.9.1
33
description: A Sass implementation in Dart.
44
author: Dart Team <[email protected]>
55
homepage: https://github.com/sass/dart-sass

0 commit comments

Comments
 (0)