This repository was archived by the owner on Aug 7, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -79,12 +79,14 @@ exports.getEntryModule = function (appDirectory, platform) {
79
79
const entry = getPackageJsonEntry ( appDirectory ) ;
80
80
81
81
const tsEntryPath = path . resolve ( appDirectory , `${ entry } .ts` ) ;
82
+ const ktEntryPath = path . resolve ( appDirectory , `${ entry } .kt` ) ;
82
83
const jsEntryPath = path . resolve ( appDirectory , `${ entry } .js` ) ;
83
- let entryExists = existsSync ( tsEntryPath ) || existsSync ( jsEntryPath ) ;
84
+ let entryExists = existsSync ( tsEntryPath ) || existsSync ( ktEntryPath ) || existsSync ( jsEntryPath ) ;
84
85
if ( ! entryExists && platform ) {
85
86
const platformTsEntryPath = path . resolve ( appDirectory , `${ entry } .${ platform } .ts` ) ;
87
+ const platformKtEntryPath = path . resolve ( appDirectory , `${ entry } .${ platform } .kt` ) ;
86
88
const platformJsEntryPath = path . resolve ( appDirectory , `${ entry } .${ platform } .js` ) ;
87
- entryExists = existsSync ( platformTsEntryPath ) || existsSync ( platformJsEntryPath ) ;
89
+ entryExists = existsSync ( platformTsEntryPath ) || existsSync ( platformKtEntryPath ) || existsSync ( platformJsEntryPath ) ;
88
90
}
89
91
90
92
if ( ! entryExists ) {
You can’t perform that action at this time.
0 commit comments