fix missing error emit in extensions compilation
This commit is contained in:
parent
7810d7a9fe
commit
cc366f5a29
1 changed files with 7 additions and 7 deletions
|
@ -58,7 +58,7 @@ const tasks = compilations.map(function(tsconfigFile) {
|
|||
const i18n = path.join(__dirname, '..', 'i18n');
|
||||
const baseUrl = getBaseUrl(out);
|
||||
|
||||
function createPipeline(build) {
|
||||
function createPipeline(build, emitError) {
|
||||
const reporter = createReporter();
|
||||
|
||||
tsOptions.inlineSources = !!build;
|
||||
|
@ -81,7 +81,7 @@ const tasks = compilations.map(function(tsconfigFile) {
|
|||
}))
|
||||
.pipe(tsFilter.restore)
|
||||
.pipe(build ? nlsDev.createAdditionalLanguageFiles(languages, i18n, out) : es.through())
|
||||
.pipe(reporter.end());
|
||||
.pipe(reporter.end(emitError));
|
||||
|
||||
return es.duplex(input, output);
|
||||
};
|
||||
|
@ -92,7 +92,7 @@ const tasks = compilations.map(function(tsconfigFile) {
|
|||
gulp.task(clean, cb => rimraf(out, cb));
|
||||
|
||||
gulp.task(compile, [clean], () => {
|
||||
const pipeline = createPipeline(false);
|
||||
const pipeline = createPipeline(false, true);
|
||||
const input = gulp.src(src, srcOpts);
|
||||
|
||||
return input
|
||||
|
@ -113,7 +113,7 @@ const tasks = compilations.map(function(tsconfigFile) {
|
|||
gulp.task(cleanBuild, cb => rimraf(out, cb));
|
||||
|
||||
gulp.task(compileBuild, [clean], () => {
|
||||
const pipeline = createPipeline(true);
|
||||
const pipeline = createPipeline(true, true);
|
||||
const input = gulp.src(src, srcOpts);
|
||||
|
||||
return input
|
||||
|
|
Loading…
Reference in a new issue