Skip to content

Commit b325074

Browse files
authored
Merge pull request #4877 from DSpace/backport-4876-to-dspace-9_x
[Port dspace-9_x] Fixed lint rule `themed-component-selectors` not working on Windows
2 parents f6fd66c + c246276 commit b325074

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lint/src/util/theme-support.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
getComponentClassName,
1818
isPartOfViewChild,
1919
} from './angular';
20+
import { toUnixStylePath } from './misc';
2021
import {
2122
isPartOfClassDeclaration,
2223
isPartOfTypeExpression,
@@ -127,7 +128,7 @@ class ThemeableComponentRegistry {
127128
continue;
128129
}
129130

130-
const basePath = resolveLocalPath((importDeclaration.moduleSpecifier as ts.StringLiteral).text, path);
131+
const basePath = resolveLocalPath((importDeclaration.moduleSpecifier as ts.StringLiteral).text, toUnixStylePath(path));
131132

132133
themeableComponents.add({
133134
baseClass,

0 commit comments

Comments
 (0)