File tree 1 file changed +5
-10
lines changed
1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,13 @@ const _ = require('lodash');
4
4
5
5
module . exports = {
6
6
yamlParse ( ) {
7
- const parsedObject = this . serverless . configurationInput ;
8
-
9
7
this . serverless . service . stepFunctions = {
10
- validate : parsedObject . stepFunctions ? parsedObject . stepFunctions . validate : false ,
11
- noOutput : parsedObject . stepFunctions ? parsedObject . stepFunctions . noOutput : false ,
8
+ validate : false ,
9
+ noOutput : false ,
10
+ stateMachines : { } ,
11
+ activities : [ ] ,
12
+ ...this . serverless . service . stepFunctions ,
12
13
} ;
13
- this . serverless . service . stepFunctions . stateMachines = parsedObject . stepFunctions
14
- && parsedObject . stepFunctions . stateMachines
15
- ? parsedObject . stepFunctions . stateMachines : { } ;
16
- this . serverless . service . stepFunctions . activities = parsedObject . stepFunctions
17
- && parsedObject . stepFunctions . activities
18
- ? parsedObject . stepFunctions . activities : [ ] ;
19
14
20
15
if ( ! this . serverless . pluginManager . cliOptions . stage ) {
21
16
this . serverless . pluginManager . cliOptions . stage = this . options . stage
You can’t perform that action at this time.
0 commit comments