This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run this after you update your typings. | |
const gulp = require('gulp'); | |
const replace = require('gulp-replace'); | |
gulp.task('es6-typings', () => { | |
var srcPath = 'typings/browser/**/*'; // or 'typings/main/**/*' or 'typings/**/*' if you use `tsd` | |
gulp.src(srcPath, { base: './' }) | |
.pipe(replace('export =', 'export default')) | |
.pipe(gulp.dest('./')); | |
}); |
NewerOlder