From f17d15ca04dd3eac1b0d86953f480b9aeed3e470 Mon Sep 17 00:00:00 2001 From: Roman Kuznetsov Date: Tue, 20 Feb 2024 11:26:46 +0300 Subject: [PATCH] fix: lang override defaults --- src/bin/create-hermione-app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/create-hermione-app.ts b/src/bin/create-hermione-app.ts index faf0a97..ed6e56d 100644 --- a/src/bin/create-hermione-app.ts +++ b/src/bin/create-hermione-app.ts @@ -26,5 +26,5 @@ const argv = yargs(hideBin(process.argv)) .parse(); const argvOpts = optsFromArgv(argv as ToolArgv); -const createOpts = (defaultOpts: DefaultOpts): ToolOpts => Object.assign(argvOpts, defaultOpts); +const createOpts = (defaultOpts: DefaultOpts): ToolOpts => ({ ...defaultOpts, ...argvOpts }); launcher.run({ createOpts });