mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
fix(Packaging): Ensure to show deprecation in all cases
This commit is contained in:
parent
59f2d27166
commit
cc71fc99ff
@ -59,6 +59,13 @@ class AwsPackage {
|
||||
|
||||
this.hooks = {
|
||||
'initialize': () => {
|
||||
if (this.serverless.service.provider.disableDefaultOutputExportNames) {
|
||||
this.serverless._logDeprecation(
|
||||
'DISABLE_DEFAULT_OUTPUT_EXPORT_NAMES',
|
||||
'Starting with `v3.0.0`, it will not be possible to disable default export names for outputs. To hide this deprecation message and ensure seamless upgrade, please remove this flag.'
|
||||
);
|
||||
}
|
||||
|
||||
if (this.serverless.processedInput.commands.join(' ') === 'package') {
|
||||
log.notice();
|
||||
log.notice(
|
||||
@ -79,13 +86,6 @@ class AwsPackage {
|
||||
},
|
||||
|
||||
'package:initialize': async () => {
|
||||
if (this.serverless.service.provider.disableDefaultOutputExportNames) {
|
||||
this.serverless._logDeprecation(
|
||||
'DISABLE_DEFAULT_OUTPUT_EXPORT_NAMES',
|
||||
'Starting with `v3.0.0`, it will not be possible to disable default export names for outputs. To hide this deprecation message and ensure seamless upgrade, please remove this flag.'
|
||||
);
|
||||
}
|
||||
|
||||
return this.generateCoreTemplate();
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user