import { copy } from 'cpx' ; param sourcePattern param desinationPath returns export function copyFiles ( sourcePattern , destinationPath ) { return new Promise < void > ( ( resolve , reject ) : void => { copy ( sourcePattern , destinationPath , ( copyFilesError ) : void => { if ( copyFilesError ) { reject ( new Error ( `An error occured while copying everything matching "${ sourcePattern }" to "${ destinationPath }". [${ copyFilesError . message }]` ) ) ; return ; } resolve ( ) ; } ) ; } ) ; }