File tree 2 files changed +4
-3
lines changed 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -172,8 +172,9 @@ export function readConfig(
172
172
// Some options are relative to the config file, so must be converted to absolute paths here
173
173
if ( options . require ) {
174
174
// Modules are found relative to the tsconfig file, not the `dir` option
175
- const tsconfigRelativeResolver =
176
- createProjectLocalResolveHelper ( dirname ( configPath ) ) ;
175
+ const tsconfigRelativeResolver = createProjectLocalResolveHelper (
176
+ dirname ( configPath )
177
+ ) ;
177
178
options . require = options . require . map ( ( path : string ) =>
178
179
tsconfigRelativeResolver ( path , false )
179
180
) ;
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ export function getBasePathForProjectLocalDependencyResolution(
150
150
projectOption : string | undefined ,
151
151
cwdOption : string
152
152
) {
153
- if ( configFilePath != null ) return dirname ( configFilePath ) ;
153
+ if ( configFilePath != null ) return dirname ( configFilePath ) ;
154
154
return projectSearchDirOption ?? projectOption ?? cwdOption ;
155
155
// TODO technically breaks if projectOption is path to a file, not a directory,
156
156
// and we attempt to resolve relative specifiers. By the time we resolve relative specifiers,
You can’t perform that action at this time.
0 commit comments