import { PlasmicLock } from "../utils/config-utils" ; export function ensureFileLocks ( lock ) { for ( const project of lock . projects ) { if ( ! project . fileLocks ) { project . fileLocks = [ ] ; } project . fileLocks = project . fileLocks . filter ( ( fileLock ) => typeof fileLock . checksum === "string" && fileLock . checksum . length === 32 ) ; } return lock ; }