In Development Package, API may change between versions.

import "github.com/egdaemon/eg/runtime/x/wasi/egyarn"

Package egyarn has supporting functions for configuring the environment for running yarn berry for caching. in the future we may support previous versions.

func CacheDirectory

func CacheDirectory(dirs ...string) string

func Env

func Env() ([]string, error)

attempt to build the yarn environment that properly

func Runtime

func Runtime() shell.Command

Create a shell runtime that properly sets up the yarn environment for caching.