Skip to content

runAddBlockTransformCommand

runAddBlockTransformCommand(options): Promise<{ blockSlug: string; fromBlockName: string; projectDir: string; toBlockName: string; transformSlug: string; }>

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

Add one block-to-block transform registration to an existing workspace block.

RunAddBlockTransformCommandOptions

Command options for the block transform scaffold workflow.

Promise<{ blockSlug: string; fromBlockName: string; projectDir: string; toBlockName: string; transformSlug: string; }>

A promise that resolves with the normalized target blockSlug, resolved fromBlockName, resolved toBlockName, transformSlug, and owning projectDir after the transform module, transform registry, entrypoint hook, and inventory entry have been written successfully.

When the command is run outside an official workspace, when the target block is unknown, when --from is not a full block name, when --to uses a non-workspace namespace, when the target block entrypoint does not expose registration.settings, when the transform slug is invalid, or when a conflicting file or inventory entry already exists.