From e2dba61831996beab375674d07de8ab54127adb8 Mon Sep 17 00:00:00 2001 From: LePirlouit Date: Fri, 20 Sep 2019 16:24:31 +0200 Subject: [PATCH] bugfix : aync await in process function Output was not saved to file when serverelss node process finished before writing the file. This could happen when there was no changes in the stack ```Service files not changed. Skipping deployment...``` --- src/plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin.ts b/src/plugin.ts index 0189df5..80c6463 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -136,8 +136,8 @@ export default class StackOutputPlugin { assert(this.options && !this.options.noDeploy, 'Skipping deployment with --noDeploy flag') } - private process () { - Promise.resolve() + private async process () { + await Promise.resolve() .then( () => this.validate() ).then(