Phase B — Downloads and extracts a MemberJunction release.
const scaffold = new ScaffoldPhase();const result = await scaffold.Run({ Tag: 'v5.1.0', Dir: '/path/to/install', Yes: false, Emitter: emitter,});console.log(`Installed ${result.Version.Tag} to ${result.ExtractedDir}`); Copy
const scaffold = new ScaffoldPhase();const result = await scaffold.Run({ Tag: 'v5.1.0', Dir: '/path/to/install', Yes: false, Emitter: emitter,});console.log(`Installed ${result.Version.Tag} to ${result.ExtractedDir}`);
Execute the scaffold phase: resolve version, download ZIP, and extract.
Scaffold input with tag, directory, mode, and emitter.
The selected version and extraction path.
With code TAG_NOT_FOUND if the specified tag doesn't exist.
TAG_NOT_FOUND
With code NO_RELEASES if no releases are found on GitHub.
NO_RELEASES
With code DOWNLOAD_FAILED if the ZIP download fails.
DOWNLOAD_FAILED
With code EXTRACT_FAILED if ZIP extraction fails.
EXTRACT_FAILED
With code USER_CANCELLED if the user declines the non-empty directory prompt.
USER_CANCELLED
Phase B — Downloads and extracts a MemberJunction release.
Example