MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getLockfile

Function getLockfile

source code/utils/lockfile.ts:20–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18let _lockfile: Lockfile | undefined
19
20function getLockfile(): Lockfile {
21 if (!_lockfile) {
22 // eslint-disable-next-line @typescript-eslint/no-require-imports
23 _lockfile = require('proper-lockfile') as Lockfile
24 }
25 return _lockfile
26}
27
28export function lock(
29 file: string,

Callers 4

lockFunction · 0.85
lockSyncFunction · 0.85
unlockFunction · 0.85
checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected