diff --git a/clients/js/packages/cli/src/utils.ts b/clients/js/packages/cli/src/utils.ts index 235591ee..a43b2ddc 100644 --- a/clients/js/packages/cli/src/utils.ts +++ b/clients/js/packages/cli/src/utils.ts @@ -63,7 +63,7 @@ export const loadConfig = (argv: any): Config => { }); if (context.helmFile) { - const dir = dirname(argv.config || process.cwd()); + const dir = argv.config ? dirname(argv.config) : process.cwd(); context.helmFile = resolve(resolvePath(dir), context.helmFile); starship = loadYaml(context.helmFile) as StarshipConfig }