Skip to content

Commit

Permalink
fix: setup can be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
zllkjc committed Dec 12, 2024
1 parent 47724ee commit 501bf90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/toolkit/plugin-v2/src/cli/run/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const createCli = <Extends extends CLIPluginExtends>() => {
context.pluginAPI = pluginAPI;

for (const plugin of plugins) {
const setupResult = await plugin.setup(pluginAPI);
const setupResult = await plugin.setup?.(pluginAPI);
if (handleSetupResult) {
await handleSetupResult(setupResult, pluginAPI);
}
Expand Down

0 comments on commit 501bf90

Please sign in to comment.