MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / isMainModuleEntry

Function isMainModuleEntry

packages/create-rezi/src/mainEntry.ts:13–20  ·  view source on GitHub ↗
(argvPath: string | undefined, moduleUrl: string)

Source from the content-addressed store, hash-verified

11}
12
13export function isMainModuleEntry(argvPath: string | undefined, moduleUrl: string): boolean {
14 if (!argvPath) {
15 return false;
16 }
17 const modulePath = resolveCanonicalPath(fileURLToPath(moduleUrl));
18 const entryPath = resolveCanonicalPath(resolve(argvPath));
19 return modulePath === entryPath;
20}

Callers 2

index.tsFile · 0.85
mainEntry.test.tsFile · 0.85

Calls 2

resolveCanonicalPathFunction · 0.85
resolveFunction · 0.85

Tested by

no test coverage detected