Skip to content

Instantly share code, notes, and snippets.

@unional
Created February 2, 2016 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unional/959e527f257e3daf5d48 to your computer and use it in GitHub Desktop.
Save unional/959e527f257e3daf5d48 to your computer and use it in GitHub Desktop.
Temp fix for using typings/tsd in jspm module: system environment
// 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