MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / isWorkspaceLink

Function isWorkspaceLink

packages/cli/src/utils/installerDetection.ts:43–49  ·  view source on GitHub ↗

True when running from a monorepo workspace link (pnpm/bun/yarn `dev:link`).

(realEntry: string)

Source from the content-addressed store, hash-verified

41
42/** True when running from a monorepo workspace link (pnpm/bun/yarn `dev:link`). */
43function isWorkspaceLink(realEntry: string): boolean {
44 const normalized = normalizePath(realEntry);
45 // Resolved path lands inside the repo, typically .../packages/cli/...
46 // A real global install never contains `/packages/` because npm publish
47 // collapses the package into a flat tarball.
48 return normalized.includes("/packages/cli/");
49}
50
51/**
52 * True when invoked via `npx hyperframes` / `bunx hyperframes`. These don't

Callers 1

detectInstallerFunction · 0.85

Calls 1

normalizePathFunction · 0.70

Tested by

no test coverage detected