set env vars from --env last in invoke local

fixes #5563
This commit is contained in:
Daniel Schep 2018-12-05 09:42:44 -05:00
parent 510a01f3cd
commit 44a6ac1a10

View File

@ -20,9 +20,10 @@ class AwsInvokeLocal {
Object.assign(this, validate);
this.hooks = {
'invoke:local:invoke': () => BbPromise.bind(this)
'before:invoke:local:loadEnvVars': () => BbPromise.bind(this)
.then(this.extendedValidate)
.then(this.loadEnvVars)
.then(this.loadEnvVars),
'invoke:local:invoke': () => BbPromise.bind(this)
.then(this.invokeLocal),
};
}