Documentation ¶
Index ¶
- Constants
- Variables
- func AddExternalModules(ctx context.Context, workspace *schema.Workspace, rel string, base llb.State, ...) ([]buildkit.LocalContents, llb.State, error)
- func PrepareNodejsBaseWithYarnForBuild(ctx context.Context, nodejsBase string, platform specs.Platform) (llb.State, error)
- func RunNodejs(ctx context.Context, env cfg.Context, relPath string, command string, ...) error
- func RunYarn(ctx context.Context, env cfg.Context, loc pkggraph.Location, args []string) error
- func RunYarnShlex(args ...string) llb.RunOption
- type LockFileModule
- type RunNodejsOpts
Constants ¶
View Source
const ( YarnContainerCacheDir = "/cache/yarn" // All dependencies that are not from the same module copied here. This includes // dependencies used as "Dep" in workspace (copied from the Namespace cache) // and the ones used as "Replace" (copied from the user's file system). // TODO: figure out why tsc fails if it is not under "/app" DepsRootPath = "/app/external_deps" )
Variables ¶
View Source
var UseNativeNode = false
Functions ¶
func AddExternalModules ¶
func RunYarnShlex ¶
Types ¶
type LockFileModule ¶
type LockFileModule struct {
Path string `json:"path"`
}
type RunNodejsOpts ¶
type RunNodejsOpts struct { Scope schema.PackageName Args []string EnvVars []*schema.BinaryConfig_EnvEntry Mounts []*rtypes.LocalMapping IsInteractive bool }
Click to show internal directories.
Click to hide internal directories.