Skip to content

Commit

Permalink
fix(update): await on onUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jun 12, 2024
1 parent 9597d2b commit 6b37c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export async function updateConfig(
? defaultExport.$args[0]
: defaultExport;

opts.onUpdate?.(configObj);
await opts.onUpdate?.(configObj);

await writeFile(configFile, _module.generate().code);

Expand Down

0 comments on commit 6b37c98

Please sign in to comment.