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

Function isEntrypointPath

cli/src/utils/cliArgs.ts:11–19  ·  view source on GitHub ↗
(value: string, bunMain: string)

Source from the content-addressed store, hash-verified

9}
10
11function isEntrypointPath(value: string, bunMain: string): boolean {
12 if (!value) {
13 return false;
14 }
15 if (value === bunMain) {
16 return true;
17 }
18 return /\.(c|m)?(ts|js)$/.test(value);
19}
20
21function hasRuntimeWrapper(preArgs: string[], execPath: string, execBase: string, bunMain: string): boolean {
22 if (preArgs.length === 0) {

Callers 2

hasRuntimeWrapperFunction · 0.85
normalizeCliArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected