MCPcopy Create free account
hub / github.com/blockmatic/basilic / isMainModule

Function isMainModule

apps/api/scripts/seed.ts:45–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45function isMainModule(): boolean {
46 const entry = process.argv[1]
47 if (!entry) return false
48 return resolve(entry) === scriptFile
49}
50
51async function main(): Promise<void> {
52 try {

Callers 1

seed.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected