diff --git a/src/bin/add-story.ts b/src/bin/add-story.ts index 3b72e5b0..66ab40ff 100644 --- a/src/bin/add-story.ts +++ b/src/bin/add-story.ts @@ -16,10 +16,20 @@ import { assert, Equals } from "tsafe/assert"; import type { BuildContext } from "./shared/buildContext"; import chalk from "chalk"; import { runFormat } from "./tools/runFormat"; +import { maybeDelegateCommandToCustomHandler } from "./shared/customHandler_delegate"; export async function command(params: { buildContext: BuildContext }) { const { buildContext } = params; + const { hasBeenHandled } = maybeDelegateCommandToCustomHandler({ + commandName: "add-story", + buildContext + }); + + if (hasBeenHandled) { + return; + } + console.log(chalk.cyan("Theme type:")); const themeType = await (async () => {