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

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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
const entry = getPackageJsonEntry(appDirectory);
8080

8181
const tsEntryPath = path.resolve(appDirectory, `${entry}.ts`);
82+
const ktEntryPath = path.resolve(appDirectory, `${entry}.kt`);
8283
const jsEntryPath = path.resolve(appDirectory, `${entry}.js`);
83-
let entryExists = existsSync(tsEntryPath) || existsSync(jsEntryPath);
84+
let entryExists = existsSync(tsEntryPath) || existsSync(ktEntryPath) || existsSync(jsEntryPath);
8485
if (!entryExists && platform) {
8586
const platformTsEntryPath = path.resolve(appDirectory, `${entry}.${platform}.ts`);
87+
const platformKtEntryPath = path.resolve(appDirectory, `${entry}.${platform}.kt`);
8688
const platformJsEntryPath = 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy