Commit ea5b4d37 authored by bryanl's avatar bryanl
Browse files

Add component paths to jpath


Signed-off-by: default avatarbryanl <bryanliles@gmail.com>
parent fe8f325d
......@@ -118,6 +118,15 @@ func Evaluate(a app.App, envName, components, paramsStr string) (string, error)
libPath,
)
if len(appEnv.Targets) == 0 {
vm.AddJPath(filepath.Join(a.Root(), "components"))
} else {
for _, moduleName := range appEnv.Targets {
path := filepath.Join(append([]string{a.Root(), "components"}, moduleName)...)
vm.AddJPath(path)
}
}
envCode, err := environmentsCode(a, envName)
if err != nil {
return "", err
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment