Skip to content

runAddCoreVariationCommand

runAddCoreVariationCommand(options): Promise<{ projectDir: string; targetBlockName: string; variationFile: string; variationSlug: string; warnings?: string[]; }>

Defined in: wp-typia-project-tools/src/runtime/add/cli-add-workspace-core-variation.ts:673

Add one editor-side variation registration for an existing core or external block.

RunAddCoreVariationCommandOptions

Command options for the core-variation scaffold workflow.

Promise<{ projectDir: string; targetBlockName: string; variationFile: string; variationSlug: string; warnings?: string[]; }>

The normalized variation metadata, owning workspace directory, and optional warnings for suspicious but forward-compatible targets.

When the command is run outside an official workspace, the target block name is not full namespace/block form, or the generated file already exists.