mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
refactor(AWS Deploy): Improve custom resource generation log
This commit is contained in:
parent
cc905c1e39
commit
521861b651
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user