@@ -23,7 +23,7 @@ function runTypedoc(rootDir: string, sourceDirs: string[]) {
2323 } , < string [ ] > [ ] ) ;
2424 let originalDir = process . cwd ( ) ;
2525 process . chdir ( rootDir ) ;
26- let app = new Application ( { tsconfig : path . join ( rootDir , 'tsconfig.json' ) , ignoreCompilerErrors : true } ) ;
26+ let app = new Application ( { tsconfig : path . join ( rootDir , 'tsconfig.json' ) , ignoreCompilerErrors : true } ) ;
2727 let result = app . convert ( files ) ;
2828 process . chdir ( originalDir ) ;
2929 return result ;
@@ -66,7 +66,12 @@ function normalize(project: ProjectReflection, extracter: Extracter): API {
6666 pkg . classes [ item . name ] = normalizeClass ( item ) ;
6767
6868 } else {
69- ui . warn ( `${ item . sources [ 0 ] . fileName } exported a ${ item . kindString } , and I don't know how to document that` ) ;
69+ let filename = item . sources [ 0 ] . fileName ;
70+ // Chop of broccoli tmp directories if present
71+ if ( filename . startsWith ( 'tmp' ) ) {
72+ filename = filename . split ( '/' ) . slice ( 2 ) . join ( '/' ) ;
73+ }
74+ ui . warn ( `${ filename } exported a ${ item . kindString } , and I don't know how to document that` ) ;
7075 }
7176
7277 }
@@ -230,7 +235,7 @@ function displayTypeFrom(type: any): string {
230235
231236 // Add any type args it might take, recursing into those types to render them properly
232237 if ( type . typeArguments ) {
233- displayType += '<' + type . typeArguments . map ( displayTypeFrom ) . join ( ', ' ) + '>' ;
238+ displayType += '<' + type . typeArguments . map ( displayTypeFrom ) . join ( ', ' ) + '>' ;
234239 }
235240
236241 return displayType ;
0 commit comments