Skip to content

Commit 8c33b89

Browse files
Kamil Sobolakshbhu
authored andcommitted
chore: don't show deprecation warnings in binary (aws-amplify#12309)
1 parent 79e440d commit 8c33b89

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/amplify-cli/bin/amplify

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// this file should be a duplicate of amplify.production.template except for the CLI_ENV value
55
process.env.CLI_ENV = 'development';
66

7+
// suppress deprecation warnings
8+
process.env.AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE = '1';
9+
process['noDeprecation'] = true;
10+
711
const startTime = Date.now();
812
if (process.pkg) {
913
require('../lib/utils/copy-override').copyOverride();

packages/amplify-cli/bin/amplify.production.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
// this file should be a duplicate of amplify except for the CLI_ENV value
55
process.env.CLI_ENV = 'production';
66

7+
// suppress deprecation warnings
8+
process.env.AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE = '1';
9+
process['noDeprecation'] = true;
10+
711
const startTime = Date.now();
812
if (process.pkg) {
913
require('../lib/utils/copy-override').copyOverride();

0 commit comments

Comments
 (0)