File tree 1 file changed +10
-2
lines changed 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,11 @@ export function parseConfigFileWithSystem(
58
58
return updateParsedConfigFile ( parsedConfigFile ) ;
59
59
}
60
60
61
- function resolveJsonConfig (
61
+ function pathIsRelative ( path : string ) : boolean {
62
+ return / ^ \. \. ? ( $ | [ \\ / ] ) / . test ( path ) ;
63
+ }
64
+
65
+ function resolveModuleConfig (
62
66
moduleName : string ,
63
67
configRootDir : string ,
64
68
host : ts . ModuleResolutionHost
@@ -75,7 +79,11 @@ function getExtendedTstlOptions(
75
79
cycleCache : Set < string > ,
76
80
system : ts . System
77
81
) : TypeScriptToLuaOptions {
78
- const absolutePath = resolveJsonConfig ( configFilePath , configRootDir , system ) ;
82
+ const absolutePath = path . isAbsolute ( configFilePath )
83
+ ? configFilePath
84
+ : pathIsRelative ( configFilePath )
85
+ ? path . resolve ( configRootDir , configFilePath )
86
+ : resolveModuleConfig ( configFilePath , configRootDir , system ) ;
79
87
80
88
if ( ! absolutePath ) {
81
89
return { } ;
You can’t perform that action at this time.
0 commit comments