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

Function removeSymlinkOnExit

packages/cli/src/commands/preview.ts:693–702  ·  view source on GitHub ↗
(createdSymlink: boolean, symlinkPath: string)

Source from the content-addressed store, hash-verified

691}
692
693function removeSymlinkOnExit(createdSymlink: boolean, symlinkPath: string): void {
694 if (!createdSymlink) return;
695 process.on("exit", () => {
696 try {
697 if (existsSync(symlinkPath)) unlinkSync(symlinkPath);
698 } catch {
699 /* ignore */
700 }
701 });
702}
703
704function registerChildTreeShutdown(child: StudioChildProcess): void {
705 const shutdown = (): void => {

Callers 2

runDevModeFunction · 0.85
runLocalStudioModeFunction · 0.85

Calls 1

onMethod · 0.65

Tested by

no test coverage detected