Function
writeMigrationLockfile
({ baseDir, connectorType, lockfile }: WriteMigrationLockfileInput)
Source from the content-addressed store, hash-verified
| 45 | } |
| 46 | |
| 47 | export async function writeMigrationLockfile({ baseDir, connectorType, lockfile }: WriteMigrationLockfileInput) { |
| 48 | const lockfileContent = `# Please do not edit this file manually |
| 49 | # It should be added in your version-control system (e.g., Git) |
| 50 | provider = "${connectorType}" |
| 51 | ` |
| 52 | await fs.promises.writeFile(path.join(baseDir, lockfile.path), lockfileContent, { encoding: 'utf-8' }) |
| 53 | } |
Tested by
no test coverage detected