@netlify/functions-utils 4.0.3 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,11 +11,9 @@ This allows plugins to:
|
|
|
11
11
|
# Example
|
|
12
12
|
|
|
13
13
|
```js
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
await utils.functions.add('./path/to/function')
|
|
18
|
-
},
|
|
14
|
+
// Add a Netlify Functions file or directory to a build
|
|
15
|
+
export const onPreBuild = async function ({ utils }) {
|
|
16
|
+
await utils.functions.add('./path/to/function')
|
|
19
17
|
}
|
|
20
18
|
```
|
|
21
19
|
|