File tree 2 files changed +6
-3
lines changed
src/lib/models/reflections
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
### Bug Fixes
4
4
5
+ - Fixed automatic declaration file resolution on Windows, #2416 .
5
6
- Fixed default option values on options declared by plugins in packages mode, #2433 .
6
7
- ` gitRevision ` will now be replaced in ` sourceLinkTemplate ` , #2434 .
7
8
- Improved handling of function-modules created with ` Object.assign ` , #2436 .
Original file line number Diff line number Diff line change @@ -149,9 +149,11 @@ export function addInferredDeclarationMapPaths(
149
149
const declDir = opts . declarationDir || opts . outDir || rootDir ;
150
150
151
151
for ( const file of files ) {
152
- const mapFile = resolve ( declDir , relative ( rootDir , file ) ) . replace (
153
- / \. ( [ c m ] ? [ t j ] s ) x ? $ / ,
154
- ".d.$1" ,
152
+ const mapFile = normalizePath (
153
+ resolve ( declDir , relative ( rootDir , file ) ) . replace (
154
+ / \. ( [ c m ] ? [ t j ] s ) x ? $ / ,
155
+ ".d.$1" ,
156
+ ) ,
155
157
) ;
156
158
declarationMapCache . set ( mapFile , file ) ;
157
159
}
You can’t perform that action at this time.
0 commit comments