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(dirs ...string) string
func Env() ([]string, error)
attempt to build the yarn environment that properly
func Runtime() shell.Command
Create a shell runtime that properly sets up the yarn environment for caching.