Skip to content

Commit

Permalink
fix(script-normalization): wrong mergeParams argument order
Browse files Browse the repository at this point in the history
  • Loading branch information
umbopepato committed May 16, 2020
1 parent 7a67aca commit 0c54801
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/merge_params.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ScriptOptions, FlagsObject } from "./scripts_config.ts";

export function mergeParams(
parentParams: ScriptOptions,
childParams: ScriptOptions,
parentParams: ScriptOptions,
): ScriptOptions {
return {
...parentParams,
Expand Down
2 changes: 1 addition & 1 deletion src/normalize_script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function _normalizeScript(
if (typeof node === "string") {
return {
cmd: node.trim(),
...mergeParams(parentParams, {}),
...mergeParams({}, parentParams),
} as Command;
}
if (Array.isArray(node)) {
Expand Down

0 comments on commit 0c54801

Please sign in to comment.