diff --git a/src/merge_params.ts b/src/merge_params.ts index 3667a00..69f5f00 100644 --- a/src/merge_params.ts +++ b/src/merge_params.ts @@ -1,8 +1,8 @@ import { ScriptOptions, FlagsObject } from "./scripts_config.ts"; export function mergeParams( - parentParams: ScriptOptions, childParams: ScriptOptions, + parentParams: ScriptOptions, ): ScriptOptions { return { ...parentParams, diff --git a/src/normalize_script.ts b/src/normalize_script.ts index 275ed68..836d893 100644 --- a/src/normalize_script.ts +++ b/src/normalize_script.ts @@ -30,7 +30,7 @@ function _normalizeScript( if (typeof node === "string") { return { cmd: node.trim(), - ...mergeParams(parentParams, {}), + ...mergeParams({}, parentParams), } as Command; } if (Array.isArray(node)) {