Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit55b56c8

Browse files
authored
feat: Add .kt extension to known entry types
1 parent6e145a4 commit55b56c8

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
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)

[8]ページ先頭

©2009-2025 Movatter.jp