-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from bloomberg/better-rollup
Better rollup error handling
- Loading branch information
Showing
4 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Changelog | ||
=== | ||
|
||
## 1.0.1 | ||
|
||
> 2017-11-20 | ||
Fix the Rollup on error handler. | ||
|
||
* Update rollup config to remove unnecessary check on `event.input`. Make this task more future-proof by falling back to an `other` event if we don't have a code handler. | ||
* [eac5cd349b25a67aa961c2de5ae1130ad6653f07](https://github.com/bloomberg/wsk.example/commit/eac5cd349b25a67aa961c2de5ae1130ad6653f07) | ||
|
||
## 1.0.0 | ||
|
||
> 2017-11-16 | ||
Release! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
var fs = require('fs'); | ||
var notify = require('wsk').notify; | ||
var cleanupOutPath = require('../helpers/cleanupOutPath'); | ||
|
||
// This event also fires if the file was deleted, so ignore if the file doesn't exist | ||
module.exports = function (event, fileConfig) { | ||
if (fs.existsSync(event.input)) { | ||
notify({ | ||
message: 'Error compiling JS...', | ||
value: cleanupOutPath(event, fileConfig), | ||
display: 'error', | ||
error: event.error || undefined | ||
}); | ||
} | ||
notify({ | ||
message: 'Error compiling JS...', | ||
value: cleanupOutPath(event, fileConfig), | ||
display: 'error', | ||
error: event.error || undefined | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters