@@ -10,6 +10,7 @@ import { getCommonDirectory, normalizePath } from "../../utils/fs";
1010import { dirname , relative } from "path" ;
1111import { SourceReference } from "../../models" ;
1212import { gitIsInstalled , Repository } from "../utils/repository" ;
13+ import { BasePath } from "../utils/base-path" ;
1314
1415/**
1516 * A handler that attaches source file information to reflections.
@@ -77,7 +78,7 @@ export class SourcePlugin extends ConverterComponent {
7778 const symbol = reflection . project . getSymbolFromReflection ( reflection ) ;
7879 for ( const node of symbol ?. declarations || [ ] ) {
7980 const sourceFile = node . getSourceFile ( ) ;
80- const fileName = sourceFile . fileName ;
81+ const fileName = BasePath . normalize ( sourceFile . fileName ) ;
8182 this . fileNames . add ( fileName ) ;
8283
8384 let position : ts . LineAndCharacter ;
@@ -115,7 +116,7 @@ export class SourcePlugin extends ConverterComponent {
115116 if ( this . disableSources || ! sig ) return ;
116117
117118 const sourceFile = sig . getSourceFile ( ) ;
118- const fileName = sourceFile . fileName ;
119+ const fileName = BasePath . normalize ( sourceFile . fileName ) ;
119120 this . fileNames . add ( fileName ) ;
120121
121122 const position = ts . getLineAndCharacterOfPosition (
0 commit comments