Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 55b56c8

Browse files
authored
feat: Add .kt extension to known entry types
1 parent 6e145a4 commit 55b56c8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎index.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,14 @@ exports.getEntryModule = function (appDirectory, platform) {
7979
constentry=getPackageJsonEntry(appDirectory);
8080

8181
consttsEntryPath=path.resolve(appDirectory,`${entry}.ts`);
82+
constktEntryPath=path.resolve(appDirectory,`${entry}.kt`);
8283
constjsEntryPath=path.resolve(appDirectory,`${entry}.js`);
83-
letentryExists=existsSync(tsEntryPath)||existsSync(jsEntryPath);
84+
letentryExists=existsSync(tsEntryPath)||existsSync(ktEntryPath)||existsSync(jsEntryPath);
8485
if(!entryExists&&platform){
8586
constplatformTsEntryPath=path.resolve(appDirectory,`${entry}.${platform}.ts`);
87+
constplatformKtEntryPath=path.resolve(appDirectory,`${entry}.${platform}.kt`);
8688
constplatformJsEntryPath=path.resolve(appDirectory,`${entry}.${platform}.js`);
87-
entryExists=existsSync(platformTsEntryPath)||existsSync(platformJsEntryPath);
89+
entryExists=existsSync(platformTsEntryPath)||existsSync(platformKtEntryPath)||existsSync(platformJsEntryPath);
8890
}
8991

9092
if(!entryExists){

0 commit comments

Comments
 (0)