Phase B — Fetches a MemberJunction release into the target directory.
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, then fetch it into the target directory.
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 FETCH_FAILED / ASSEMBLE_FAILED if the distribution fetch or assembly fails.
FETCH_FAILED
ASSEMBLE_FAILED
With code CLONE_FAILED if the monorepo git clone or copy fails.
CLONE_FAILED
git clone
With code USER_CANCELLED if the user declines the non-empty directory prompt.
USER_CANCELLED
Phase B — Fetches a MemberJunction release into the target directory.
Example