func RunWithPackage(projectPath, scriptPath, fileName string, pkg *tp.Package, layers []string) (*tp.Transform, error) { objs := parser.ParseFileSet(projectPath, scriptPath, fileName, false, layers) return runWithObjs(objs, pkg, projectPath, scriptPath, layers) }
func CheckFile(projectPath, scriptPath, fileName string, layers []string) *CheckResult { objs := parser.ParseFileSet(projectPath, scriptPath, fileName, false, layers) return CheckBeforeLinking(objs) }