()
| 18 | let _lockfile: Lockfile | undefined |
| 19 | |
| 20 | function 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 | |
| 28 | export function lock( |
| 29 | file: string, |