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
{{ message }}
This repository was archived by the owner on May 22, 2024. It is now read-only.
feat: populate generator field if function is in the internal folder (#1357)
* feat: populate generator field if function is in the internal folder
* Update README.md
Co-authored-by: Daniel Tschinder <231804+danez@users.noreply.github.com>
---------
Co-authored-by: Daniel Tschinder <231804+danez@users.noreply.github.com>
Copy file name to clipboardexpand all lines: README.md
+8-1
Original file line number
Diff line number
Diff line change
@@ -191,6 +191,13 @@ JSON-formatted string with the following properties:
191
191
192
192
Maximum number of functions to bundle at the same time.
193
193
194
+
#### `internalSrcFolder`
195
+
196
+
-_Type_: `string`
197
+
-_Default value_: `undefined`
198
+
199
+
Defines the path to the folder with internal functions. Used to populate a function's `generator` property if `generator` is not configured in the function's config itself, if its path is within this specified internal functions folder.
200
+
194
201
### Return value
195
202
196
203
This returns a `Promise` resolving to an array of objects describing each archive. Every object has the following
@@ -222,7 +229,7 @@ properties.
222
229
223
230
-`generator`: `string`
224
231
225
-
If there was a user-defined configuration object applied to the function, and it had `generator` defined. This will be returned here.
232
+
If there was a user-defined configuration object applied to the function, and it had `generator` defined. This will be returned here. If there was nothing defined, but an `internalSrcFolder` was passed and the function was defined in there, it will return a string to specify it was an internal function.
226
233
227
234
Additionally, the following properties also exist for Node.js functions:
1 commit comments
github-actions[bot] commentedon Feb 28, 2023
⏱ Benchmark results