diff --git a/src/index.ts b/src/index.ts index 5a2703a..ec78906 100644 --- a/src/index.ts +++ b/src/index.ts @@ -109,7 +109,7 @@ if (!options.skipGitInit) { try { await $`git init`; await $`git add .`; - await $`git commit -m "${'feat: initial commit'}"`; + await $`git commit -m ${'feat: initial commit'}`; spinner.succeed(); } catch (error) { debug('Failed to initialize git repository', error); diff --git a/src/lib/conf.ts b/src/lib/conf.ts index 1f4248f..c253080 100644 --- a/src/lib/conf.ts +++ b/src/lib/conf.ts @@ -1,7 +1,7 @@ import Conf from 'conf'; type CliConfig = { - allowTelemetry?: boolean; + allowTelemetry?: boolean | undefined; }; export const config = new Conf({ diff --git a/tsconfig.json b/tsconfig.json index d66adba..ab889e1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,6 +10,7 @@ "strict": true, "noUncheckedIndexedAccess": true, + "exactOptionalPropertyTypes": true, "moduleResolution": "NodeNext", "module": "NodeNext",