MCPcopy
hub / github.com/TypeStrong/ts-node / isProbablyEntrypoint

Function isProbablyEntrypoint

src/esm.ts:146–148  ·  view source on GitHub ↗

* Named "probably" as a reminder that this is a guess. * node does not explicitly tell us if we're resolving the entrypoint or not.

(specifier: string, parentURL: string)

Source from the content-addressed store, hash-verified

144 * node does not explicitly tell us if we're resolving the entrypoint or not.
145 */
146 function isProbablyEntrypoint(specifier: string, parentURL: string) {
147 return parentURL === undefined && specifier.startsWith('file://');
148 }
149 // Side-channel between `resolve()` and `load()` hooks
150 const rememberIsProbablyEntrypoint = new Set();
151 const rememberResolvedViaCommonjsFallback = new Set();

Callers 1

entrypointFallbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…