This fixes #42, and introduces a more robust approach to build invalidation. Rather than treating invalidation (i.e. debounced file changes) as an error, there's a special invalidate event which triggers a rebuild (assuming we're watching the tree, that is). Transformer node ready promises will be rejected if a source is invalidated during the transformation; the ABORTED signal will propagate down the tree and be harmlessly ignored by the watch task.
This fixes #42, and introduces a more robust approach to build invalidation. Rather than treating invalidation (i.e. debounced file changes) as an error, there's a special
invalidate
event which triggers a rebuild (assuming we're watching the tree, that is). Transformer nodeready
promises will be rejected if a source is invalidated during the transformation; theABORTED
signal will propagate down the tree and be harmlessly ignored by the watch task.