fix: skip lock file update if only remediation

This commit is contained in:
Rhys Arkins 2021-03-02 22:07:33 +01:00
parent 85d847e91f
commit 32ae851558

View file

@ -427,6 +427,13 @@ export async function getAdditionalFiles(
logger.debug('Skipping lock file generation');
return { artifactErrors, updatedArtifacts };
}
if (
!config.updatedPackageFiles?.length &&
config.upgrades?.every((upgrade) => upgrade.isRemediation)
) {
logger.debug('Skipping lock file generation for remediations');
return { artifactErrors, updatedArtifacts };
}
logger.debug('Getting updated lock files');
if (
config.updateType === 'lockFileMaintenance' &&