Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SetVersionSourcesCommand

Hierarchy

Properties

branch

branch: string = Option.String(`--branch`, `master`, {description: `The branch of the repository that should be cloned`,})

cwd

cwd: undefined | string = Option.String(`--cwd`, {hidden: true})

force

force: boolean = Option.Boolean(`-f,--force`, false, {description: `Always clone the repository instead of trying to fetch the latest commits`,})

installPath

installPath: undefined | string = Option.String(`--path`, {description: `The path where the repository should be cloned to`,})

noMinify

noMinify: boolean = Option.Boolean(`--no-minify`, false, {description: `Build a bundle for development (debugging) - non-minified and non-mangled`,})

plugins

plugins: string[] = Option.Array(`--plugin`, [], {description: `An array of additional plugins that should be included in the bundle`,})

repository

repository: string = Option.String(`--repository`, `https://github.com/yarnpkg/berry.git`, {description: `The repository that should be cloned`,})

skipPlugins

skipPlugins: boolean = Option.Boolean(`--skip-plugins`, false, {description: `Skip updating the contrib plugins`,})

Static paths

paths: string[][] = [[`set`, `version`, `from`, `sources`],]

Static usage

usage: Usage = Command.Usage({description: `build Yarn from master`,details: `This command will clone the Yarn repository into a temporary folder, then build it. The resulting bundle will then be copied into the local project.By default, it also updates all contrib plugins to the same commit the bundle is built from. This behavior can be disabled by using the \`--skip-plugins\` flag.`,examples: [[`Build Yarn from master`,`$0 set version from sources`,]],})

Methods

execute

  • execute(): Promise<0 | 1>

Generated using TypeDoc