Skip to content

craft-hub / previewProfileRollback

Function: previewProfileRollback() ​

previewProfileRollback(transaction): Promise<{ paths: ProfileMigrationPaths; phase: "complete" | "installed" | "prepared" | "aborted" | "copying" | "target-saved" | "rolled-back"; revision: string; }>

Defined in: packages/craft-hub/src/profile-migration.ts:441

Read the current candidate revision before explicitly archiving it and restoring its saved predecessor.

Parameters ​

transaction ​

string

Returns ​

Promise<{ paths: ProfileMigrationPaths; phase: "complete" | "installed" | "prepared" | "aborted" | "copying" | "target-saved" | "rolled-back"; revision: string; }>

Released under the MIT License.