File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,17 @@ exports = (grunt: IGrunt) => {
68
68
asyncedTwoArgs ( 2 , "values" , ( result : string ) => {
69
69
console . log ( result ) ;
70
70
} ) ;
71
- var fileMaps = grunt . file . expandMapping ( [ '' ] , '' , { ext : '.js' } ) ;
71
+
72
+ // tests for module grunt.file
73
+ var expandedFilesConfig : grunt . file . IExpandedFilesConfig = {
74
+ expand : true ,
75
+ cwd : 'src' ,
76
+ src : [ '**/*.ts' ] ,
77
+ dest : 'build' ,
78
+ ext : '.js' ,
79
+ flatten : false
80
+ } ;
81
+ var fileMaps = grunt . file . expandMapping ( [ '' ] , '' , expandedFilesConfig ) ;
72
82
fileMaps . length ;
73
83
fileMaps [ 0 ] . src . length ;
74
84
fileMaps [ 0 ] . dest ;
Original file line number Diff line number Diff line change @@ -604,7 +604,7 @@ declare module grunt {
604
604
/**
605
605
* All {@link IExpandedFilesConfig.src} matches are relative to (but don't include) this path.
606
606
*/
607
- cwd ?: boolean
607
+ cwd ?: string
608
608
609
609
/**
610
610
* Replace any existing extension with this value in generated {@link IExpandedFilesConfig.dest} paths.
You can’t perform that action at this time.
0 commit comments