From 599915fc45a0c531f547862cd1eb640b25bb48b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81bastien=20Colladon?= Date: Mon, 10 Apr 2017 11:10:42 +0200 Subject: [PATCH] Add deploy status in the pipe Erase the file.contents with the deploy result to allow downstream to manipulate it --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index ef0ab4a..90818b0 100644 --- a/index.js +++ b/index.js @@ -20,10 +20,11 @@ module.exports = function(options) { if (!res.success) { return callback(new Error('Deploy Failed.')); } + file.contents = new Buffer(JSON.stringify(res)); callback(null, file); }) .catch(function(err) { callback(err); }); }); -}; +}; \ No newline at end of file