Skip to content

Commit 6370341

Browse files
authored
include type declarations in dist (#102)
1 parent 8ffec02 commit 6370341

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

gulpfile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ var buffer = require('vinyl-buffer');
2323
var source = require('vinyl-source-stream');
2424

2525
var SRC_FILE = 'stackdriver-errors.js';
26+
var TYPINGS_FILE = 'stackdriver-errors.d.ts';
2627
var DEST = 'dist/';
2728

2829
var polyfills = [
@@ -52,7 +53,9 @@ gulp.task('lib-concat', function() {
5253
.pipe(uglify())
5354
.pipe(rename({extname: '.min.js'}))
5455
.pipe(sourcemaps.write('maps'))
55-
.pipe(gulp.dest(DEST));
56+
.pipe(gulp.dest(DEST))
57+
.pipe(gulp.src(TYPINGS_FILE))
58+
.pipe(gulp.dest(DEST));
5659
});
5760

5861
gulp.task('demo-html', function() {

0 commit comments

Comments
 (0)