Skip to main content

alpha.dagger.io/js/yarn

Yarn is a package manager for Javascript applications

import "alpha.dagger.io/js/yarn"

yarn.#Package

A Yarn package

yarn.#Package Inputs

NameTypeDescription
sourcedagger.#ArtifactApplication source code
packagestructExtra alpine packages to install
cwd*"." \| stringworking directory to use
envstructEnvironment variables
writeEnvFile*"" \| stringWrite the contents of environment to this file, in the "envfile" format
buildDir*"build" \| stringRead build output from this directory (path must be relative to working directory)
script*"build" \| stringRun this yarn script
args*[] \| [...string]Optional arguments for the script

yarn.#Package Outputs

NameTypeDescription
buildstructBuild output directory