From 3cf6db7d7d223e2bb2611bd7dd87635c63e3c30a Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Tue, 24 Mar 2026 13:10:00 +0100 Subject: [PATCH 1/2] refactor: repo is not optional --- src/options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options.ts b/src/options.ts index 7f296a0..10b27fb 100644 --- a/src/options.ts +++ b/src/options.ts @@ -13,7 +13,7 @@ export interface OptionValues { name: string; 'package-id': string; 'class-name': string; - repo?: string; + repo: string; author: string; license: string; description: string; From be68df0e536c0d73a0dbeafd813d15c93067eac6 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Tue, 24 Mar 2026 13:16:28 +0100 Subject: [PATCH 2/2] no null check --- src/template.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/template.ts b/src/template.ts index 6446f8e..a535166 100644 --- a/src/template.ts +++ b/src/template.ts @@ -100,7 +100,7 @@ export const applyTemplate = async ( NATIVE_NAME: packageNameToNative(name), CLASS: className, JAVA_PATH: join(packageId.split('.').join(sep), className), - REPO_URL: repo ? repo.replace(/\/$/, '') : '', + REPO_URL: repo.replace(/\/$/, ''), AUTHOR: author, LICENSE: license, DESCRIPTION: description,