From a806df5135cec2fce91a3f10b1d164467515b78c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vuk=20Kremi=C4=87?= Date: Tue, 1 Oct 2024 11:19:49 +0200 Subject: [PATCH] TIC-2147 `nil pointer ref` fix --- commands/actions/publish.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/actions/publish.go b/commands/actions/publish.go index cb3af13..54715b4 100644 --- a/commands/actions/publish.go +++ b/commands/actions/publish.go @@ -168,7 +168,7 @@ func buildFunc(cmd *cobra.Command, args []string) { if tsconfig != nil { outDir = filepath.Join(actions.Sources, *tsconfig.CompilerOptions.OutDir) - if *tsconfig.CompilerOptions.RootDir != "" { + if tsconfig.CompilerOptions.RootDir != nil && *tsconfig.CompilerOptions.RootDir != "" { sourcesDir = filepath.Join(actions.Sources, *tsconfig.CompilerOptions.RootDir) } mustInstallDependencies(actions.Sources)