Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb committed Sep 30, 2024
1 parent 54c7184 commit 01336ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export type CompareOutput = {
};

export const compare = (input: CompareInput): EventEmitter => {
const args = Object.entries(input).flatMap(([k, v]) => [`--${k}`, String(v)]);
const { actualDir, expectedDir, diffDir, ...rest } = input;
const args = [actualDir, expectedDir, diffDir, ...Object.entries(rest).flatMap(([k, v]) => [`--${k}`, String(v)])];
return run(args);
};
2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reg-cli",
"version": "0.0.0-experimental-wasm5",
"version": "0.0.0-experimental-wasm7",
"description": "",
"type": "module",
"start": "node ./dist/cli.mjs",
Expand Down

0 comments on commit 01336ab

Please sign in to comment.