You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.default(true)// will never be reached because of the transform; here for the documentation generator's benefit
30
+
.describe(
31
+
"run the `serverless oflfine` process in the background, i.e. don't wait for it to exit before continuing to other Tool Kit tasks. set to `false` to wait for the process to exit, useful for running [multiple Tool Kit tasks in parallel](../parallel)."
32
+
)
21
33
})
22
34
.describe('Run serverless functions locally')
23
35
export{ServerlessRunSchemaasschema}
@@ -71,11 +83,27 @@ export default class ServerlessRun extends Task<{
71
83
try{
72
84
awaitwaitPort({
73
85
host: 'localhost',
74
-
port: port
86
+
port
75
87
})
76
88
}finally{
77
89
unhook()
78
90
}
91
+
92
+
writeState('local',{ port })
93
+
94
+
if(this.options.background.isDefault){
95
+
this.logger.warn(
96
+
`${s.task('ServerlessRun')}${s.option(
97
+
'options.background'
98
+
)} is not set; falling back to the legacy behaviour of running the process in the background. This will be removed in a future major version of ${s.plugin(
0 commit comments