(lockfile: Z.infer<typeof LockfileSchema>)
| 89 | } |
| 90 | |
| 91 | function _saveLockfile(lockfile: Z.infer<typeof LockfileSchema>) { |
| 92 | const lockfilePath = _getLockfilePath(); |
| 93 | const content = YAML.stringify(lockfile); |
| 94 | fs.writeFileSync(lockfilePath, content); |
| 95 | } |
| 96 | |
| 97 | function _getLockfilePath() { |
| 98 | return path.join(process.cwd(), "i18n.lock"); |
no test coverage detected