MCPcopy
hub / github.com/esm-dev/esm.sh / existsPkgFile

Method existsPkgFile

server/build_resolver.go:1153–1160  ·  view source on GitHub ↗
(fp ...string)

Source from the content-addressed store, hash-verified

1151}
1152
1153func (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
1162func (ctx *BuildContext) resloveSubModule(subPath string) (string, bool) {
1163 if subPath != "" {

Callers 4

resolveEntryMethod · 0.95
finalizeBuildEntryMethod · 0.95
getImportPathMethod · 0.95
resloveSubModuleMethod · 0.95

Calls 1

existsFileFunction · 0.85

Tested by

no test coverage detected