Skip to content

Commit c695729

Browse files
committed
remove gulp-tsb hack, fixes microsoft#80629
1 parent 590ccaf commit c695729

3 files changed

Lines changed: 3 additions & 15 deletions

File tree

build/lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function loadSourcemaps() {
121121
return;
122122
}
123123
if (!f.contents) {
124-
cb(new Error('empty file'));
124+
cb(undefined, f);
125125
return;
126126
}
127127
const contents = f.contents.toString('utf8');

build/lib/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export function loadSourcemaps(): NodeJS.ReadWriteStream {
165165
}
166166

167167
if (!f.contents) {
168-
cb(new Error('empty file'));
168+
cb(undefined, f);
169169
return;
170170
}
171171

build/lib/watch/index.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,6 @@
55

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

8-
/** Ugly hack for gulp-tsb */
9-
function handleDeletions() {
10-
return es.mapSync(f => {
11-
if (/\.ts$/.test(f.relative) && !f.contents) {
12-
f.contents = Buffer.from('');
13-
f.stat = { mtime: new Date() };
14-
}
15-
16-
return f;
17-
});
18-
}
198

209
let watch = undefined;
2110

@@ -24,6 +13,5 @@ if (!watch) {
2413
}
2514

2615
module.exports = function () {
27-
return watch.apply(null, arguments)
28-
.pipe(handleDeletions());
16+
return watch.apply(null, arguments);
2917
};

0 commit comments

Comments
 (0)