MCPcopy Create free account
hub / github.com/tiann/hapi / resolveEntrypoint

Function resolveEntrypoint

cli/src/utils/spawnHappyCLI.ts:40–47  ·  view source on GitHub ↗

* Resolve the TypeScript entrypoint for development mode.

(projectRoot: string)

Source from the content-addressed store, hash-verified

38 * Resolve the TypeScript entrypoint for development mode.
39 */
40function resolveEntrypoint(projectRoot: string): string {
41 const srcEntrypoint = join(projectRoot, 'src', 'index.ts');
42 if (existsSync(srcEntrypoint)) {
43 return srcEntrypoint;
44 }
45
46 throw new Error('No CLI entrypoint found (expected src/index.ts)');
47}
48
49export interface HappyCliCommand {
50 command: string;

Callers 1

getHappyCliCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected