serverless-stack-output icon indicating copy to clipboard operation
serverless-stack-output copied to clipboard

Plugin executes out of order relative to other serverless plugins

Open jhslinkman opened this issue 7 years ago • 2 comments

Consider a serverless.yml

...
plugins:
    - serverless-stack-ouput
    - other-plugin

custom:
  output:
    file: stack-output.yml
...

where other-plugin processes stack-output.yml output by this file. As it's currently implemented, other-plugin will being processing before serverless-stack-output finished. The offending line is in the StackOutputPlugin#process method. If that method is changed to return a promise, everything works as expected.

jhslinkman avatar Sep 06 '18 16:09 jhslinkman

Since the original package doesn't seem to be maintained. I've merged #17 + #19 and published on npm under @anttiviljami/serverless-stack-output

anttiviljami avatar Dec 16 '18 12:12 anttiviljami

Any chance this can be merged to this original package?

ismarslomic avatar Jan 06 '19 22:01 ismarslomic