(fp ...string)
| 1151 | } |
| 1152 | |
| 1153 | func (ctx *BuildContext) existsPkgFile(fp ...string) bool { |
| 1154 | args := make([]string, 3+len(fp)) |
| 1155 | args[0] = ctx.wd |
| 1156 | args[1] = "node_modules" |
| 1157 | args[2] = ctx.esmPath.PkgName |
| 1158 | copy(args[3:], fp) |
| 1159 | return existsFile(path.Join(args...)) |
| 1160 | } |
| 1161 | |
| 1162 | func (ctx *BuildContext) resloveSubModule(subPath string) (string, bool) { |
| 1163 | if subPath != "" { |
no test coverage detected