refactor(AWS Deploy): Improve custom resource generation log

This commit is contained in:
Mariusz Nowak 2022-01-12 15:50:09 +01:00 committed by Mariusz Nowak
parent cc905c1e39
commit 521861b651

View File

@ -10,9 +10,8 @@ const generateZip = require('./generateZip');
const ServerlessError = require('../../../serverless-error');
const prepareCustomResourcePackage = _.memoize(async (zipFilePath) => {
// TODO: check every once in a while if external packages are still necessary
legacy.log('Installing dependencies for custom CloudFormation resources...');
log.info('Installing dependencies for custom CloudFormation resources');
legacy.log('Generating custom CloudFormation resources...');
log.info('Generating custom CloudFormation resources');
return BbPromise.all([generateZip(), fse.mkdirs(path.dirname(zipFilePath))])
.then(([cachedZipFilePath]) => fse.copy(cachedZipFilePath, zipFilePath))
.then(() => path.basename(zipFilePath));