mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Add needsUpdate check to lib tasks
This commit is contained in:
@@ -279,6 +279,9 @@ for (const i in libraryTargets) {
|
||||
return path.join(libraryDirectory, s);
|
||||
}));
|
||||
gulp.task(target, false, [], function() {
|
||||
if (!needsUpdate(sources, target)) {
|
||||
return gulp.src(target);
|
||||
}
|
||||
return gulp.src(sources).pipe(concat(target, {newLine: ""})).pipe(gulp.dest("."));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user