Skip to content

Commit

Permalink
remove gulp-tsb hack, fixes #80629
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Sep 10, 2019
1 parent 590ccaf commit c695729
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build/lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function loadSourcemaps() {
return;
}
if (!f.contents) {
cb(new Error('empty file'));
cb(undefined, f);
return;
}
const contents = f.contents.toString('utf8');
Expand Down
2 changes: 1 addition & 1 deletion build/lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export function loadSourcemaps(): NodeJS.ReadWriteStream {
}

if (!f.contents) {
cb(new Error('empty file'));
cb(undefined, f);
return;
}

Expand Down
14 changes: 1 addition & 13 deletions build/lib/watch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,6 @@

const es = require('event-stream');

/** Ugly hack for gulp-tsb */
function handleDeletions() {
return es.mapSync(f => {
if (/\.ts$/.test(f.relative) && !f.contents) {
f.contents = Buffer.from('');
f.stat = { mtime: new Date() };
}

return f;
});
}

let watch = undefined;

Expand All @@ -24,6 +13,5 @@ if (!watch) {
}

module.exports = function () {
return watch.apply(null, arguments)
.pipe(handleDeletions());
return watch.apply(null, arguments);
};

0 comments on commit c695729

Please sign in to comment.