File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 1010- Fixed improper quoting of ` as const ` style enums, #1727 .
1111- Fixed handling of ` @typeParam ` on type aliases, #1733 .
1212- Fixed handling of comment tags on function type aliases, #1734 .
13+ - Paths in warnings about non-exported symbols are now consistently displayed across platforms, #1738 .
1314
1415### Thanks!
1516
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
1010 SignatureReflection ,
1111 TypeParameterReflection ,
1212} from "../models" ;
13- import type { Logger } from "../utils" ;
13+ import { Logger , normalizePath } from "../utils" ;
1414
1515function makeIntentionallyExportedHelper (
1616 intentional : readonly string [ ] ,
@@ -100,9 +100,8 @@ export function validateExports(
100100 decl . getSourceFile ( ) ,
101101 decl . getStart ( )
102102 ) ;
103- const file = relative (
104- process . cwd ( ) ,
105- decl . getSourceFile ( ) . fileName
103+ const file = normalizePath (
104+ relative ( process . cwd ( ) , decl . getSourceFile ( ) . fileName )
106105 ) ;
107106
108107 logger . warn (
Original file line number Diff line number Diff line change 11import { equal , fail , ok } from "assert" ;
2- import { join , relative } from "path" ;
2+ import { join } from "path" ;
33import { Logger , LogLevel } from ".." ;
44import { validateExports } from "../lib/validation/exports" ;
55import { getConverter2App , getConverter2Program } from "./programs" ;
@@ -38,10 +38,7 @@ function expectWarning(
3838 equal ( match [ 1 ] , typeName , "Missing type name is different." ) ;
3939 equal (
4040 match [ 2 ] ,
41- relative (
42- process . cwd ( ) ,
43- join ( __dirname , "converter2/validation" , file )
44- ) ,
41+ `dist/test/converter2/validation/${ file } ` ,
4542 "Referencing file is different."
4643 ) ;
4744 equal (
You can’t perform that action at this time.
0 commit comments