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