File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,13 @@ export class Project {
98
98
if ( ! this . config . files ) {
99
99
let files = [ path . join ( base , '**/*.ts' ) ] ;
100
100
101
- if ( this . config . excludes instanceof Array ) {
102
- files = files . concat ( this . config . excludes . map ( file => '!' + path . resolve ( base , file ) ) ) ;
101
+ if ( this . config . exclude instanceof Array ) {
102
+ files = files . concat (
103
+ // Exclude files
104
+ this . config . exclude . map ( file => '!' + path . resolve ( base , file ) ) ,
105
+ // Exclude directories
106
+ this . config . exclude . map ( file => '!' + path . resolve ( base , file ) + '/**/*' )
107
+ ) ;
103
108
}
104
109
105
110
return vfs . src ( files ) ;
Original file line number Diff line number Diff line change 1
1
export interface TsConfig {
2
2
files ?: string [ ] ;
3
- excludes ?: string [ ] ;
3
+ exclude ?: string [ ] ;
4
4
compilerOptions ?: any ;
5
5
}
You can’t perform that action at this time.
0 commit comments