Skip to main content
Version: 0.193.6

yarn

Available Commands

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

Project Initializer

Computes default outputs and dependencies from package.json.

project {
@yarn { }
}

Equivalent to:

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