import { read , Task } from '../lib' ; export const UuidVerification = { description : 'Verify that no UUID file is baked into the build' , async run ( config , log , build ) { const uuidFilePath = build . resolvePath ( 'data' , 'uuid' ) ; await read ( uuidFilePath ) . then ( function success ( ) { throw new Error ( `UUID file should not exist at [${ uuidFilePath }]` ) ; } , function error ( err ) { if ( err . code !== 'ENOENT' ) { throw err ; } } ) ; } , } ;