Created
February 2, 2016 18:50
-
-
Save unional/959e527f257e3daf5d48 to your computer and use it in GitHub Desktop.
Temp fix for using typings/tsd in jspm module: system environment
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('./')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment