diff --git a/gulpfile.js b/gulpfile.js index 23551a5..9f171c4 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -34,8 +34,9 @@ gulp.task('default', () => { const img = gulp.src(['src/' + '**/' + '*.png']).pipe(gulp.dest('lib')); const fonts = gulp.src(['src/**/*.eot', 'src/**/*.svg', 'src/**/*.ttf', 'src/**/*.woff']).pipe(gulp.dest('lib')); const tsResult = gulp.src([ - 'src/' + '**/' + '*.tsx', - 'src/' + '**/' + '*.ts', + 'src/**/*.tsx', + 'src/**/*.ts', + '!src/__tests__/**/*.tsx', ]).pipe(ts(tsConfig)); const tsFiles = babelify(tsResult.js); const tsd = tsResult.dts.pipe(gulp.dest('lib')); diff --git a/tsconfig.json b/tsconfig.json index 174db75..288ea70 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,6 +14,7 @@ ] }, "exclude": [ - "node_modules" + "node_modules", + "__tests__" ] } \ No newline at end of file