File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { buildFilter } from './buildFilter';
6
6
7
7
// We'll use the currentDirectoryName to trim parent fileNames
8
8
const currentDirectoryPath = process . cwd ( ) ;
9
- const currentDirectoryParts = currentDirectoryPath . split ( '/' ) ;
9
+ const currentDirectoryParts = currentDirectoryPath . split ( path . sep ) ;
10
10
const currentDirectoryName =
11
11
currentDirectoryParts [ currentDirectoryParts . length - 1 ] ;
12
12
export interface StringIndexedObject < T > {
@@ -717,7 +717,7 @@ function getParentType(prop: ts.Symbol): ParentType | undefined {
717
717
const parentName = parent . name . text ;
718
718
const { fileName } = parent . getSourceFile ( ) ;
719
719
720
- const fileNameParts = fileName . split ( '/' ) ;
720
+ const fileNameParts = fileName . split ( path . sep ) ;
721
721
const trimmedFileNameParts = fileNameParts . slice ( ) ;
722
722
723
723
while ( trimmedFileNameParts . length ) {
@@ -728,7 +728,7 @@ function getParentType(prop: ts.Symbol): ParentType | undefined {
728
728
}
729
729
let trimmedFileName ;
730
730
if ( trimmedFileNameParts . length ) {
731
- trimmedFileName = trimmedFileNameParts . join ( '/' ) ;
731
+ trimmedFileName = trimmedFileNameParts . join ( path . sep ) ;
732
732
} else {
733
733
trimmedFileName = fileName ;
734
734
}
You can’t perform that action at this time.
0 commit comments