Skip to content

Commit 7a9d4cf

Browse files
authored
fix: use tsc for gulp compile
1 parent 3a46b62 commit 7a9d4cf

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

gulpfile.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,10 @@ const isCI = process.env.TRAVIS === 'true' || process.env.TF_BUILD !== undefined
2323

2424
gulp.task('compileCore', (done) => {
2525
spawnAsync(process.execPath, ['./node_modules/typescript/lib/tsc.js', '-p', './tsconfig.json'], undefined, true)
26-
.then((stdout) => {
27-
if (stdout.includes('error')) {
28-
done(new Error(stdout));
29-
} else {
30-
done();
31-
}
32-
})
26+
.then(() => done())
3327
.catch((ex) => {
3428
console.log(ex);
35-
done(new Error('TypeScript compilation errors', ex));
29+
done(new Error(`TypeScript compilation errors: ${ex}`));
3630
});
3731
});
3832

0 commit comments

Comments
 (0)