Skip to content

Commit

Permalink
fix: setup can be empty (#6630)
Browse files Browse the repository at this point in the history
  • Loading branch information
zllkjc authored Dec 12, 2024
1 parent 47724ee commit 11ab95f
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 11ab95f

Please sign in to comment.