File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ import {
34
34
IApiTypeParameterOptions ,
35
35
EnumMemberOrder
36
36
} from '@microsoft/api-extractor-model' ;
37
+ import { Path } from '@rushstack/node-core-library' ;
37
38
38
39
import { Collector } from '../collector/Collector' ;
39
40
import { ISourceLocation } from '../collector/SourceMapper' ;
@@ -1138,6 +1139,11 @@ export class ApiModelGenerator {
1138
1139
pos : declaration . pos
1139
1140
} ) ;
1140
1141
1141
- return path . posix . relative ( this . _collector . extractorConfig . projectFolder , sourceLocation . sourceFilePath ) ;
1142
+ let result : string = path . relative (
1143
+ this . _collector . extractorConfig . projectFolder ,
1144
+ sourceLocation . sourceFilePath
1145
+ ) ;
1146
+ result = Path . convertToSlashes ( result ) ;
1147
+ return result ;
1142
1148
}
1143
1149
}
Original file line number Diff line number Diff line change 907
907
"text" : " unique symbol"
908
908
}
909
909
],
910
+ "fileUrlPath" : " src/referenceTokens/index.ts" ,
910
911
"isReadonly" : true ,
911
912
"releaseTag" : " Public" ,
912
913
"name" : " SomeSymbol1" ,
929
930
"text" : " \" ThisIsSomeVar1\" "
930
931
}
931
932
],
933
+ "fileUrlPath" : " src/referenceTokens/index.ts" ,
932
934
"initializerTokenRange" : {
933
935
"startIndex" : 1 ,
934
936
"endIndex" : 2
Original file line number Diff line number Diff line change
1
+ {
2
+ "changes" : [
3
+ {
4
+ "packageName" : " @microsoft/api-extractor" ,
5
+ "comment" : " Fix a regression where the \" fileUrlPath\" property would contain a malformed path when API Extractor is run on Windows." ,
6
+ "type" : " patch"
7
+ }
8
+ ],
9
+ "packageName" : " @microsoft/api-extractor"
10
+ }
You can’t perform that action at this time.
0 commit comments