MCPcopy
hub / github.com/lingodotdev/lingo.dev / _saveLockfile

Function _saveLockfile

packages/cli/src/cli/utils/lockfile.ts:91–95  ·  view source on GitHub ↗
(lockfile: Z.infer<typeof LockfileSchema>)

Source from the content-addressed store, hash-verified

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");

Callers 1

createLockfileHelperFunction · 0.85

Calls 1

_getLockfilePathFunction · 0.85

Tested by

no test coverage detected