Cannot copy a file from a generated folder during build

Hello all, I have a test reporter that generate a folder which is ignored on .gitognore file, and i. need to copy a file from this folder, there is a way to access it during the build ? because the command returns:
cp: cannot stat ‘cypress-coverage/coverage-final.json’: No such file or directory

the command works well on my local machine