yarn

Provides build/test helpers for projects using yarn and a package.json. Defaults outputs to dist/** and infers dependencies from package.json to link Terrabuild graphs.

Available Commands

CommandDescription
testRuns the test script via yarn test.
runRuns an arbitrary yarn script (yarn <command>).
installInstalls packages with yarn install, optionally updating the lockfile or ignoring engines.
buildRuns the build script via yarn build.
<command>Runs an arbitrary yarn command (Terrabuild action name is forwarded to yarn).

Project Initializer

Infers project metadata from package.json (dependencies and default outputs).

project {
  @yarn { }
}

Equivalent to:

project {
    ignores = [ "node_modules/**" ]
    outputs = [ "dist/**" ]
}
Last updated on