Permalink
Browse files

fix(build): don't concat index.d.ts and exclude 'extends' in d.ts

  • Loading branch information...
doktordirk committed Jul 13, 2016
1 parent 72fc531 commit 5306cfb3b185a1d10c7b5bad0c88b752c3c854c6
Showing with 2 additions and 2 deletions.
  1. +1 −1 build/paths.js
  2. +1 −1 build/tasks/build.js
@@ -21,7 +21,7 @@ var paths = {
ignore: [],
useTypeScriptForDTS: false,
importsToAdd: [],
importsToIgnoreForDts: [], // imports that are only used internally. no need to d.ts export them
importsToIgnoreForDts: ['extends'], // imports that are only used internally. no need to d.ts export them
jsResources: [], // js files that should not be concated, but keep their path
resources: appRoot + '{**/*.css,**/*.html}',
sort: true,
@@ -128,7 +128,7 @@ gulp.task('build-dts', function(){

gulp.task('fixup-dts', function(){
var importsToAdd = [];
return gulp.src([paths.output + '**/*.d.ts'])
return gulp.src([paths.output + '**/*.d.ts', '!' + paths.output + 'index.d.ts'])
.pipe(through2.obj(function(file, enc, callback) {
file.contents = new Buffer(tools.extractImports(file.contents.toString('utf8'), importsToAdd));
this.push(file);

0 comments on commit 5306cfb

Please sign in to comment.