fix compile script

This commit is contained in:
Philipp Kunz 2016-02-16 11:28:57 +01:00
parent 6cf7d2ca0b
commit 1c2b4e421d

View File

@ -4,7 +4,7 @@ var plugins = {
gulp: require("gulp"),
g:{
typescript: require("gulp-typescript"),
insert: require("gulp-insert")
header: require("gulp-header")
},
mergeStream: require("merge2")
@ -23,7 +23,7 @@ plugins.gulp.task('indexTS', function() {
return plugins.mergeStream([
tsResult.dts.pipe(plugins.gulp.dest('../')),
tsResult.js
.pipe(plugins.g.insert.prepend('#!/usr/bin/env node\n\n'))
.pipe(plugins.g.header('#!/usr/bin/env node\n\n'))
.pipe(plugins.gulp.dest('../'))
]);
});